First work
This commit is contained in:
parent
be2affebef
commit
b86a8b50c7
20 changed files with 138 additions and 148 deletions
|
@ -1,43 +1,10 @@
|
|||
inputs@{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.home;
|
||||
|
||||
userOpts = { name, userconfig, ... }: {
|
||||
options = {};
|
||||
config = {
|
||||
# home = {
|
||||
# username = name;
|
||||
# homeDirectory = "/home/${name}";
|
||||
# stateVersion = "24.05";
|
||||
# };
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
options.modules.home = {
|
||||
users = mkOption {
|
||||
default = {};
|
||||
type = with types; attrsOf (submodule userOpts);
|
||||
example = {
|
||||
alice = {
|
||||
shell.atuin.enable = true;
|
||||
shell.direnv.enable = true;
|
||||
shell.git.enable = true;
|
||||
shell.zsh.enable = true;
|
||||
};
|
||||
};
|
||||
description = ''
|
||||
Additional user home configuration
|
||||
'';
|
||||
};
|
||||
};
|
||||
config = {
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = inputs;
|
||||
home-manager.users = mapAttrs (name: userconfig: import ./home.nix) cfg.users;
|
||||
};
|
||||
imports = [
|
||||
./apps
|
||||
./desktop
|
||||
./shell
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue