mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-04 09:26:54 +01:00
put users into sub module
This commit is contained in:
parent
d73dc3ba23
commit
fab23b28eb
7 changed files with 24 additions and 14 deletions
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue