summaryrefslogtreecommitdiff
path: root/flake/configs.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake/configs.nix')
-rw-r--r--flake/configs.nix28
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;};
+ };
+ };
+}