Add sas private build flag
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
{ inputs, system, ... }:
|
{
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
system,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
selfPkgs = inputs.self.packages.${system};
|
selfPkgs = inputs.self.packages.${system};
|
||||||
in
|
in
|
||||||
@@ -22,9 +28,11 @@ in
|
|||||||
IdentityFile /root/.ssh/ssh_sas_ed25519_key
|
IdentityFile /root/.ssh/ssh_sas_ed25519_key
|
||||||
'';
|
'';
|
||||||
|
|
||||||
knownHostsFiles = with selfPkgs; [
|
knownHostsFiles =
|
||||||
ssh-known-hosts-github
|
with selfPkgs;
|
||||||
ssh-known-hosts-sas-gitlab
|
(
|
||||||
];
|
[ ssh-known-hosts-github ]
|
||||||
|
++ lib.lists.optionals config.sas.build.private [ ssh-known-hosts-sas-gitlab ]
|
||||||
|
);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
{ config, inputs, ... }:
|
{ config, inputs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./options.nix
|
||||||
|
|
||||||
inputs.disko.nixosModules.disko
|
inputs.disko.nixosModules.disko
|
||||||
./format.nix
|
./format.nix
|
||||||
|
|
||||||
@@ -51,6 +53,8 @@
|
|||||||
./users/nikara
|
./users/nikara
|
||||||
];
|
];
|
||||||
|
|
||||||
|
sas.build.private = true;
|
||||||
|
|
||||||
networking.hostName = "elara";
|
networking.hostName = "elara";
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
||||||
|
9
hosts/elara/options.nix
Normal file
9
hosts/elara/options.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ lib, ... }:
|
||||||
|
with lib;
|
||||||
|
{
|
||||||
|
options.sas.build.private = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
description = "Whether to build private SAS derivations (must be connected to the company VPN).";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
}
|
@@ -86,11 +86,15 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
userKnownHostsFiles = with selfPkgs; [
|
userKnownHostsFiles =
|
||||||
ssh-known-hosts-github
|
with selfPkgs;
|
||||||
ssh-known-hosts-sas-gitlab
|
(
|
||||||
ssh-known-hosts-sas-gerrit
|
[ ssh-known-hosts-github ]
|
||||||
];
|
++ lib.lists.optionals config.sas.build.private [
|
||||||
|
ssh-known-hosts-sas-gitlab
|
||||||
|
ssh-known-hosts-sas-gerrit
|
||||||
|
]
|
||||||
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
config,
|
config,
|
||||||
inputs,
|
inputs,
|
||||||
system,
|
system,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -48,7 +49,9 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
userKnownHostsFiles = with selfPkgs; [ ssh-known-hosts-sas-cldlgn ];
|
userKnownHostsFiles =
|
||||||
|
with selfPkgs;
|
||||||
|
lib.lists.optionals config.sas.build.private [ ssh-known-hosts-sas-cldlgn ];
|
||||||
};
|
};
|
||||||
|
|
||||||
clipbook.bookmarks = {
|
clipbook.bookmarks = {
|
||||||
|
Reference in New Issue
Block a user