aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/c-pc/home.nix1
-rw-r--r--hosts/phoenix/home.nix1
-rw-r--r--roles/home/desktop/cmus.nix55
-rw-r--r--roles/home/desktop/default.nix10
4 files changed, 65 insertions, 2 deletions
diff --git a/hosts/c-pc/home.nix b/hosts/c-pc/home.nix
index 7dbbb0a..f8b48de 100644
--- a/hosts/c-pc/home.nix
+++ b/hosts/c-pc/home.nix
@@ -130,7 +130,6 @@
# jetbrains.idea-community
cloc
- cmus
];
home.file = {
diff --git a/hosts/phoenix/home.nix b/hosts/phoenix/home.nix
index 930774c..5bd34b6 100644
--- a/hosts/phoenix/home.nix
+++ b/hosts/phoenix/home.nix
@@ -101,7 +101,6 @@
prismlauncher
cloc
- cmus
];
home.stateVersion = "23.11";
diff --git a/roles/home/desktop/cmus.nix b/roles/home/desktop/cmus.nix
new file mode 100644
index 0000000..26ec2f1
--- /dev/null
+++ b/roles/home/desktop/cmus.nix
@@ -0,0 +1,55 @@
+{ config, lib, pkgs, ... }:
+
+lib.mkIf config.home.roles.desktop.music {
+ home.packages = with pkgs; [
+ cmus
+ ];
+
+ xdg.configFile."cmus/rc".text = let c = config.theme.colors; in ''
+ set auto_expand_albums_follow=false
+ set pause_on_output_change=true
+ set repeat=true
+ set shuffle=tracks
+
+ fset unheard=play_count=0
+ factivate
+
+ set color_cmdline_attr=default
+ set color_cmdline_bg=default
+ set color_cmdline_fg=default
+ set color_cur_sel_attr=default
+ set color_error=lightred
+ set color_info=lightyellow
+ set color_separator=black
+ set color_statusline_attr=default
+ set color_statusline_bg=237
+ set color_statusline_fg=248
+ set color_titleline_attr=bold
+ set color_titleline_bg=239
+ set color_titleline_fg=default
+ set color_trackwin_album_attr=bold
+ set color_trackwin_album_bg=black
+ set color_trackwin_album_fg=default
+ set color_win_attr=default
+ set color_win_bg=default
+ set color_win_cur=lightred
+ set color_win_cur_attr=default
+ set color_win_cur_sel_attr=bold
+ set color_win_cur_sel_bg=lightred
+ set color_win_cur_sel_fg=black
+ set color_win_dir=lightblue
+ set color_win_fg=default
+ set color_win_inactive_cur_sel_attr=bold
+ set color_win_inactive_cur_sel_bg=237
+ set color_win_inactive_cur_sel_fg=lightred
+ set color_win_inactive_sel_attr=bold
+ set color_win_inactive_sel_bg=237
+ set color_win_inactive_sel_fg=default
+ set color_win_sel_attr=bold
+ set color_win_sel_bg=250
+ set color_win_sel_fg=black
+ set color_win_title_attr=bold
+ set color_win_title_bg=250
+ set color_win_title_fg=black
+ '';
+}
diff --git a/roles/home/desktop/default.nix b/roles/home/desktop/default.nix
index 7f37b1c..83656c8 100644
--- a/roles/home/desktop/default.nix
+++ b/roles/home/desktop/default.nix
@@ -19,6 +19,7 @@ let cfg = config.home.roles.desktop; in {
./mpv.nix
./flameshot.nix
./fastfetch.nix
+ ./cmus.nix
];
options.home.roles.desktop = {
@@ -28,22 +29,31 @@ let cfg = config.home.roles.desktop; in {
type = types.bool;
default = true;
};
+
eww = mkOption {
type = types.bool;
default = true;
};
+
mpv = mkOption {
type = types.bool;
default = true;
};
+
screenshot = mkOption {
type = types.bool;
default = true;
};
+
fetch = mkOption {
type = types.bool;
default = true;
};
+
+ music = mkOption {
+ type = types.bool;
+ default = true;
+ };
};
config = mkIf cfg.enable {