From 28868b093237a4de9ef5043a5e4a45f5a15bbb74 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Sun, 4 Apr 2021 21:27:56 +0200 Subject: modules/profiles/tvl: add tvl profile module This doesn't do much other than enabling cache.tvl.su as a binary cache currently, but we can additional settings in the future which are neat for working with tvl's depot. I contemplated adding an option to add to the nixPath, but I don't want it too desparately right now and it is kind of annoying to implement for vuizvui, as the default core/common.nix module overrides any values you set and it is hard to merge the nixPath values, so we'll probably need an vuizvui.extraNixPath option etc. pp. --- modules/profiles/tvl.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/profiles/tvl.nix (limited to 'modules/profiles') diff --git a/modules/profiles/tvl.nix b/modules/profiles/tvl.nix new file mode 100644 index 00000000..2ad9ee70 --- /dev/null +++ b/modules/profiles/tvl.nix @@ -0,0 +1,25 @@ +{ lib, config, ... }: + +let + cfg = config.vuizvui.profiles.tvl; +in + +{ + options = { + vuizvui.profiles.tvl = { + enable = lib.mkEnableOption "tvl-specific tweaks"; + }; + }; + + config = lib.mkIf cfg.enable { + nix = { + binaryCachePublicKeys = [ + "cache.tvl.su:kjc6KOMupXc1vHVufJUoDUYeLzbwSr9abcAKdn/U1Jk=" + ]; + + binaryCaches = [ + "https://cache.tvl.su" + ]; + }; + }; +} -- cgit 1.4.1