From 3e4034f936cf53e9c3f403d70bd62655dd3dff44 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 28 May 2020 17:17:41 +0800 Subject: [PATCH] nixops: add new desktop machines --- nixops/chiron-hardware-configuration.nix | 33 ++++++++++++++++++++++++ nixops/hera-hardware-configuration.nix | 33 ++++++++++++++++++++++++ nixops/hestia-hardware-configuration.nix | 33 ++++++++++++++++++++++++ nixops/nixops.nix | 3 +++ 4 files changed, 102 insertions(+) create mode 100644 nixops/chiron-hardware-configuration.nix create mode 100644 nixops/hera-hardware-configuration.nix create mode 100644 nixops/hestia-hardware-configuration.nix diff --git a/nixops/chiron-hardware-configuration.nix b/nixops/chiron-hardware-configuration.nix new file mode 100644 index 0000000..643722a --- /dev/null +++ b/nixops/chiron-hardware-configuration.nix @@ -0,0 +1,33 @@ +# 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 = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/89db7e45-7b7e-44ec-bebc-a02935cc5ba0"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/060C-8772"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 16; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; +} diff --git a/nixops/hera-hardware-configuration.nix b/nixops/hera-hardware-configuration.nix new file mode 100644 index 0000000..969f7ec --- /dev/null +++ b/nixops/hera-hardware-configuration.nix @@ -0,0 +1,33 @@ +# 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 = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/a86f2eff-c873-4af1-bb80-a903383b9c8c"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/8C30-F6DC"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 16; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; +} diff --git a/nixops/hestia-hardware-configuration.nix b/nixops/hestia-hardware-configuration.nix new file mode 100644 index 0000000..ee34091 --- /dev/null +++ b/nixops/hestia-hardware-configuration.nix @@ -0,0 +1,33 @@ +# 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 = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/2fe28058-4186-4e65-9d3d-f7ec5dffc171"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/E085-5F21"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + nix.maxJobs = lib.mkDefault 16; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; +} diff --git a/nixops/nixops.nix b/nixops/nixops.nix index bcfb2ef..cd64858 100644 --- a/nixops/nixops.nix +++ b/nixops/nixops.nix @@ -6,5 +6,8 @@ rpi-5 = import ./rpi.nix { host = "rpi-5"; rpi4 = true; }; juno = import ./desktop.nix { host = "juno"; }; zeus = import ./desktop.nix { host = "zeus"; }; + hera = import ./desktop.nix { host = "hera"; }; + hestia = import ./desktop.nix { host = "hestia"; }; + chiron = import ./desktop.nix { host = "chiron"; }; cnc = import ./light.nix { host = "cnc"; }; }