From 10b0df38b4286237b56ff9177f8d4c5676bfb5c1 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 30 Oct 2023 04:22:32 -0400 Subject: tree-wide: refactor i went overboard on modules. this is much comfier --- modules/darwin/base.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/darwin/base.nix (limited to 'modules/darwin/base.nix') 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; +} -- cgit v1.2.3