diff options
author | sefidel <contact@sefidel.net> | 2022-01-04 14:52:57 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2022-01-04 14:59:20 +0900 |
commit | 1bf8f5e3645e561da4feef950bd2f6dc5d649856 (patch) | |
tree | bcefffdd86ad87a12992aff99a9df70bad5e9dcd /home/modules/profiles/multimedia | |
parent | cab97932e0b6d0ccef5e5429e9d26f0c45c307dd (diff) | |
download | nixrc-1bf8f5e3645e561da4feef950bd2f6dc5d649856.tar.gz nixrc-1bf8f5e3645e561da4feef950bd2f6dc5d649856.zip |
home/modules: re-categorize profiles
Diffstat (limited to 'home/modules/profiles/multimedia')
-rw-r--r-- | home/modules/profiles/multimedia/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/home/modules/profiles/multimedia/default.nix b/home/modules/profiles/multimedia/default.nix new file mode 100644 index 0000000..1e396cd --- /dev/null +++ b/home/modules/profiles/multimedia/default.nix @@ -0,0 +1,24 @@ +{ config, lib, pkgs, ... }: +let cfg = config.profiles.multimedia; +in +{ + options.profiles.multimedia = { + enable = lib.mkEnableOption + "A profile that enables the system to be used for consuming multimedia contents."; + }; + + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ spotify-tui ]; + + services.spotifyd = { + enable = true; + + settings = { + global = { + username = "9nko3f7puya1e5bbo9c5ifddy"; + password_cmd = "${pkgs.pass}/bin/pass www/spotify.com | head -n1"; + }; + }; + }; + }; +} |