From fb6e61d05b1b162facda75803be6b44c6969193d Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 15 Mar 2022 17:28:47 +0100 Subject: [PATCH] add mkRaspi --- flake.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/flake.nix b/flake.nix index 687185c..0917007 100644 --- a/flake.nix +++ b/flake.nix @@ -83,6 +83,27 @@ } ]); }; + mkRaspi = configurationNix: nixpkgs.lib.nixosSystem { + inherit system pkgs; + specialArgs = { inherit custom inputs; }; + modules = ( + [ + # System configuration for this host + configurationNix + + # Common configuration + ./modules/common + + home-manager.nixosModules.home-manager + { + home-manager.useGlobalPkgs = true; + home-manager.useUserPackages = true; + home-manager.users.${custom.username}.imports = [ + (import ./home-manager/headless.nix { inherit custom pkgs inputs; }) + ]; + } + ]); + }; in { nixosConfigurations = {