mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-07 21:26:51 +01:00
15 lines
287 B
Nix
15 lines
287 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 {
|
|
custom.user.root.home.enable = true;
|
|
};
|
|
}
|