home-manager: split vlc config out of default.nix

This commit is contained in:
2022-10-21 08:47:21 -07:00
parent 9119f0b092
commit f7d3b8128e
2 changed files with 19 additions and 15 deletions

View File

@@ -22,9 +22,10 @@ in
imports = [ imports = [
./git.nix ./git.nix
./kitty.nix ./kitty.nix
./librewolf.nix
./mpv.nix ./mpv.nix
./neovim.nix ./neovim.nix
./librewolf.nix ./vlc.nix
./zsh.nix ./zsh.nix
]; ];
@@ -183,20 +184,6 @@ in
xdg.configFile."sublime-music/config.json".source = xdg.configFile."sublime-music/config.json".source =
config.lib.file.mkOutOfStoreSymlink sysconfig.sops.secrets.sublime_music_config.path; 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; xdg.configFile."gpodderFeeds.opml".text = with feeds;
feedsToOpml feeds.podcasts; feedsToOpml feeds.podcasts;

View File

@@ -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
'';
}