{ config, lib, pkgs, ... }: { options.szpont.nh = { enable = lib.mkOption { type = lib.types.bool; default = true; }; }; config = lib.mkIf config.szpont.nh.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 ]; }; }