From f7d3b8128ecfac2ef3f1dcc46d91ec18e53474f6 Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 21 Oct 2022 08:47:21 -0700 Subject: [PATCH] home-manager: split `vlc` config out of `default.nix` --- modules/universal/env/home-manager/default.nix | 17 ++--------------- modules/universal/env/home-manager/vlc.nix | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 modules/universal/env/home-manager/vlc.nix diff --git a/modules/universal/env/home-manager/default.nix b/modules/universal/env/home-manager/default.nix index 671bab574..1af6fd667 100644 --- a/modules/universal/env/home-manager/default.nix +++ b/modules/universal/env/home-manager/default.nix @@ -22,9 +22,10 @@ in imports = [ ./git.nix ./kitty.nix + ./librewolf.nix ./mpv.nix ./neovim.nix - ./librewolf.nix + ./vlc.nix ./zsh.nix ]; @@ -183,20 +184,6 @@ in xdg.configFile."sublime-music/config.json".source = config.lib.file.mkOutOfStoreSymlink sysconfig.sops.secrets.sublime_music_config.path; - xdg.configFile."vlc/vlcrc".text = - let - podcastUrls = lib.strings.concatStringsSep "|" ( - builtins.map (feed: feed.url) feeds.podcasts - ); - in '' - [podcast] - podcast-urls=${podcastUrls} - [core] - metadata-network-access=0 - [qt] - qt-privacy-ask=0 - ''; - xdg.configFile."gpodderFeeds.opml".text = with feeds; feedsToOpml feeds.podcasts; diff --git a/modules/universal/env/home-manager/vlc.nix b/modules/universal/env/home-manager/vlc.nix new file mode 100644 index 000000000..9bb7d1fb6 --- /dev/null +++ b/modules/universal/env/home-manager/vlc.nix @@ -0,0 +1,17 @@ +{ lib, ... }: +{ + home-manager.users.colin.xdg.configFile."vlc/vlcrc".text = + let + feeds = import ./feeds.nix { inherit lib; }; + podcastUrls = lib.strings.concatStringsSep "|" ( + builtins.map (feed: feed.url) feeds.podcasts + ); + in '' + [podcast] + podcast-urls=${podcastUrls} + [core] + metadata-network-access=0 + [qt] + qt-privacy-ask=0 + ''; +}