From 6aaa5993e4c1cfb205ed555d958702f9bba1770d Mon Sep 17 00:00:00 2001 From: adikro Date: Wed, 24 Dec 2025 16:21:00 +0100 Subject: a bunch of changes, renames sys to os and refactored some of the logic --- os/srv/nix-helper.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 os/srv/nix-helper.nix (limited to 'os/srv/nix-helper.nix') diff --git a/os/srv/nix-helper.nix b/os/srv/nix-helper.nix new file mode 100644 index 0000000..6a64201 --- /dev/null +++ b/os/srv/nix-helper.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, username, ... }: +let + cfg = config.sys.srv.nix-helper; +in +{ + options.sys.srv.nix-helper.enable = lib.mkEnableOption "enables nix-helper"; + config = lib.mkIf cfg.enable { + nix.settings = { + trusted-users = [ "root" "${username}" ]; + experimental-features = [ "nix-command" "flakes" ]; + }; + + programs.nh = { + enable = true; + flake = "/etc/nixos"; + }; + + environment.systemPackages = with pkgs; [ + nix-output-monitor + nvd + ]; + }; +} -- cgit v1.3