about summary refs log tree commit diff
path: root/home/profiles/multimedia/default.nix
blob: 37975591b45ca752fb3101dc3ad04d3bb8dea3c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, lib, pkgs, ... }:
let cfg = config.profiles.multimedia;
in
{
  imports = [
    ../../modules/programs/nixpkgs
  ];

  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; [ playerctl spotify ];

    nixpkgs.allowedUnfree = [ "spotify" ];
  };
}