mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-22 12:19:46 +01:00
15 lines
276 B
Nix
15 lines
276 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 {
|
|
imports = [ ./home.nix ];
|
|
};
|
|
}
|