dotfiles/nixos/modules/serokell.nix
Magic_RB 8bbce49068
Disable Serokell cache temporarily
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-03-10 00:16:55 +01:00

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";
};
};
};
})
];
}