From f182b2418aaca670b95027ccf708bc3a6312a0cd Mon Sep 17 00:00:00 2001 From: aaron Date: Thu, 5 Mar 2026 17:37:12 +0100 Subject: [PATCH] feature(argon): add config for argon --- flake.nix | 17 +++++++++++ hosts/argon/configuration.nix | 26 +++++++++++++++++ hosts/argon/hardware-configuration.nix | 39 ++++++++++++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 hosts/argon/configuration.nix create mode 100644 hosts/argon/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 43a080d..9683f2f 100644 --- a/flake.nix +++ b/flake.nix @@ -53,6 +53,23 @@ } ]; }; + + argon = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + specialArgs = { inherit inputs; }; + modules = [ + ./hosts/argon/hardware-configuration.nix + ./hosts/argon/configuration.nix + home-manager.nixosModules.home-manager + { + home-manager.extraSpecialArgs = { inherit inputs; }; + home-manager.users.aaron.imports = [ + nixvim.homeModules.nixvim + ./users/aaron/home.nix + ]; + } + ]; + }; }; }; } diff --git a/hosts/argon/configuration.nix b/hosts/argon/configuration.nix new file mode 100644 index 0000000..e06071b --- /dev/null +++ b/hosts/argon/configuration.nix @@ -0,0 +1,26 @@ +{ config, pkgs, inputs, ... }: + +{ + imports = [ + ../../modules/nixos/audio.nix + ../../modules/nixos/bootloader.nix + ../../modules/nixos/certificates.nix + ../../modules/nixos/docker.nix + ../../modules/nixos/gnupg.nix + ../../modules/nixos/locales.nix + ../../modules/nixos/networking.nix + ../../modules/nixos/niri.nix + ../../modules/nixos/noctalia.nix + ../../modules/nixos/openssh.nix + ../../modules/nixos/packages.nix + ../../modules/nixos/sddm.nix + ../../modules/nixos/services.nix + ../../modules/nixos/settings.nix + ../../modules/nixos/steam.nix + ../../modules/nixos/users.nix + ]; + + # install state version + system.stateVersion = "25.11"; # Don't change +} + diff --git a/hosts/argon/hardware-configuration.nix b/hosts/argon/hardware-configuration.nix new file mode 100644 index 0000000..8518772 --- /dev/null +++ b/hosts/argon/hardware-configuration.nix @@ -0,0 +1,39 @@ +# 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 = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ "dm-crypt dm-mod" ]; + boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-label/nixcrypt"; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/mapper/lvmroot-root"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/AC1C-20EB"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + fileSystems."/home" = + { device = "/dev/mapper/lvmroot-home"; + fsType = "ext4"; + }; + + swapDevices = + [ { device = "/dev/mapper/lvmroot-swap"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}