mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 01:18:30 +09:00
nix cache
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
imports = [
|
||||
./container.nix
|
||||
./kde.nix
|
||||
./nixcache-oci.nix
|
||||
./quem-guest.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.features.services.nixcacheOci;
|
||||
in
|
||||
{
|
||||
options.my.features.services.nixcacheOci = {
|
||||
enable = lib.mkEnableOption "Nix binary cache backed by public GHCR";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
my.system.nixcacheOci.enable = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user