nix-config/modules/home-manager/wm/hyprland.nix
smayzy 614a10248f
All checks were successful
nix flake show / show-flake (push) Successful in 34s
mv mako to module
2025-07-29 18:05:45 +02:00

73 lines
1.6 KiB
Nix

{
lib,
pkgs,
smayzy,
...
}:
let
mkIf = lib.mkIf;
in
{
config = mkIf smayzy.hyprland.enable {
home.file = lib.mkMerge [
{
".config/wofi" = {
source = builtins.toPath ../../../dotfiles/wofi;
recursive = true;
force = true;
};
}
(mkIf smayzy.desktop.enable {
".config/hypr" = {
source = builtins.toPath ../../../dotfiles/hypr-desk;
recursive = true;
force = true;
};
".config/waybar" = {
source = builtins.toPath ../../../dotfiles/waybar-desk;
recursive = true;
force = true;
};
".config/wlogout" = {
source = builtins.toPath ../../../dotfiles/wlogout-desk;
recursive = true;
force = true;
};
})
(mkIf smayzy.laptop.enable {
".config/hypr" = {
source = builtins.toPath ../../../dotfiles/hypr-lap;
recursive = true;
force = true;
};
".config/waybar" = {
source = builtins.toPath ../../../dotfiles/waybar-lap;
recursive = true;
force = true;
};
".config/wlogout" = {
source = builtins.toPath ../../../dotfiles/wlogout-lap;
recursive = true;
force = true;
};
})
];
systemd.user.services.hypr-wallpaper = {
Unit = {
Description = "Wallpaper auto-changer";
};
Service = {
ExecStart = "${pkgs.bash}/bin/bash /home/smayzy/.config/hypr/wallpaper.sh";
Restart = "always";
RestartSec = 10;
};
};
};
}