diff options
author | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-04-04 21:27:56 +0200 |
---|---|---|
committer | sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> | 2021-04-04 21:30:14 +0200 |
commit | 28868b093237a4de9ef5043a5e4a45f5a15bbb74 (patch) | |
tree | 3a1e8d9c228c017cae05617e3b0ac4b1c8d72300 /modules/profiles/tvl.nix | |
parent | f2632ed6e5e6856ed7d8c912ae6f401459a0e31c (diff) |
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 <depot> 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.
Diffstat (limited to 'modules/profiles/tvl.nix')
-rw-r--r-- | modules/profiles/tvl.nix | 25 |
1 files changed, 25 insertions, 0 deletions
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" + ]; + }; + }; +} |