diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-06-22 00:39:53 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-06-22 00:39:53 +0200 |
commit | 3e94e96826f522c31e054bae1b5fd1af2cbfb309 (patch) | |
tree | 9c23966184ed4b2bd8437019281d61c6a6cd1fef /devhell/machines/machine_titan.nix | |
parent | bd3547a7194ab01a33346fcff837e7c8cd50a5f7 (diff) | |
parent | 4ba315934a9d3727a0bc0ff392c706d9bda57ce7 (diff) |
Subtree-merge https://github.com/devhell/nixosconf
This introduces a new participant of the vuizvui project, @devhell. Welcome abord :-) So far the whole repository is now inside the devhell/ subdirectory and we now need to factor out the configs into the vuizvui ecosystem.
Diffstat (limited to 'devhell/machines/machine_titan.nix')
-rw-r--r-- | devhell/machines/machine_titan.nix | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/devhell/machines/machine_titan.nix b/devhell/machines/machine_titan.nix new file mode 100644 index 00000000..5a0018fb --- /dev/null +++ b/devhell/machines/machine_titan.nix @@ -0,0 +1,62 @@ +{ config, pkgs, lib, ... }: + +{ + imports = [ ./machine_common.nix ]; + + boot = { + loader = { + timeout = 2; + systemd-boot = { + enable = true; + }; + + efi.canTouchEfiVariables = true; + }; + + initrd = { + availableKernelModules = [ "xhci_hcd" "ehci_pci" "ahci" "usb_storage" ]; + kernelModules = [ "fuse" ]; + }; + + kernelModules = [ "kvm-intel" ]; + extraModulePackages = [ ]; + + kernelParams = [ "elevator=noop" ]; + }; + + hardware = { + opengl = { + enable = true; + extraPackages = [ pkgs.libvdpau-va-gl pkgs.vaapiVdpau pkgs.vaapiIntel ]; + }; + }; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/09d1155f-e7dd-4754-ae01-44da2517d5f0"; + fsType = "btrfs"; + options = [ + "autodefrag" + "space_cache" + "compress=lzo" + "noatime" + "ssd" + ]; + }; + + swapDevices = [ + { device = "/dev/disk/by-uuid/fecde631-8661-4a0e-88e6-5ce5b551847a"; } + ]; + + nix = { + maxJobs = 4; + extraOptions = '' + auto-optimise-store = true + ''; + }; + + i18n = { + consoleFont = "lat9w-16"; + consoleKeyMap = "uk"; + defaultLocale = "en_GB.UTF-8"; + }; +} |