aboutsummaryrefslogtreecommitdiff
path: root/snowfall/modules/home/apps/cmus
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2025-02-07 21:17:46 -0800
committerCaroline Larimore <caroline@larimo.re>2025-04-14 18:58:48 -0700
commit6c677b782ae507976e9b31b9713530cab8564001 (patch)
tree5f44cd1764fdb2ddbfa92bf88b556bab49e28638 /snowfall/modules/home/apps/cmus
parent55c77539b662cf2e1745b1c3d8e458f3cbf73731 (diff)
migration: persist cmus config
Diffstat (limited to 'snowfall/modules/home/apps/cmus')
-rw-r--r--snowfall/modules/home/apps/cmus/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/snowfall/modules/home/apps/cmus/default.nix b/snowfall/modules/home/apps/cmus/default.nix
index 8fb286f..3124d07 100644
--- a/snowfall/modules/home/apps/cmus/default.nix
+++ b/snowfall/modules/home/apps/cmus/default.nix
@@ -2,6 +2,7 @@
with lib; with lib.${namespace}; let
cfg = config.${namespace}.apps.cmus;
+ impermanence = config.${namespace}.impermanence;
in {
options.${namespace}.apps.cmus = with types; {
enable = mkEnableOption "cmus";
@@ -12,6 +13,12 @@ in {
cmus
];
+ home.persistence.${impermanence.location} = {
+ directories = [
+ ".config/cmus"
+ ];
+ };
+
xdg.desktopEntries.cmus = {
name = "cmus";
genericName = "Music Player";