small flake refactor
This commit is contained in:
parent
5dc9fcc5f5
commit
b23745b99a
17
flake.nix
17
flake.nix
@ -149,14 +149,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
flake = {
|
flake = let
|
||||||
customModules = builtins.listToAttrs (findModules ./modules);
|
|
||||||
customProfiles = builtins.listToAttrs (findModules ./profiles);
|
|
||||||
customRoles = import ./roles;
|
|
||||||
secretsDir = ./secrets;
|
|
||||||
|
|
||||||
nixosConfigurations = withSystem "x86_64-linux" ({ ... }:
|
|
||||||
let
|
|
||||||
unstable = nixosSystem inputs.nixpkgs unstable-patches;
|
unstable = nixosSystem inputs.nixpkgs unstable-patches;
|
||||||
stable = nixosSystem inputs.nixpkgs-stable stable-patches;
|
stable = nixosSystem inputs.nixpkgs-stable stable-patches;
|
||||||
|
|
||||||
@ -171,6 +164,14 @@
|
|||||||
];
|
];
|
||||||
stable-patches = shared-patches ++ patchesPath [ "netbird-24.05.patch" "vaultwarden-24.05.patch" ];
|
stable-patches = shared-patches ++ patchesPath [ "netbird-24.05.patch" "vaultwarden-24.05.patch" ];
|
||||||
in {
|
in {
|
||||||
|
customModules = builtins.listToAttrs (findModules ./modules);
|
||||||
|
customProfiles = builtins.listToAttrs (findModules ./profiles);
|
||||||
|
customRoles = import ./roles;
|
||||||
|
secretsDir = ./secrets;
|
||||||
|
nixpkgs-unstable-patched = nixpkgs-patched inputs.nixpkgs unstable-patches;
|
||||||
|
|
||||||
|
nixosConfigurations = withSystem "x86_64-linux" ({ ... }:
|
||||||
|
{
|
||||||
AMD-Workstation = mkHost "AMD-Workstation" unstable;
|
AMD-Workstation = mkHost "AMD-Workstation" unstable;
|
||||||
Dell-Laptop = mkHost "Dell-Laptop" unstable;
|
Dell-Laptop = mkHost "Dell-Laptop" unstable;
|
||||||
Home-Hypervisor = mkHost "Home-Hypervisor" unstable;
|
Home-Hypervisor = mkHost "Home-Hypervisor" unstable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user