First work

This commit is contained in:
Florian RICHER 2024-05-27 22:23:32 +02:00
parent be2affebef
commit b86a8b50c7
20 changed files with 138 additions and 148 deletions

View file

@ -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
];
}