From 1bf8f5e3645e561da4feef950bd2f6dc5d649856 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 4 Jan 2022 14:52:57 +0900 Subject: home/modules: re-categorize profiles --- home/configurations/boopy@alpha.nix | 2 +- home/modules/default.nix | 3 ++- home/modules/profiles/misc/default.nix | 14 -------------- home/modules/profiles/multimedia/default.nix | 24 ++++++++++++++++++++++++ home/modules/profiles/research/default.nix | 14 ++++++++++++++ 5 files changed, 41 insertions(+), 16 deletions(-) delete mode 100644 home/modules/profiles/misc/default.nix create mode 100644 home/modules/profiles/multimedia/default.nix create mode 100644 home/modules/profiles/research/default.nix diff --git a/home/configurations/boopy@alpha.nix b/home/configurations/boopy@alpha.nix index af71030..237eb11 100644 --- a/home/configurations/boopy@alpha.nix +++ b/home/configurations/boopy@alpha.nix @@ -2,7 +2,7 @@ { config = { - activeProfiles = [ "browsing" "development" "messaging" "misc" ]; + activeProfiles = [ "browsing" "development" "messaging" "multimedia" "research" ]; programs.htop.settings.detailed_cpu_time = true; }; diff --git a/home/modules/default.nix b/home/modules/default.nix index a42c555..91fd11f 100644 --- a/home/modules/default.nix +++ b/home/modules/default.nix @@ -4,7 +4,8 @@ "profiles/browsing" = import ./profiles/browsing; "profiles/development" = import ./profiles/development; "profiles/messaging" = import ./profiles/messaging; - "profiles/misc" = import ./profiles/misc; + "profiles/multimedia" = import ./profiles/multimedia; + "profiles/research" = import ./profiles/research; "programs/nixpkgs" = import ./programs/nixpkgs; "programs/zshell" = import ./programs/zshell; diff --git a/home/modules/profiles/misc/default.nix b/home/modules/profiles/misc/default.nix deleted file mode 100644 index 0999080..0000000 --- a/home/modules/profiles/misc/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ config, lib, pkgs, ... }: -let cfg = config.profiles.misc; -in -{ - options.profiles.misc = { - enable = lib.mkEnableOption - "A profile that enables miscellaneous options and packages."; - }; - - config = lib.mkIf cfg.enable { - home.packages = with pkgs; [ spotify zoom-us obsidian ]; - nixpkgs.allowedUnfree = [ "spotify" "spotify-unwrapped" "zoom" "obsidian" ]; - }; -} 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"; + }; + }; + }; + }; +} diff --git a/home/modules/profiles/research/default.nix b/home/modules/profiles/research/default.nix new file mode 100644 index 0000000..5741400 --- /dev/null +++ b/home/modules/profiles/research/default.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: +let cfg = config.profiles.research; +in +{ + options.profiles.research = { + enable = lib.mkEnableOption + "A profile that enables the system to be used for researching various topics."; + }; + + config = lib.mkIf cfg.enable { + home.packages = with pkgs; [ obsidian ]; + nixpkgs.allowedUnfree = [ "obsidian" ]; + }; +} -- cgit 1.4.1