gendry: enable spotifyd
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2023-01-21 18:32:16 +00:00 committed by Gitea
parent d7c17a7f77
commit 42db24fabb
4 changed files with 36 additions and 1 deletions

View File

@ -9,6 +9,7 @@
imports = [
../../modules/common/default.nix
../../modules/desktop/awesome/default.nix
../../modules/spotify/default.nix
./hardware-configuration.nix
./persist.nix
./resilio.nix
@ -34,5 +35,13 @@
## Graphics
config.boot.initrd.kernelModules = [ "amdgpu" ];
config.services.xserver.videoDrivers = [ "amdgpu" ];
}
## Spotify
config.home-manager.users.jake.services.spotifyd.settings = {
global = {
device_name = "Gendry";
device_type = "computer";
bitrate = 320;
};
};
}

View File

@ -0,0 +1,23 @@
{ config, pkgs, lib, ... }:
{
config.age.secrets."spotify/11132032266" = {
file = ../../secrets/spotify/11132032266.age;
owner = "jake";
};
config.hardware.pulseaudio.enable = true;
config.users.users.jake.extraGroups = [ "audio" ];
config.home-manager.users.jake.services.spotifyd = {
enable = true;
settings = {
global = {
username = "11132032266";
password_cmd = "cat ${config.age.secrets."spotify/11132032266".path}";
backend = "pulseaudio";
};
};
};
}

View File

@ -58,4 +58,7 @@ in
# Restic Secrets
"restic/b2-backups-matrix.age".publicKeys = jake_users ++ [ ts.strangervm.vm ];
# Spotify Secrets
"spotify/11132032266.age".publicKeys = jake_users ++ [ ts.terminals.jakehillion.gendry ];
}

Binary file not shown.