mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-07 20:46:50 +01:00
20 lines
297 B
Nix
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
|
|
];
|
|
}
|
|
|