From 3204c97a9e64838b86ad716fd701ef91d37f30fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Wed, 30 Jan 2019 17:08:07 +0100 Subject: [PATCH] Add scardanelli --- systems/scardanelli/config.nix | 13 +++++++++++++ systems/scardanelli/physical.nix | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 systems/scardanelli/config.nix create mode 100644 systems/scardanelli/physical.nix diff --git a/systems/scardanelli/config.nix b/systems/scardanelli/config.nix new file mode 100644 index 0000000..ce85d37 --- /dev/null +++ b/systems/scardanelli/config.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: +{ + imports = + [ ../../main.nix + ]; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.hostName = "scardanelli"; + + system.stateVersion = "19.03"; +} diff --git a/systems/scardanelli/physical.nix b/systems/scardanelli/physical.nix new file mode 100644 index 0000000..e156e5f --- /dev/null +++ b/systems/scardanelli/physical.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, ... }: + +{ + imports = + [ + ./config.nix + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "usb_storage" "sd_mod" "sdhci_acpi" "rtsx_usb_sdmmc" ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/8bc52e48-58e0-463d-8268-941a5a54cd4a"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/6E76-4ED9"; + fsType = "vfat"; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/b7728657-9dbd-4377-bbc9-17252b8b88d0"; } + ]; + + nix.maxJobs = lib.mkDefault 4; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; +}