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