diff options
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 26 |
1 files changed, 10 insertions, 16 deletions
@@ -23,28 +23,22 @@ ... }: let + pkgsFor = system: import nixpkgs { + inherit system; + config.allowUnfree = true; + overlays = [ + agenix.overlays.default + ]; + }; forAllSystems = f: nixpkgs.lib.genAttrs - [ - "x86_64-linux" - "aarch64-linux" - ] - ( - system: - f ( - import nixpkgs { - inherit system; - config.allowUnfree = true; - overlays = [ - agenix.overlays.default - ]; - } - ) - ); + [ "x86_64-linux" "aarch64-linux" ] + (system: f (pkgsFor system)); in { nixosConfigurations.oden = nixpkgs.lib.nixosSystem { + pkgs = pkgsFor "x86_64-linux"; modules = [ ./configuration.nix disko.nixosModules.disko |
