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

16 lines
287 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 {
2023-02-24 16:41:24 +01:00
custom.user.root.home.enable = true;
2023-02-23 20:34:35 +01:00
};
}