diff --git a/flake.lock b/flake.lock index 2927be9..d3f99e1 100644 --- a/flake.lock +++ b/flake.lock @@ -180,58 +180,15 @@ "flake-parts": { "inputs": { "nixpkgs-lib": [ - "nur", "nixpkgs" ] }, "locked": { - "lastModified": 1733312601, - "narHash": "sha256-4pDvzqnegAfRkPwO3wmwBhVi/Sye1mzps0zHWYnP88c=", + "lastModified": 1765835352, + "narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "205b12d8b7cd4802fbcb8e8ef6a0f1408781a4f9", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "flake-parts_2": { - "inputs": { - "nixpkgs-lib": [ - "nvf", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1760948891, - "narHash": "sha256-TmWcdiUUaWk8J4lpjzu4gCGxWY6/Ok7mOK4fIFfBuU4=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "864599284fc7c0ba6357ed89ed5e2cd5040f0c04", - "type": "github" - }, - "original": { - "owner": "hercules-ci", - "repo": "flake-parts", - "type": "github" - } - }, - "flake-parts_3": { - "inputs": { - "nixpkgs-lib": [ - "stylix", - "nixpkgs" - ] - }, - "locked": { - "lastModified": 1763759067, - "narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=", - "owner": "hercules-ci", - "repo": "flake-parts", - "rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0", + "rev": "a34fae9c08a15ad73f295041fec82323541400a9", "type": "github" }, "original": { @@ -489,7 +446,9 @@ }, "nur": { "inputs": { - "flake-parts": "flake-parts", + "flake-parts": [ + "flake-parts" + ], "nixpkgs": [ "nixpkgs" ] @@ -536,7 +495,9 @@ "nvf": { "inputs": { "flake-compat": "flake-compat_2", - "flake-parts": "flake-parts_2", + "flake-parts": [ + "flake-parts" + ], "mnw": "mnw", "ndg": "ndg", "nixpkgs": [ @@ -581,6 +542,7 @@ "root": { "inputs": { "agenix": "agenix", + "flake-parts": "flake-parts", "home-manager": "home-manager_2", "impermanence": "impermanence", "nixos-mailserver": "nixos-mailserver", @@ -599,7 +561,9 @@ "base16-helix": "base16-helix", "base16-vim": "base16-vim", "firefox-gnome-theme": "firefox-gnome-theme", - "flake-parts": "flake-parts_3", + "flake-parts": [ + "flake-parts" + ], "gnome-shell": "gnome-shell", "nixpkgs": [ "nixpkgs" diff --git a/flake.nix b/flake.nix index 8e53f66..9efea5a 100644 --- a/flake.nix +++ b/flake.nix @@ -4,6 +4,10 @@ url = "github:ryantm/agenix"; inputs.nixpkgs.follows = "nixpkgs"; }; + flake-parts = { + url = "github:hercules-ci/flake-parts"; + inputs.nixpkgs-lib.follows = "nixpkgs"; + }; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; @@ -21,10 +25,12 @@ nur = { url = "github:nix-community/NUR"; inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-parts.follows = "flake-parts"; }; nvf = { url = "github:notashelf/nvf"; inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-parts.follows = "flake-parts"; }; phoenix = { url = "github:celenityy/Phoenix"; @@ -33,10 +39,12 @@ stylix = { url = "github:nix-community/stylix"; inputs.nixpkgs.follows = "nixpkgs"; + inputs.flake-parts.follows = "flake-parts"; }; }; - outputs = { + outputs = inputs @ { agenix, + flake-parts, home-manager, impermanence, nixos-mailserver, @@ -95,10 +103,17 @@ } noshell.nixosModules.default ]); - in { - nixosConfigurations = - builtins.mapAttrs - (hostname: value: configurationWithHomeManager value) - machines; - }; + in + flake-parts.lib.mkFlake {inherit inputs;} (top @ { + config, + withSystem, + moduleWithSystem, + ... + }: { + systems = ["x86_64-linux"]; + flake.nixosConfigurations = + builtins.mapAttrs + (hostname: value: configurationWithHomeManager value) + machines; + }); }