2022-06-12 15:39:15 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2023-06-14 12:13:46 +00:00
|
|
|
system,
|
2022-06-12 15:39:15 +00:00
|
|
|
...
|
|
|
|
}: {
|
2022-01-14 09:19:01 +00:00
|
|
|
imports = [
|
2022-01-14 10:21:55 +00:00
|
|
|
./users/darkkirb.nix
|
2022-04-13 10:29:06 +00:00
|
|
|
./users/root.nix
|
2022-01-14 13:03:14 +00:00
|
|
|
./nix.nix
|
2022-01-14 14:13:55 +00:00
|
|
|
./sops.nix
|
2022-01-15 15:09:02 +00:00
|
|
|
./home.nix
|
2022-01-15 17:11:38 +00:00
|
|
|
./services/restic.nix
|
2022-02-19 07:01:07 +00:00
|
|
|
./specialization.nix
|
2022-03-06 10:44:08 +00:00
|
|
|
./services/promtail.nix
|
2022-08-14 18:52:12 +00:00
|
|
|
./env.nix
|
2023-02-01 20:01:01 +00:00
|
|
|
./tailscale.nix
|
2023-12-10 10:27:30 +00:00
|
|
|
./services/otel.nix
|
2022-01-14 09:19:01 +00:00
|
|
|
];
|
2022-01-14 10:21:55 +00:00
|
|
|
services.openssh.enable = true;
|
2024-07-20 13:00:10 +00:00
|
|
|
environment.systemPackages = with pkgs;
|
|
|
|
[
|
|
|
|
git
|
|
|
|
]
|
|
|
|
++ (
|
|
|
|
if system != "riscv64-linux"
|
|
|
|
then [kitty.terminfo]
|
|
|
|
else []
|
|
|
|
);
|
2022-06-12 15:39:15 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [22];
|
2022-01-24 08:12:50 +00:00
|
|
|
networking.firewall.allowedUDPPortRanges = [
|
|
|
|
{
|
|
|
|
from = 60000;
|
|
|
|
to = 61000;
|
|
|
|
}
|
|
|
|
];
|
2022-01-15 09:55:15 +00:00
|
|
|
|
2022-01-15 15:09:02 +00:00
|
|
|
users.defaultUserShell = pkgs.zsh;
|
|
|
|
|
2022-06-12 15:39:15 +00:00
|
|
|
environment.pathsToLink = ["/share/zsh"];
|
2022-01-18 10:59:26 +00:00
|
|
|
|
|
|
|
console.keyMap = "neo";
|
2022-01-18 13:38:04 +00:00
|
|
|
|
2022-01-21 09:12:49 +00:00
|
|
|
security.sudo.extraConfig = ''
|
|
|
|
Defaults env_keep += "TMUX"
|
|
|
|
'';
|
2022-02-01 20:22:17 +00:00
|
|
|
|
2023-03-25 08:52:50 +00:00
|
|
|
programs.zsh.enable = true;
|
2022-04-13 10:29:06 +00:00
|
|
|
users.mutableUsers = false;
|
2022-12-14 09:46:40 +00:00
|
|
|
|
|
|
|
sops.secrets."root/aws/credentials" = {
|
|
|
|
sopsFile = ../secrets/shared.yaml;
|
|
|
|
owner = "root";
|
|
|
|
key = "aws/credentials";
|
|
|
|
path = "/root/.aws/credentials";
|
|
|
|
};
|
2023-01-14 19:58:07 +00:00
|
|
|
sops.secrets."root/ssh/builder_id_ed25519" = {
|
2023-01-14 13:57:00 +00:00
|
|
|
sopsFile = ../secrets/shared.yaml;
|
|
|
|
owner = "root";
|
|
|
|
key = "ssh/builder_id_ed25519";
|
2023-01-14 19:58:07 +00:00
|
|
|
path = "/root/.ssh/builder_id_ed25519";
|
|
|
|
};
|
|
|
|
sops.secrets."darkkirb/ssh/builder_id_ed25519" = {
|
|
|
|
sopsFile = ../secrets/shared.yaml;
|
|
|
|
owner = "darkkirb";
|
|
|
|
key = "ssh/builder_id_ed25519";
|
|
|
|
path = "/home/darkkirb/.ssh/builder_id_ed25519";
|
2023-01-14 13:57:00 +00:00
|
|
|
};
|
2023-04-18 15:02:46 +00:00
|
|
|
|
|
|
|
programs.ssh.knownHosts = {
|
|
|
|
"nas.int.chir.rs".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDhao1I1Kd1gK5bERUdjMxP9yHDrSHYZsTN2TcSk0K/U";
|
|
|
|
"backup.int.chir.rs".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDhao1I1Kd1gK5bERUdjMxP9yHDrSHYZsTN2TcSk0K/U";
|
|
|
|
};
|
2023-10-11 18:07:56 +00:00
|
|
|
boot.kernel.sysctl = {
|
|
|
|
"fs.inotify.max_user_watches" = 524288;
|
|
|
|
};
|
2023-12-11 08:36:38 +00:00
|
|
|
services.prometheus.exporters.node = {
|
2023-12-11 10:55:22 +00:00
|
|
|
port = 31941;
|
|
|
|
enabledCollectors = [
|
|
|
|
"buddyinfo"
|
|
|
|
"cgroups"
|
|
|
|
"systemd"
|
|
|
|
"ethtool"
|
|
|
|
];
|
|
|
|
enable = true;
|
2023-12-11 08:36:38 +00:00
|
|
|
};
|
2024-03-12 18:01:32 +00:00
|
|
|
i18n.defaultLocale = "nl_NL.UTF-8";
|
2024-08-30 19:41:15 +00:00
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
|
|
"olm-3.2.16"
|
|
|
|
];
|
2022-01-14 09:19:01 +00:00
|
|
|
}
|