feat: a bit more modularization of home.nix
This commit is contained in:
16
modules/home-manager/dotfiles.nix
Normal file
16
modules/home-manager/dotfiles.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user