diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-23 18:29:32 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-05-23 18:29:32 +0200 |
commit | a6af2adb9c916893c7dfe38184afa0465eb7118c (patch) | |
tree | fc60b87a31771cec66d73a2bbaa54e5754488ed1 | |
parent | refactor(flake/packages): Export the new pkgs set (diff) | |
download | nixos-config-a6af2adb9c916893c7dfe38184afa0465eb7118c.tar.gz nixos-config-a6af2adb9c916893c7dfe38184afa0465eb7118c.zip |
fix(flake/nixosConfigurations): Adapt to new module structure
-rw-r--r-- | flake/nixosConfigurations/default.nix | 83 |
1 files changed, 75 insertions, 8 deletions
diff --git a/flake/nixosConfigurations/default.nix b/flake/nixosConfigurations/default.nix index f2110eb9..3895593f 100644 --- a/flake/nixosConfigurations/default.nix +++ b/flake/nixosConfigurations/default.nix @@ -1,24 +1,91 @@ { + self, system, - pkgs, + myPkgs, nixpkgs_as_input, - # configs - defaultModules, - defaultSpecialArgs, - ... + nixpkgs_open_prs, + # my things + shell_library, + sysLib, + templates, + # modules + home-manager, + nixVim, + nixos-generators, + impermanence, + agenix, + ragenix, + serverphone, + disko, + lanzaboote, + nix-index-database, + # bins + river_init_lesser, + yambar_cpu, + yambar_memory, + # external + user_js, }: let + modules = [ + "${nixpkgs_open_prs.nixpkgs-tfc}/nixos/modules/config/xdg/portals/termfilechooser.nix" + + agenix.nixosModules.default + disko.nixosModules.default + home-manager.nixosModules.home-manager + impermanence.nixosModules.impermanence + lanzaboote.nixosModules.lanzaboote + serverphone.nixosModules.default + + # Deduplicate some code in the host files + ../../modules/system + ]; + + specialArgs = { + inherit + # extra package sources + nixpkgs_open_prs + myPkgs + shell_library + sysLib + # extra information + + system + # modules + + impermanence + nix-index-database + nixVim + # nix registry + + nixpkgs_as_input + self + templates + # bins + + # TODO: Integrate these into `pkgs/by-name` <2024-05-22> + + river_init_lesser + serverphone + yambar_cpu + yambar_memory + # external deps + + user_js + ; + }; + generateHost = name: { name = "${name}"; value = nixpkgs_as_input.lib.nixosSystem { - inherit system pkgs; - specialArgs = defaultSpecialArgs; + inherit specialArgs; modules = [ ../../hosts/${name} ] - ++ defaultModules; + ++ modules; }; }; + # FIXME: These need to stay in this position for the install script hosts = ["tiamat" "apzu"]; inactiveHosts = ["mammun" "lahmu"]; |