feat: a bit more modularization of home.nix

This commit is contained in:
Yoru
2024-12-05 17:31:35 +01:00
parent 45b7136e4d
commit ab324d55ed
3 changed files with 42 additions and 36 deletions

View File

@@ -0,0 +1,16 @@
{
pkgs,
lib,
config,
...
}: {
options = {
myHome.dotfiles.enable = lib.mkEnableOption "enables dotfiles";
};
config = lib.mkIf config.myHome.dotfiles.enable {
home.file = {
".config/hypr/hyprland.conf".source = ../../dotfiles/hyprland.conf;
};
};
}