summaryrefslogtreecommitdiff
path: root/modules/darwin/base.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/darwin/base.nix')
-rw-r--r--modules/darwin/base.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/darwin/base.nix b/modules/darwin/base.nix
new file mode 100644
index 0000000..b01bd12
--- /dev/null
+++ b/modules/darwin/base.nix
@@ -0,0 +1,17 @@
+{inputs, ...}: let
+ channelPath = i: "${inputs.${i}.outPath}";
+ mapInputs = fn: map fn (builtins.filter (n: n != "self") (builtins.attrNames inputs));
+in {
+ imports = [../shared];
+
+ nix.nixPath =
+ mapInputs (i: "${i}=${channelPath i}");
+
+ programs = {
+ bash.enable = true;
+ vim.enable = true;
+ zsh.enable = true;
+ };
+
+ services.nix-daemon.enable = true;
+}