system/nix: add custom registry

This commit is contained in:
Dmitriy Pleshevskiy 2022-09-07 01:12:22 +03:00
parent b5a88e7f73
commit 44850f3e15
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
2 changed files with 21 additions and 9 deletions

View file

@ -120,20 +120,32 @@ in
options = "--delete-older-than 7d";
};
# To protect nix-shell against garbage collection
# Source: https://github.com/nix-community/nix-direnv#installation
extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
settings = {
auto-optimise-store = true;
trusted-users = [ "root" secrets.userName ];
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "root" secrets.userName ];
# To protect nix-shell against garbage collection
# Source: https://github.com/nix-community/nix-direnv#installation
keep-derivations = true;
keep-outputs = true;
};
registry =
let
repo = "https://git.pleshevski.ru/pleshevskiy";
mkRegistry = id: url: {
from = { type = "indirect"; inherit id; };
to = { type = "git"; inherit url; };
};
in
{
templates = mkRegistry "tmpl" "${repo}/templates";
vnetod = mkRegistry "vnetod" "${repo}/vnetod";
tas = mkRegistry "tas" "${repo}/tas";
};
};
# Open ports in the firewall.

View file

@ -14,7 +14,7 @@ in
loader.grub = {
enable = true;
version = 2;
device = "/dev/disk/by-uuid/969c5f68-631d-4429-b81b-0d81e050449b";
device = "/dev/sdb";
dedsec-theme = {
enable = true;