aboutsummaryrefslogtreecommitdiff
path: root/scripts/default.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-21 13:00:38 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-21 13:00:38 -0700
commit40d6a40b1de18f28003c4aa5f36d9b4b0ef4afdd (patch)
tree45a0902743971b1789b1f5d03efde7390cc0e95e /scripts/default.nix
parentmove user configurations to top-level (diff)
downloadinfra-40d6a40b1de18f28003c4aa5f36d9b4b0ef4afdd.tar.gz
move all profiles, modules, and flakes to top-level
Diffstat (limited to '')
-rw-r--r--scripts/default.nix (renamed from nix/scripts/default.nix)4
1 files changed, 4 insertions, 0 deletions
diff --git a/nix/scripts/default.nix b/scripts/default.nix
index 90851df..bf91760 100644
--- a/nix/scripts/default.nix
+++ b/scripts/default.nix
@@ -2,19 +2,23 @@
pkgs,
system,
inputs,
+ self,
}:
let
common = import ./common.nix { inherit pkgs; };
+ infra = import ./infra.nix { inherit self pkgs; };
darwin = import ./darwin.nix { inherit pkgs system inputs; };
linux = import ./linux.nix { inherit pkgs system inputs; };
in
{
common = common;
+ infra = infra;
darwin = if pkgs.lib.hasSuffix "darwin" system then darwin else [ ];
linux = if pkgs.lib.hasSuffix "linux" system then linux else [ ];
all =
common
+ ++ infra
++ (if pkgs.lib.hasSuffix "darwin" system then darwin else [ ])
++ (if pkgs.lib.hasSuffix "linux" system then linux else [ ]);
}