mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
refactor: move last legacy_modules to modules
This commit is contained in:
parent
d463f4d1af
commit
d50bbb3d12
49 changed files with 580 additions and 459 deletions
27
modules/programs/spotify.nix
Normal file
27
modules/programs/spotify.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# Enabled when: desktop
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
username,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.fireproof.desktop.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
spotify
|
||||
];
|
||||
|
||||
age.secrets.spotify-player = {
|
||||
rekeyFile = ../../secrets/spotify-player.age;
|
||||
path = "/home/${username}/.cache/spotify-player/credentials.json";
|
||||
mode = "0600";
|
||||
owner = username;
|
||||
};
|
||||
|
||||
fireproof.home-manager = {
|
||||
programs.spotify-player = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue