mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 19:46:17 +01:00
a5a651dbb9
Signed-off-by: main <magic_rb@redalder.org>
34 lines
784 B
Nix
34 lines
784 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.magic_rb.serokell;
|
|
in {
|
|
options.magic_rb.serokell = mkEnableOption "Enable Serokell related configuration";
|
|
|
|
config = mkMerge [
|
|
(mkIf cfg {
|
|
nix.settings.substituters = [
|
|
"https://cache.nixos.org"
|
|
"s3://serokell-private-nix-cache?endpoint=s3.us-west-000.backblazeb2.com&profile=backblaze-cache-read"
|
|
];
|
|
|
|
nix.settings.trusted-public-keys = [
|
|
"serokell-1:aIojg2Vxgv7MkzPJoftOO/I8HKX622sT+c0fjnZBLj0="
|
|
];
|
|
})
|
|
(optionalAttrs (options ? "home-manager") {
|
|
home-manager.users."main" = {...}: {
|
|
programs.ssh.matchBlocks = {
|
|
"*.serokell.team" = {
|
|
port = 17788;
|
|
user = "magicrb";
|
|
};
|
|
};
|
|
};
|
|
})
|
|
];
|
|
}
|