From 44850f3e15f7af2bdb2f889566758cc8842104a3 Mon Sep 17 00:00:00 2001 From: janabhumi Date: Wed, 7 Sep 2022 01:12:22 +0300 Subject: [PATCH] system/nix: add custom registry --- system/configuration.nix | 28 ++++++++++++++++++++-------- system/machine/home/default.nix | 2 +- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/system/configuration.nix b/system/configuration.nix index 6a938cd..6679c92 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -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. diff --git a/system/machine/home/default.nix b/system/machine/home/default.nix index b2b3857..c08e9b8 100644 --- a/system/machine/home/default.nix +++ b/system/machine/home/default.nix @@ -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;