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