summaryrefslogtreecommitdiff
path: root/modules/nixos/base/nix.nix
blob: e49eb173ba12d4014944f1674dcc50876fc029d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ config, lib, ... }:
let
  cfg = config.base.nixSettings;
in
{
  config = lib.mkIf cfg.enable {
    nix = {
      channel.enable = lib.mkDefault false;
      settings.trusted-users = [
        "root"
        "@wheel"
      ];
    };
  };
}