nixos/modules/home/default.nix

33 lines
671 B
Nix
Raw Normal View History

2023-01-11 20:22:35 +00:00
{ pkgs, lib, config, ... }:
{
imports = [
2023-01-21 20:08:05 +00:00
./git.nix
2023-01-11 20:22:35 +00:00
./tmux/default.nix
];
options.custom.home.defaults = lib.mkEnableOption "home";
config = lib.mkIf config.custom.home.defaults {
2023-05-11 21:12:57 +01:00
home-manager = {
users.root.home = {
stateVersion = "22.11";
## Set an empty ZSH config and defer to the global one
file.".zshrc".text = "";
};
users."${config.custom.user}".home = {
stateVersion = "22.11";
## Set an empty ZSH config and defer to the global one
file.".zshrc".text = "";
};
};
# Delegation
custom.home.git.enable = true;
custom.home.tmux.enable = true;
2023-05-11 21:12:57 +01:00
};
2023-01-11 20:22:35 +00:00
}