2024-01-28 11:30:13 +00:00
|
|
|
{ pkgs, lib, machine, disko, agenix, ... }: {
|
2024-01-28 10:48:13 +00:00
|
|
|
imports = [
|
|
|
|
./modules
|
2024-01-31 21:11:28 +00:00
|
|
|
./globals.nix
|
2024-01-28 10:48:13 +00:00
|
|
|
machine.nixosModule
|
|
|
|
disko.nixosModules.disko
|
|
|
|
agenix.nixosModules.default
|
2024-01-28 11:30:13 +00:00
|
|
|
]
|
|
|
|
++ lib.lists.optional (machine.type == "physical") ./physical.nix
|
|
|
|
++ lib.lists.optional (machine.type == "virtual") ./virtual.nix;
|
2024-01-28 10:48:13 +00:00
|
|
|
|
|
|
|
config = {
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
extraLocaleSettings = {
|
|
|
|
LC_ADDRESS = "nl_NL.UTF-8";
|
|
|
|
LC_IDENTIFICATION = "nl_NL.UTF-8";
|
|
|
|
LC_MEASUREMENT = "nl_NL.UTF-8";
|
|
|
|
LC_MONETARY = "nl_NL.UTF-8";
|
|
|
|
LC_NAME = "nl_NL.UTF-8";
|
|
|
|
LC_NUMERIC = "nl_NL.UTF-8";
|
|
|
|
LC_PAPER = "nl_NL.UTF-8";
|
|
|
|
LC_TELEPHONE = "nl_NL.UTF-8";
|
|
|
|
LC_TIME = "nl_NL.UTF-8";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
KbdInteractiveAuthentication = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xserver = {
|
|
|
|
layout = "us";
|
|
|
|
xkbVariant = "";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOodpLr+FDRyKyHjucHizNLVFHZ5AQmE9GmxMnOsSoaw pimkunis@thinkpadpim"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINUZp4BCxf7uLa1QWonx/Crf8tYZ5MKIZ+EuaBa82LrV user@user-laptop"
|
|
|
|
];
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
ssh = {
|
|
|
|
knownHosts = {
|
|
|
|
dmz = {
|
|
|
|
hostNames = [ "*.dmz" ];
|
|
|
|
publicKey =
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAX2IhgHNxC6JTvLu9cej+iWuG+uJFMXn4AiRro9533x";
|
|
|
|
certAuthority = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hypervisors = {
|
|
|
|
hostNames = [ "*.hyp" ];
|
|
|
|
publicKey =
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFzRkH3d/KVJQouswY/DMpenWbDFVOnI3Vut0xR0e1tb";
|
|
|
|
certAuthority = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
neovim = {
|
|
|
|
enable = true;
|
|
|
|
vimAlias = true;
|
|
|
|
viAlias = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
neofetch
|
|
|
|
wget
|
|
|
|
git
|
|
|
|
btop
|
|
|
|
htop
|
|
|
|
ripgrep
|
|
|
|
dig
|
|
|
|
tree
|
|
|
|
file
|
|
|
|
tcpdump
|
|
|
|
lsof
|
|
|
|
parted
|
|
|
|
radvd
|
2024-01-29 21:21:15 +00:00
|
|
|
minicom
|
|
|
|
socat
|
2024-01-28 10:48:13 +00:00
|
|
|
];
|
2024-02-01 21:57:18 +00:00
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
(final: prev: { lib = prev.lib // (import ./net.nix prev); })
|
|
|
|
];
|
2024-01-28 10:48:13 +00:00
|
|
|
};
|
|
|
|
}
|