mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-07 21:36:34 +01:00
12 lines
267 B
Nix
12 lines
267 B
Nix
{ config, lib, ... }:
|
|
|
|
let cfg = config.jopejoe1.root;
|
|
in {
|
|
options.jopejoe1.root = { enable = lib.mkEnableOption "Enable root user"; };
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
users.users.root = { initialPassword = "password"; };
|
|
};
|
|
imports = [ ./home.nix ];
|
|
}
|
|
|