vlc: handle the config file with sane.fs
This commit is contained in:
parent
53edf4e6af
commit
1839f87a4e
|
@ -1,14 +1,14 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, sane-lib, ... }:
|
||||||
|
|
||||||
lib.mkIf config.sane.home-manager.enable
|
lib.mkIf config.sane.home-manager.enable
|
||||||
{
|
{
|
||||||
home-manager.users.colin.xdg.configFile."vlc/vlcrc".text =
|
sane.fs."/home/colin/.config/vlc/vlcrc" =
|
||||||
let
|
let
|
||||||
feeds = import ./feeds.nix { inherit lib; };
|
feeds = import ./feeds.nix { inherit lib; };
|
||||||
podcastUrls = lib.strings.concatStringsSep "|" (
|
podcastUrls = lib.strings.concatStringsSep "|" (
|
||||||
builtins.map (feed: feed.url) feeds.podcasts
|
builtins.map (feed: feed.url) feeds.podcasts
|
||||||
);
|
);
|
||||||
in ''
|
in sane-lib.fs.wantedText ''
|
||||||
[podcast]
|
[podcast]
|
||||||
podcast-urls=${podcastUrls}
|
podcast-urls=${podcastUrls}
|
||||||
[core]
|
[core]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user