blob: d24d88b3eb9148d47007b8d21cd90326448f284b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ 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
];
};
}
|