From aaa31cf08870c28d83da6a57a6c29bf52a4ab74e Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Sun, 22 Mar 2026 18:20:09 +0100 Subject: Made some adjustments to allow for multiple configurations to exist under the flake --- hosts/kronos/configuration.nix | 16 ++++++++++++++++ hosts/kronos/hardware-configuration.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100755 hosts/kronos/configuration.nix create mode 100755 hosts/kronos/hardware-configuration.nix (limited to 'hosts/kronos') diff --git a/hosts/kronos/configuration.nix b/hosts/kronos/configuration.nix new file mode 100755 index 0000000..79b637b --- /dev/null +++ b/hosts/kronos/configuration.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + pkgs, + ... +}: { + imports = [ + ./hardware-configuration.nix + ../../modules/nixos/base/default.nix + + # === Environment Choice === + # Uncomment one of the following to select your environment: + ../../modules/nixos/des/i3wm.nix + #../../modules/nixos/des/gnome.nix + ]; +} diff --git a/hosts/kronos/hardware-configuration.nix b/hosts/kronos/hardware-configuration.nix new file mode 100755 index 0000000..0dc8341 --- /dev/null +++ b/hosts/kronos/hardware-configuration.nix @@ -0,0 +1,31 @@ +# 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" "nvme" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/f62daee8-ba51-478c-97db-c8b96c12043e"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/22BE-C329"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} -- cgit v1.2.3