{ config, lib, pkgs, ... }: let mytexlive = with pkgs.texlive; combine { inherit scheme-medium minted units collection-bibtexextra ifplatform xstring doublestroke csquotes; }; in { nixpkgs.config.allowUnfree = true; nixpkgs.system = "i686-linux"; boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "usb_storage" "floppy" "usblp" "pcspkr" ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; boot.initrd.luks.devices = [ { name = "schnurrkadse"; device = "/dev/disk/by-uuid/544529b8-81cb-4e8e-9b6b-44f828ea2a7b"; preLVM = true; } ]; fileSystems."/" = { device = "/dev/mapper/schnurrkadse-root"; fsType = "btrfs"; }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/e42bd75d-627d-4469-90cb-282dca7fdd4f"; fsType = "ext4"; }; swapDevices = [ { device = "/dev/mapper/schnurrkadse-swap"; } ]; nix.maxJobs = 1; networking.enableIntel2200BGFirmware = true; hardware.pulseaudio.enable = true; hardware.trackpoint = { enable = true; emulateWheel = true; speed = 250; sensitivity = 140; }; boot.loader.grub.enable = true; boot.loader.grub.version = 2; boot.loader.grub.device = "/dev/sda"; networking.hostName = "schnurrkadse"; networking.networkmanager.enable = true; i18n = { consoleFont = "Lat2-Terminus16"; consoleKeyMap = "de"; defaultLocale = "en_US.UTF-8"; }; time.timeZone = "Europe/Berlin"; environment.systemPackages = with pkgs; [ unzip zip bzip2 wget vim git stow acpi termite redshift networkmanagerapplet sudo mosh dmenu taffybar alock graphicsmagick silver-searcher pavucontrol hostapd #pandoc unison connect lame ffmpeg # texlive, minted deps mytexlive which pythonPackages.pygments python w3m torbrowser mpv htop feh mupdf screen-message zathura youtube-dl pass ghc cabal-install haskellPackages.stylish-haskell haskellPackages.cabal2nix mutt notmuch offlineimap msmtp gnupg gpgme ]; # Proudly stolen from Profpatsch fonts.fontconfig = { defaultFonts = { monospace = [ "Inconsolata" "Source Code Pro" "DejaVu Sans Mono" ]; sansSerif = [ "Ubuntu" "Liberation Sans" "DejaVu Sans" ]; }; ultimate = { rendering = { INFINALITY_FT_FILTER_PARAMS = "08 24 36 24 08"; INFINALITY_FT_FRINGE_FILTER_STRENGTH = "25"; INFINALITY_FT_USE_VARIOUS_TWEAKS = "true"; INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH = "25"; INFINALITY_FT_STEM_ALIGNMENT_STRENGTH = "15"; INFINALITY_FT_STEM_FITTING_STRENGTH = "15"; }; }; }; fonts.fonts = with pkgs; [ corefonts source-han-sans-japanese source-han-sans-korean source-han-sans-simplified-chinese source-code-pro dejavu_fonts ubuntu_font_family inconsolata libertine unifont ]; services.openssh.enable = true; services.tor.enable = true; services.printing = { enable = true; drivers = [ pkgs.gutenprint pkgs.hplip ]; }; # for taffybar services.upower.enable = true; services.tlp.enable = true; services.xserver = { enable = true; layout = "de"; xkbVariant = "neo"; desktopManager.xterm.enable = false; windowManager.xmonad = { enable = true; enableContribAndExtras = true; }; displayManager = { sessionCommands = '' redshift -c .redshift & xsetroot -solid '#0fffb0' ''; }; synaptics.enable = true; synaptics.tapButtons = false; synaptics.twoFingerScroll = false; videoDrivers = [ "intel" ]; }; programs.fish.enable = true; users.users.lukas = { isNormalUser = true; uid = 1000; shell = "${pkgs.fish}/bin/fish"; group = "users"; extraGroups = [ "audio" "wheel" "networkmanager" "uucp" ]; }; environment.etc."vte.sh" = { source = "${pkgs.gnome3.vte}/etc/profile.d/vte.sh"; }; programs.ssh.startAgent = false; system.stateVersion = "unstable"; }