summaryrefslogtreecommitdiff
path: root/modules/nixos/base/nix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/base/nix.nix')
-rw-r--r--modules/nixos/base/nix.nix24
1 files changed, 0 insertions, 24 deletions
diff --git a/modules/nixos/base/nix.nix b/modules/nixos/base/nix.nix
deleted file mode 100644
index 3dcac11..0000000
--- a/modules/nixos/base/nix.nix
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- config,
- lib,
- inputs,
- ...
-}: let
- inherit (builtins) attrNames map;
- inherit (lib) mkDefault mkIf;
- cfg = config.base.nix-settings;
-
- channelPath = i: "/etc/nix/channels/${i}";
-
- mapInputs = fn: map fn (attrNames inputs);
-in {
- config = mkIf cfg.enable {
- nix = {
- nixPath = mapInputs (i: "${i}=${channelPath i}");
- gc.dates = mkDefault "weekly";
- };
-
- systemd.tmpfiles.rules =
- mapInputs (i: "L+ ${channelPath i} - - - - ${inputs.${i}.outPath}");
- };
-}