put users into sub module

This commit is contained in:
Johannes Jöns 2024-01-13 18:01:23 +01:00
parent d73dc3ba23
commit fab23b28eb
7 changed files with 24 additions and 14 deletions

View file

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let cfg = config.jopejoe1.jopejoe1; let cfg = config.jopejoe1.user.jopejoe1;
in { in {
options.jopejoe1.jopejoe1 = { options.jopejoe1.user.jopejoe1 = {
enable = lib.mkEnableOption "Enable jopejoe1 user"; enable = lib.mkEnableOption "Enable jopejoe1 user";
}; };

View file

@ -1,8 +1,8 @@
{ config, lib, ... }: { config, lib, ... }:
let cfg = config.jopejoe1.root; let cfg = config.jopejoe1.user.root;
in { in {
options.jopejoe1.root = { enable = lib.mkEnableOption "Enable root user"; }; options.jopejoe1.user.root = { enable = lib.mkEnableOption "Enable root user"; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
users.users.root = { users.users.root = {

View file

@ -9,8 +9,10 @@
nix.enable = true; nix.enable = true;
plasma6.enable = true; plasma6.enable = true;
overlays.enable = true; overlays.enable = true;
jopejoe1.enable = true; user = {
root.enable = true; jopejoe1.enable = true;
root.enable = true;
};
ssh.enable = true; ssh.enable = true;
}; };

View file

@ -25,8 +25,10 @@
nix.enable = true; nix.enable = true;
kodi.enable = true; kodi.enable = true;
plasma.enable = true; plasma.enable = true;
root.enable = true; user = {
jopejoe1.enable = true; jopejoe1.enable = true;
root.enable = true;
};
ssh.enable = true; ssh.enable = true;
}; };

View file

@ -27,8 +27,10 @@
sway.enable = true; sway.enable = true;
minecraft-server.enable = true; minecraft-server.enable = true;
repo-sync.enable = true; repo-sync.enable = true;
jopejoe1.enable = true; user = {
root.enable = true; jopejoe1.enable = true;
root.enable = true;
};
boot.systemd.enable = true; boot.systemd.enable = true;
}; };

View file

@ -13,9 +13,11 @@
audio = { enable = true; }; audio = { enable = true; };
bluetooth.enable = true; bluetooth.enable = true;
local.enable = true; local.enable = true;
jopejoe1.enable = true;
nix.enable = true; nix.enable = true;
root.enable = true; user = {
jopejoe1.enable = true;
root.enable = true;
};
boot.systemd.enable = true; boot.systemd.enable = true;
ssh.enable = true; ssh.enable = true;
}; };

View file

@ -13,8 +13,10 @@
nix.enable = true; nix.enable = true;
plasma.enable = true; plasma.enable = true;
sway.enable = true; sway.enable = true;
jopejoe1.enable = true; user = {
root.enable = true; jopejoe1.enable = true;
root.enable = true;
};
ssh.enable = true; ssh.enable = true;
}; };