flake rewiritte

This commit is contained in:
jopejoe1 2023-12-29 16:43:40 +01:00
parent f206e94425
commit a0d6ca6267
33 changed files with 1257 additions and 1070 deletions

View file

@ -1,12 +1,20 @@
{ ... }:
{ 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
];
users.users.root = {
initialPassword = "password";
};
}