mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 03:26:13 +01:00
8bbce49068
Signed-off-by: Magic_RB <magic_rb@redalder.org>
32 lines
607 B
Nix
32 lines
607 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"
|
|
];
|
|
|
|
nix.settings.trusted-public-keys = [
|
|
];
|
|
})
|
|
(optionalAttrs (options ? "home-manager") {
|
|
home-manager.users."main" = {...}: {
|
|
programs.ssh.matchBlocks = {
|
|
"*.serokell.team" = {
|
|
port = 17788;
|
|
user = "magicrb";
|
|
};
|
|
};
|
|
};
|
|
})
|
|
];
|
|
}
|