mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 21:39:23 +02: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, ... }:
|
||||
|
||||
let cfg = config.jopejoe1.jopejoe1;
|
||||
let cfg = config.jopejoe1.user.jopejoe1;
|
||||
in {
|
||||
options.jopejoe1.jopejoe1 = {
|
||||
options.jopejoe1.user.jopejoe1 = {
|
||||
enable = lib.mkEnableOption "Enable jopejoe1 user";
|
||||
};
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
let cfg = config.jopejoe1.root;
|
||||
let cfg = config.jopejoe1.user.root;
|
||||
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 {
|
||||
users.users.root = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue