From 17e3d379897556c9a56f1ac4955cb0239063d202 Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 30 Apr 2021 23:36:48 +0200 Subject: [PATCH] Add host palladium --- hosts/palladium/configuration.nix | 20 +++++++++++++ hosts/palladium/hardware-configuration.nix | 34 ++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 hosts/palladium/configuration.nix create mode 100644 hosts/palladium/hardware-configuration.nix diff --git a/hosts/palladium/configuration.nix b/hosts/palladium/configuration.nix new file mode 100644 index 0000000..3e4bc15 --- /dev/null +++ b/hosts/palladium/configuration.nix @@ -0,0 +1,20 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + ./hardware-configuration.nix + ../../configuration/common + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "palladium"; + + networking.useDHCP = false; + networking.interfaces.enp3s0.useDHCP = true; + + system.stateVersion = "21.03"; + +} diff --git a/hosts/palladium/hardware-configuration.nix b/hosts/palladium/hardware-configuration.nix new file mode 100644 index 0000000..6396701 --- /dev/null +++ b/hosts/palladium/hardware-configuration.nix @@ -0,0 +1,34 @@ +# 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 = [ "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/b217f1e1-1337-4ef0-bad5-15829ba32c7a"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/7A6B-3444"; + fsType = "vfat"; + }; + + fileSystems."/mnt/palladium" = + { device = "/dev/disk/by-uuid/f20d20ca-6be5-4b16-81fe-e66f31ffd108"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +}