Skip to content

Instantly share code, notes, and snippets.

@apa512
Created January 17, 2016 19:16
Show Gist options
  • Save apa512/4a806bbc584b94258c23 to your computer and use it in GitHub Desktop.
Save apa512/4a806bbc584b94258c23 to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }:
{
imports = [
/etc/nixos/hardware-configuration.nix
./thinkpad.nix
];
nixpkgs.config = {
allowUnfree = true;
chromium = {
enablePepperFlash = true;
};
};
boot.initrd.luks.devices = [
{ name = "cryptnix"; device = "/dev/sda2"; }
];
boot.kernelPackages = pkgs.linuxPackages_4_3;
fileSystems."/".device = pkgs.lib.mkForce "/dev/mapper/cryptnix";
virtualisation.docker.enable = true;
hardware = {
pulseaudio.enable = true;
};
boot.loader.grub = {
enable = true;
version = 2;
device = "/dev/sda";
};
networking = {
firewall.enable = false;
hostName = "nixos";
wireless.enable = true;
};
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "dvorak";
defaultLocale = "en_US.UTF-8";
};
time.timeZone = "Europe/Stockholm";
environment.shellInit = ''
xsetroot -solid "#1c2023"
xsetroot -cursor_name left_ptr
'';
environment.sessionVariables = {
GOPATH="/home/erik/go";
PATH="$PATH:/home/erik/go/bin";
};
environment.systemPackages = with pkgs; [
chromium
firefox
fish
git
gnumake
guile
man_db
manpages
pavucontrol
ranger
rofi
rxvt_unicode
silver-searcher
transmission_gtk
wget
xorg.xmodmap
cifs_utils
flac
ntfs3g
leiningen
vim
neovim
haskellPackages.xmobar
];
services.elasticsearch.enable = true;
services.postgresql.enable = true;
services.samba.enable = true;
services.xserver = {
enable = true;
layout = "us";
xkbVariant = "dvorak";
xkbOptions = "ctrl:nocaps";
windowManager.xmonad.enable = true;
windowManager.xmonad.extraPackages = haskellPackages: [
haskellPackages.xmonad-contrib
haskellPackages.xmonad-extras
];
desktopManager.xterm.enable = false;
desktopManager.default = "none";
};
fonts = {
enableFontDir = true;
fonts = with pkgs; [
corefonts
dina-font
fantasque-sans-mono
gohufont
inconsolata
proggyfonts
#source-code-pro
ubuntu_font_family
#ipafont
kochi-substitute
];
};
users.extraUsers.erik = {
isNormalUser = true;
home = "/home/erik";
extraGroups = [ "wheel" "docker" ];
uid = 1000;
};
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "15.09";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment