gendry: enable spotifyd
This commit is contained in:
parent
d7c17a7f77
commit
42db24fabb
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
23
modules/spotify/default.nix
Normal file
23
modules/spotify/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -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 ];
|
||||
}
|
||||
|
BIN
secrets/spotify/11132032266.age
Normal file
BIN
secrets/spotify/11132032266.age
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user