nix-conf/modules/users/root/default.nix
2023-12-29 16:43:40 +01:00

20 lines
297 B
Nix

{ config, lib, pkgs, ... }:
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
];
}