add stylix theme for swaync
This commit is contained in:
parent
5422b2fe5c
commit
35b9919a93
3 changed files with 24 additions and 0 deletions
|
|
@ -26,6 +26,7 @@
|
|||
./mpv.nix
|
||||
./kvm.nix
|
||||
./atuin.nix
|
||||
./swaync.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
|
|
|
|||
|
|
@ -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
22
home/modules/swaync.nix
Normal 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 { };
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue