From c153a351659e4596acfc31f00bf594343cbfcd68 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 30 Jul 2026 14:05:39 +0200 Subject: modules: Use namespaces That might make it easier in the future to merge different server configs together (and thusly facilitate code-reuse.). --- modules/vhack/ni/nixconfig/module.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 modules/vhack/ni/nixconfig/module.nix (limited to 'modules/vhack/ni/nixconfig/module.nix') diff --git a/modules/vhack/ni/nixconfig/module.nix b/modules/vhack/ni/nixconfig/module.nix new file mode 100644 index 0000000..a5bf950 --- /dev/null +++ b/modules/vhack/ni/nixconfig/module.nix @@ -0,0 +1,28 @@ +{ + config, + lib, + ... +}: let + cfg = config.vhack.nixconfig; +in { + options.vhack.nixconfig = { + enable = lib.mkEnableOption "sophisticated nix settings"; + }; + config = lib.mkIf cfg.enable { + nix = { + # gc = { + # automatic = true; + # dates = "daily"; + # options = "--delete-older-than 3"; + # }; + settings = { + auto-optimise-store = true; + experimental-features = ["nix-command" "flakes"]; + trusted-users = [ + "root" + "@wheel" + ]; + }; + }; + }; +} -- cgit v1.3.1