diff options
author | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 01:37:41 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2015-03-18 01:42:55 +0100 |
commit | 2b8256b060f1c2fd635e92749d167d9a57268212 (patch) | |
tree | 211ae22d25aaa9cecc6a7d261737f53335cc1e7b /machines/aszlig/mmrnmhrm.nix | |
parent | 174317d1489b72687df8559a9cc02ca068e2ba0c (diff) |
machines: Move own machines into machines/aszlig.
Introduces callMachine in machines/default.nix, which returns an attribute set containing the (input) configuration and also a build attribute containing the output configuration and thus also the builds. However, we still have references to ../../common-workstation.nix which we need to refactor very soon. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'machines/aszlig/mmrnmhrm.nix')
-rw-r--r-- | machines/aszlig/mmrnmhrm.nix | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/machines/aszlig/mmrnmhrm.nix b/machines/aszlig/mmrnmhrm.nix new file mode 100644 index 00000000..c14c203f --- /dev/null +++ b/machines/aszlig/mmrnmhrm.nix @@ -0,0 +1,67 @@ +{ pkgs, ... }: + +with pkgs.lib; +with import ../../lib; + +{ + imports = singleton ../../common-workstation.nix; + + nix.maxJobs = 2; + + boot = let + linuxVuizvui = pkgs.buildLinux { + inherit (pkgs.kernelSourceVuizvui) version src; + + kernelPatches = singleton pkgs.vuizvuiKernelPatches.bfqsched; + configfile = generateKConf (import ./mmrnmhrm-kconf.nix); + allowImportFromDerivation = true; + }; + in rec { + kernelPackages = pkgs.recurseIntoAttrs + (pkgs.linuxPackagesFor linuxVuizvui kernelPackages); + + loader.grub.devices = map (i: "/dev/disk/by-id/${i}") [ + "ata-WDC_WD10EZEX-00BN5A0_WD-WCC3F5756955" + "ata-WDC_WD10EZEX-00BN5A0_WD-WCC3F5790537" + ]; + }; + + networking.hostName = "mmrnmhrm"; + + fileSystems = { + "/" = { + label = "root"; + fsType = "btrfs"; + options = concatStringsSep "," [ + "autodefrag" + "space_cache" + "compress=lzo" + "noatime" + ]; + }; + }; + + swapDevices = [ + { label = "swap1"; } + { label = "swap2"; } + ]; + + services.synergy.server.enable = true; + services.synergy.server.configFile = ../cfgfiles/synergy.conf; + + systemd.services."synergy-server".serviceConfig.CPUSchedulingPolicy = "rr"; + systemd.services."synergy-server".serviceConfig.CPUSchedulingPriority = 50; + + services.xserver.videoDrivers = [ "nouveau" ]; + services.xserver.xrandrHeads = [ "DVI-I-1" "VGA-1" ]; + + vuizvui.i3.workspaces."1" = { + label = "XMPP"; + assign = singleton { class = "^(?:Tkabber|Gajim)\$"; }; + }; + + vuizvui.i3.workspaces."3" = { + label = "Chromium"; + assign = singleton { class = "^Chromium(?:-browser)?\$"; }; + }; +} |