[spotify] Move adblock around
This commit is contained in:
parent
9e692e6a41
commit
698876102e
4 changed files with 23 additions and 11 deletions
|
@ -62,11 +62,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1697655685,
|
"lastModified": 1697851979,
|
||||||
"narHash": "sha256-79Kuv+QdgsVc+rkibuAgWHnh8IXrLBTOKg5nM0Qvux0=",
|
"narHash": "sha256-lJ8k4qkkwdvi+t/Xc6Fn74kUuobpu9ynPGxNZR6OwoA=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "80c1aab725151632ddc2a20caeb914e76dd0673c",
|
"rev": "5550a85a087c04ddcace7f892b0bdc9d8bb080c8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -77,11 +77,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1697332183,
|
"lastModified": 1697929210,
|
||||||
"narHash": "sha256-ACYvYsgLETfEI2xM1jjp8ZLVNGGC0onoCGe+69VJGGE=",
|
"narHash": "sha256-RkQZif6QhswEwv7484mrKfIU8XmIWm+ED6llbr4IyxM=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0e1cff585c1a85aeab059d3109f66134a8f76935",
|
"rev": "fb000224952bf7749a9e8b3779104ef7ea4465c8",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -125,11 +125,11 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1697339241,
|
"lastModified": 1697943852,
|
||||||
"narHash": "sha256-ITsFtEtRbCBeEH9XrES1dxZBkE1fyNNUfIyQjQ2AYQs=",
|
"narHash": "sha256-DaBxUPaZhQ3yLCmAATshYB7qo7NwcMvSFWz9T3bjYYY=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "51186b8012068c417dac7c31fb12861726577898",
|
"rev": "30a0ba4a20703b4bfe047fe5def1fc24978e322c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -3,5 +3,6 @@
|
||||||
./home-manager
|
./home-manager
|
||||||
./sops
|
./sops
|
||||||
./ssh
|
./ssh
|
||||||
|
./spotify-adblock
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
11
nixos/modules/programs/spotify-adblock/default.nix
Normal file
11
nixos/modules/programs/spotify-adblock/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -38,6 +38,8 @@ in {
|
||||||
vistafonts # Microsoft fonts
|
vistafonts # Microsoft fonts
|
||||||
];
|
];
|
||||||
|
|
||||||
|
sisyphus.programs.spotify-adblock.enable = true;
|
||||||
|
|
||||||
home-manager.users.tdpeuter = lib.mkIf config.sisyphus.programs.home-manager.enable {
|
home-manager.users.tdpeuter = lib.mkIf config.sisyphus.programs.home-manager.enable {
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
@ -79,8 +81,6 @@ in {
|
||||||
statix
|
statix
|
||||||
vim-plug
|
vim-plug
|
||||||
]);
|
]);
|
||||||
|
|
||||||
file.".config/spotify-adblock/config.toml".source = "${pkgs.spotify-adblock}/config.toml";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# GNOME ricing
|
# GNOME ricing
|
||||||
|
|
Loading…
Reference in a new issue