run nix format on this repository
This commit is contained in:
parent
1b5b697dfb
commit
d281a23a8a
17 changed files with 354 additions and 165 deletions
|
|
@ -1,5 +1,15 @@
|
|||
self: { ... }@inputs: { user, ... }@imports: let
|
||||
user' = name: snippets: { pkgs, lib, config, ... }@args:
|
||||
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
|
||||
|
|
@ -7,11 +17,15 @@ self: { ... }@inputs: { user, ... }@imports: let
|
|||
# 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;
|
||||
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
|
||||
in
|
||||
builtins.mapAttrs user' user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue