mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-07 21:16:33 +01:00
17 lines
436 B
Nix
17 lines
436 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";
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh johannes@joens.email"
|
|
];
|
|
};
|
|
};
|
|
imports = [ ./home.nix ];
|
|
}
|
|
|