mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
refactor: prepare new modules structure
This commit is contained in:
parent
d25e24c15b
commit
bf82970b9e
65 changed files with 94 additions and 94 deletions
22
legacy_modules/apps/spotify.nix
Normal file
22
legacy_modules/apps/spotify.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
username,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
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