nix-conf/modules/user/root/default.nix

17 lines
372 B
Nix

{ options, config, pkgs, lib, ... }:
with lib;
#with lib.internal;
let cfg = config.custom.user.root;
in
{
options.custom.user.root = with types; {
enable = mkBoolOpt false "Enable the user root";
};
config = mkIf cfg.enable {
home-manager.users.root = import ./home.nix;
home-manager.users.root.home.stateVersion = config.system.stateVersion;
};
}