Skip to content

Instantly share code, notes, and snippets.

@dysinger
Created February 28, 2013 04:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dysinger/5054240 to your computer and use it in GitHub Desktop.
Save dysinger/5054240 to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
require = [ <nixos/modules/installer/scan/not-detected.nix> ];
boot = {
initrd = {
kernelModules = [ "ata_piix" "ahci" ];
luks.devices = [{ name = "luks"; device = "/dev/sda2"; preLVM = true; }];
};
loader.grub.device = "/dev/sda";
};
fileSystems = [
{ mountPoint = "/"; device = "/dev/mapper/vg-root"; }
{ mountPoint = "/boot"; device = "/dev/sda1"; }
];
swapDevices = [{ device = "/dev/mapper/vg-swap"; }];
environment.systemPackages = with pkgs; [
alsaLib alsaPlugins alsaUtils
chromium flashplayer
dejavu_fonts
emacs texinfo
git
haskellPackages.haskellPlatform
haskellPackages.xmonad
haskellPackages.xmonadContrib
htop
rxvt_unicode
tmux
zsh
];
fonts.enableCoreFonts = true;
i18n.consoleKeyMap = "dvorak";
services = {
dbus.enable = true;
openssh.enable = true;
virtualbox.enable = true;
xserver = {
desktopManager.default = "none";
displayManager.slim.theme = pkgs.fetchurl {
sha256 = "d83e3afdb05be50cff7da037bb31208b2c152539d1a009740b13857f5f910072";
url = http://download.berlios.de/slim/slim-rainbow.tar.gz;
};
enable = true;
layout = "dvorak";
windowManager = {
default = "xmonad";
xmonad.enable = true;
};
xkbOptions = "ctrl:nocaps,terminate:ctrl_alt_bksp,compose:ralt";
};
};
users = {
defaultUserShell = "/var/run/current-system/sw/bin/zsh";
extraGroups = [ { name = "tim"; } { name = "vboxsf"; } ];
extraUsers = [ {
description = "Tim Dysinger";
name = "tim";
group = "tim";
extraGroups = [ "users" "vboxsf" "wheel" ];
password = "timisok";
home = "/home/tim";
createHome = true;
useDefaultShell = true;
openssh.authorizedKeys.keys = [
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCacXiC21AiOj2VH5J3JMeTeM3bml5XwpyoMNwXlkpJK0RYBsLaAe1EHmlJN3AKSjLlQuwTHXiLzP576r7S5TWY451DgcFb1T7yCwTZfiOwxmGMUcjW9CpPZ/7T/XZfzFFVc54LTqEBdyq31ED7K+n83rVsc2QbldUpnStstk3FaSluiDUJ82Z2ISHPJETQKZDju8jamtQ126UyD/ZM8ORnyAnTwI6WUQ29gXz7Ht2ZNS1dsWiCFBeL9FAh1vkbgea7ZN5Ty3VUJRG6JOIDVy8GqjoyM1aJYr/X7oLElzS1YvuCvn9JUupN+ESBd9RopSilHebLX0nmaHKbcROh3BG3Av8eCmvFrGu8z/eb+yOAuoxjwHeoryxdqLPkPwvz+gZUbq2YNMCeRBXt0MzhwPgkngRFjn0kYfHh0EFsHB7T0tXOn/85XmVO7jhCe5gufIntPascWEYVECbbvuclfOCvLINQzqdRyQPwbusBKccXKyrBGDT7TC3rd9+MVGiRmP5Ui/GF78dC996weGSnpvigDkQD8I/5o/nrDc1mgDtMftnC98op+Ajz5f3elCs9QU9LBw0uSoo0B++pVxZv4R5cKgihszzOUdTKWjPQlgB7V1PlJbz5JiQC7TdNYZCR/4qALlGtJgzWQj1XAD9wYjIAXA5g+k+oYSrv0DY/3UsjWQ== tim@Tims-MacBook-Air.local"
];
} ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment