nix-conf/modules/users/root/default.nix

21 lines
297 B
Nix
Raw Normal View History

2023-12-29 16:43:40 +01:00
{ config, lib, pkgs, ... }:
2023-08-21 18:40:42 +02:00
2023-12-29 16:43:40 +01:00
let
cfg = config.jopejoe1.root;
in
2023-08-21 18:40:42 +02:00
{
2023-12-29 16:43:40 +01:00
options.jopejoe1.root = {
enable = lib.mkEnableOption "Enable root user";
};
config = lib.mkIf cfg.enable {
users.users.root = {
initialPassword = "password";
};
};
2023-08-21 18:40:42 +02:00
imports = [
./home.nix
];
}