summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-03-22 18:20:09 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-03-22 18:20:09 +0100
commitaaa31cf08870c28d83da6a57a6c29bf52a4ab74e (patch)
treed8ae4e1ae8b0253b74f2a3026c73950c139283d2 /hosts
parent6b217ae5d0eb4458e957a843190cabab4d3f34a8 (diff)
Made some adjustments to allow for multiple configurations to exist under the flake
Diffstat (limited to 'hosts')
-rw-r--r--hosts/herra/configuration.nix30
-rwxr-xr-xhosts/kronos/configuration.nix16
-rwxr-xr-xhosts/kronos/hardware-configuration.nix31
3 files changed, 77 insertions, 0 deletions
diff --git a/hosts/herra/configuration.nix b/hosts/herra/configuration.nix
new file mode 100644
index 0000000..35542a8
--- /dev/null
+++ b/hosts/herra/configuration.nix
@@ -0,0 +1,30 @@
+# hosts/desktop/configuration.nix
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}: {
+ imports = [
+ ./hardware-configuration.nix
+ ../../modules/nixos/base/default.nix
+
+ # === Environment Choice ===
+ ../../modules/nixos/des/i3wm.nix
+ #../../modules/nixos/des/gnome.nix
+ ];
+
+ # Override boot for GRUB dual boot with Windows
+ boot.loader = {
+ efi.canTouchEfiVariables = true;
+ grub = {
+ enable = true;
+ device = "nodev";
+ efiSupport = true;
+ useOSProber = true; # auto-detects Windows 11
+ };
+ };
+
+ # Desktop-specific hostname
+ networking.hostName = "herra"; # or whatever you want
+}
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;
+}