diff options
| author | seth <[email protected]> | 2023-05-03 21:11:47 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-03 21:11:47 -0400 |
| commit | cf5647129499df68ac092b55b71a3cddc3422d01 (patch) | |
| tree | f7685c8540cbab2bc51f87a2e9cda214d7d2dfae /flake/configs.nix | |
| parent | cdfc4ba1b2ef2b187e076a6f627e4631b6bd7fb3 (diff) | |
refactor flake + make virtualisation compatible with 22.11
Diffstat (limited to 'flake/configs.nix')
| -rw-r--r-- | flake/configs.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/flake/configs.nix b/flake/configs.nix new file mode 100644 index 0000000..9660616 --- /dev/null +++ b/flake/configs.nix @@ -0,0 +1,28 @@ +{ + inputs, + self, + ... +}: let + inherit (inputs) nixinate openwrt-imagebuilder; + inherit ((inputs.getchoo.lib inputs).configs) mapHMUsers mapHosts; +in { + flake = { + nixosConfigurations = mapHosts ../hosts; + + nixosModules.getchoo = import ../modules; + }; + + perSystem = { + pkgs, + system, + ... + }: { + apps = (nixinate.nixinate.${system} self).nixinate; + + legacyPackages.homeConfigurations = mapHMUsers system ../users; + + packages = { + turret = pkgs.callPackage ../hosts/_turret {inherit openwrt-imagebuilder;}; + }; + }; +} |
