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

18 lines
372 B
Nix
Raw Normal View History

2023-02-23 20:34:35 +01:00
{ 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;
2023-02-24 16:03:52 +01:00
home-manager.users.root.home.stateVersion = config.system.stateVersion;
2023-02-23 20:34:35 +01:00
};
}