system/nix: add custom registry
This commit is contained in:
parent
b5a88e7f73
commit
44850f3e15
2 changed files with 21 additions and 9 deletions
|
@ -120,19 +120,31 @@ in
|
||||||
options = "--delete-older-than 7d";
|
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 = {
|
settings = {
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
|
|
||||||
|
trusted-users = [ "root" secrets.userName ];
|
||||||
|
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
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";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ in
|
||||||
loader.grub = {
|
loader.grub = {
|
||||||
enable = true;
|
enable = true;
|
||||||
version = 2;
|
version = 2;
|
||||||
device = "/dev/disk/by-uuid/969c5f68-631d-4429-b81b-0d81e050449b";
|
device = "/dev/sdb";
|
||||||
|
|
||||||
dedsec-theme = {
|
dedsec-theme = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue