From 1ce672bb3129f07bcf33dfd4455ea66d93831760 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 25 Oct 2021 19:06:37 +0800 Subject: [PATCH] nixops: add franz machine --- nixops/franz-hardware-configuration.nix | 32 +++++++++++++++++++++++++ nixops/nixops.nix | 1 + 2 files changed, 33 insertions(+) create mode 100644 nixops/franz-hardware-configuration.nix diff --git a/nixops/franz-hardware-configuration.nix b/nixops/franz-hardware-configuration.nix new file mode 100644 index 00000000..0bda0f9c --- /dev/null +++ b/nixops/franz-hardware-configuration.nix @@ -0,0 +1,32 @@ +# 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" "thunderbolt" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/37e69920-a60d-4cb0-ae2f-b812f7a35dc8"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/A33B-F001"; + fsType = "vfat"; + }; + + swapDevices = [ ]; + + 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 2ac3e17a..230e8220 100644 --- a/nixops/nixops.nix +++ b/nixops/nixops.nix @@ -12,5 +12,6 @@ hestia = import ./desktop.nix { host = "hestia"; }; chiron = import ./desktop.nix { host = "chiron"; }; old-nixbld = import ./desktop.nix { host = "old-nixbld"; }; + franz = import ./desktop.nix { host = "franz"; }; cnc = import ./light.nix { host = "cnc"; }; }