k 3 apt-cacher-ng: fix whitespace
This commit is contained in:
parent
48c9789141
commit
4c26fb9383
|
@ -6,40 +6,41 @@ let
|
||||||
name = "acng-configuration";
|
name = "acng-configuration";
|
||||||
destination = "/acng.conf";
|
destination = "/acng.conf";
|
||||||
text = ''
|
text = ''
|
||||||
ForeGround: 1
|
ForeGround: 1
|
||||||
CacheDir: ${cfg.cacheDir}
|
CacheDir: ${cfg.cacheDir}
|
||||||
LogDir: ${cfg.logDir}
|
LogDir: ${cfg.logDir}
|
||||||
PidFile: /var/run/apt-cacher-ng.pid
|
PidFile: /var/run/apt-cacher-ng.pid
|
||||||
ExTreshold: ${toString cfg.cacheExpiration}
|
ExTreshold: ${toString cfg.cacheExpiration}
|
||||||
|
|
||||||
Port: ${toString cfg.port}
|
Port: ${toString cfg.port}
|
||||||
BindAddress: ${cfg.bindAddress}
|
BindAddress: ${cfg.bindAddress}
|
||||||
|
|
||||||
# defaults:
|
# defaults:
|
||||||
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian
|
Remap-debrep: file:deb_mirror*.gz /debian ; file:backends_debian
|
||||||
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu
|
Remap-uburep: file:ubuntu_mirrors /ubuntu ; file:backends_ubuntu
|
||||||
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol
|
Remap-debvol: file:debvol_mirror*.gz /debian-volatile ; file:backends_debvol
|
||||||
Remap-cygwin: file:cygwin_mirrors /cygwin
|
Remap-cygwin: file:cygwin_mirrors /cygwin
|
||||||
Remap-sfnet: file:sfnet_mirrors
|
Remap-sfnet: file:sfnet_mirrors
|
||||||
Remap-alxrep: file:archlx_mirrors /archlinux
|
Remap-alxrep: file:archlx_mirrors /archlinux
|
||||||
Remap-fedora: file:fedora_mirrors
|
Remap-fedora: file:fedora_mirrors
|
||||||
Remap-epel: file:epel_mirrors
|
Remap-epel: file:epel_mirrors
|
||||||
Remap-slrep: file:sl_mirrors # Scientific Linux
|
Remap-slrep: file:sl_mirrors # Scientific Linux
|
||||||
Remap-gentoo: file:gentoo_mirrors.gz /gentoo ; file:backends_gentoo
|
Remap-gentoo: file:gentoo_mirrors.gz /gentoo ; file:backends_gentoo
|
||||||
|
|
||||||
ReportPage: acng-report.html
|
ReportPage: acng-report.html
|
||||||
SupportDir: ${pkgs.apt-cacher-ng}/lib/apt-cacher-ng
|
SupportDir: ${pkgs.apt-cacher-ng}/lib/apt-cacher-ng
|
||||||
LocalDirs: acng-doc ${pkgs.apt-cacher-ng}/share/doc/apt-cacher-ng
|
LocalDirs: acng-doc ${pkgs.apt-cacher-ng}/share/doc/apt-cacher-ng
|
||||||
|
|
||||||
# Nix cache
|
# Nix cache
|
||||||
${optionalString cfg.enableNixCache ''
|
${optionalString cfg.enableNixCache ''
|
||||||
Remap-nix: http://cache.nixos.org /nixos ; https://cache.nixos.org
|
Remap-nix: http://cache.nixos.org /nixos ; https://cache.nixos.org
|
||||||
PfilePatternEx: (^|.*?/).*\.narinfo(|\.gz|\.xz|\.bz2)$
|
PfilePatternEx: (^|.*?/).*\.narinfo(|\.gz|\.xz|\.bz2)$
|
||||||
VfilePatternEx: (^|.*?/)nix-cache-info$
|
VfilePatternEx: (^|.*?/)nix-cache-info$
|
||||||
''}
|
''}
|
||||||
|
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
''; };
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
acng-home = "/var/cache/acng";
|
acng-home = "/var/cache/acng";
|
||||||
cfg = config.krebs.apt-cacher-ng;
|
cfg = config.krebs.apt-cacher-ng;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user