From 0024a2ca7918be83ad812b02348cb49dd2ff2d57 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 21 Sep 2018 17:49:51 +0200 Subject: Add basic automatix config Extract desktop-specific settings that are shared by asterix and obelix into desktop role. --- host/hardware/automatix.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 host/hardware/automatix.nix (limited to 'host/hardware/automatix.nix') diff --git a/host/hardware/automatix.nix b/host/hardware/automatix.nix new file mode 100644 index 0000000..4b35109 --- /dev/null +++ b/host/hardware/automatix.nix @@ -0,0 +1,25 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, ... }: + +{ + imports = + [ + ]; + + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/ec324e84-6766-49b7-ad5e-583e78a35432"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/05f0315c-f5f5-4471-b2ef-6e53b95cb08b"; } + ]; + + nix.maxJobs = lib.mkDefault 1; +} -- cgit v1.2.3