Something went wrong. Try again.
❄️ Dotfiles and NixOS configurations
Something went wrong. Try again.
1.5 kB · 63 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{inputs, ...}: let inherit (inputs) agenix lanzaboote nixos-hardware nixpkgs nixpkgs-wayland nixpkgs-xr prismlauncher scrumpkgs wlx-overlay-x;
inherit (nixpkgs.lib) attrValues;
mkHost = { hostName, system, modules, overlays ? [ nixpkgs-wayland.overlays.default prismlauncher.overlays.default wlx-overlay-x.overlays.default scrumpkgs.overlays.default ], }: { ${hostName} = nixpkgs.lib.nixosSystem { inherit system;
modules = [ { nixpkgs = {inherit overlays;};
networking.hostName = hostName; }
agenix.nixosModules.age lanzaboote.nixosModules.lanzaboote
nixpkgs-xr.nixosModules.nixpkgs-xr {nixpkgs.xr.enableUnstripped = true;}
./common ./${hostName} ../home ] ++ (attrValues scrumpkgs.nixosModules) ++ modules;
specialArgs = { inherit inputs; lib' = scrumpkgs.lib; }; }; };in { flake.nixosConfigurations = (mkHost { system = "x86_64-linux"; hostName = "andromeda"; modules = [ nixos-hardware.nixosModules.common-cpu-amd-pstate nixos-hardware.nixosModules.common-gpu-amd nixos-hardware.nixosModules.common-pc-ssd ]; }) // (mkHost { system = "x86_64-linux"; hostName = "dyson"; modules = [nixos-hardware.nixosModules.framework-12th-gen-intel]; });}