home-manager: split vlc
config out of default.nix
This commit is contained in:
17
modules/universal/env/home-manager/default.nix
vendored
17
modules/universal/env/home-manager/default.nix
vendored
@@ -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;
|
||||||
|
|
||||||
|
17
modules/universal/env/home-manager/vlc.nix
vendored
Normal file
17
modules/universal/env/home-manager/vlc.nix
vendored
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
Reference in New Issue
Block a user