add stylix theme for swaync

This commit is contained in:
ulic-youthlic 2025-01-25 12:18:41 +08:00
parent 5422b2fe5c
commit 35b9919a93
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 24 additions and 0 deletions

View file

@ -26,6 +26,7 @@
./mpv.nix
./kvm.nix
./atuin.nix
./swaync.nix
];
options = {

View file

@ -31,6 +31,7 @@ in
fuzzel.enable = true;
wluma.enable = true;
waybar.enable = true;
swaync.enable = true;
};
programs.niri = {
config = builtins.readFile cfg.config;

22
home/modules/swaync.nix Normal file
View file

@ -0,0 +1,22 @@
{ lib, config, ... }:
let
cfg = config.youthlic.programs.swaync;
in
{
options = {
youthlic.programs.swaync = {
enable = lib.mkEnableOption "swaync";
systemd.enable = lib.mkEnableOption "systemd service for swaync";
};
};
config = lib.mkMerge [
(lib.mkIf cfg.enable {
services.swaync = {
enable = true;
};
})
(lib.mkIf (!cfg.systemd.enable) {
systemd.user.services.swaync = lib.mkForce { };
})
];
}