nix-conf/modules/users/root/default.nix
2023-12-30 23:39:33 +01:00

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 ];
}