initial commit
This commit is contained in:
commit
5679c003d8
26 changed files with 296 additions and 0 deletions
17
export/nixosUsers.nix
Normal file
17
export/nixosUsers.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
self: { ... }@inputs: { user, ... }@imports: let
|
||||
user' = name: snippets: { pkgs, lib, config, ... }@args:
|
||||
builtins.trace "user: ${name}" {
|
||||
options.fbs42.user.${name} = lib.mkEnableOption name;
|
||||
## no longer with nixos-24.11
|
||||
#config.users.users.${name} = lib.mkIf config.fbs42.user.${name} {
|
||||
# group = lib.mkDefault name;
|
||||
#};
|
||||
|
||||
imports = map ({ user, home-manager}: {
|
||||
config = lib.mkIf config.fbs42.user.${name} {
|
||||
users.users.${name} = (user args);
|
||||
home-manager.users.${name} = home-manager;
|
||||
};
|
||||
}) snippets;
|
||||
};
|
||||
in builtins.mapAttrs user' user
|
||||
Loading…
Add table
Add a link
Reference in a new issue