{ config, lib, pkgs, ... }: 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" "adam" ]; experimental-features = [ "nix-command" "flakes" ]; }; programs.nh = { enable = true; flake = "/etc/nixos"; }; environment.systemPackages = with pkgs; [ nix-output-monitor nvd ]; }; }