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

13 lines
267 B
Nix
Raw Normal View History

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