From 03345608e277a3d468e37069a6a9be6f0446e9b4 Mon Sep 17 00:00:00 2001 From: Stefan Ellmauthaler Date: Fri, 8 Oct 2021 10:45:40 +0200 Subject: [PATCH] added multi-machine setup + config Signed-off-by: Stefan Ellmauthaler --- machine/nucturne/hardware-configuration.nix | 38 +++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 machine/nucturne/hardware-configuration.nix diff --git a/machine/nucturne/hardware-configuration.nix b/machine/nucturne/hardware-configuration.nix new file mode 100644 index 0000000..43d6e91 --- /dev/null +++ b/machine/nucturne/hardware-configuration.nix @@ -0,0 +1,38 @@ +# 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, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/da267a3c-34e3-4218-933f-10738ee61eb6"; + fsType = "ext4"; + }; + + fileSystems."/home" = + { device = "/dev/disk/by-uuid/9ebd7aff-629b-449b-83d8-6381a04eb708"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/DE6D-C383"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/0069f1fa-dd8e-4c0a-8f01-a576af29909e"; } + ]; + + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + # high-resolution display + hardware.video.hidpi.enable = lib.mkDefault true; +}