[spotify] Move adblock around

This commit is contained in:
Tibo De Peuter 2023-10-24 12:43:44 +02:00
parent 9e692e6a41
commit 698876102e
4 changed files with 23 additions and 11 deletions

View file

@ -3,5 +3,6 @@
./home-manager
./sops
./ssh
./spotify-adblock
];
}

View file

@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.programs.spotify-adblock;
in {
options.sisyphus.programs.spotify-adblock.enable = lib.mkEnableOption "Spotify adblock";
config = lib.mkIf cfg.enable {
environment.etc."spotify-adblock/config.toml".source = "${pkgs.spotify-adblock}/config.toml";
};
}