summaryrefslogtreecommitdiff
path: root/sys/srv/nix-helper.nix
blob: fc81ddbd3d486b2dc81a31ac0a26746d984125d8 (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
{ config, lib, pkgs, ... }:
let
  cfg = config.szpont.sys.srv.nix-helper;
in
{
  options.szpont.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
    ];
  };
}