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
|
|
|
]
|
2024-02-29 19:51:52 +00:00
|
|
|
++ lib.lists.optional machine.isPhysical ./physical.nix
|
|
|
|
++ lib.lists.optional machine.isVirtual ./virtual;
|
2024-01-28 10:48:13 +00:00
|
|
|
|
|
|
|
config = {
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
|
|
|
|
i18n = {
|
|
|
|
defaultLocale = "en_US.UTF-8";
|
|
|
|
|
2024-02-29 19:13:28 +00:00
|
|
|
extraLocaleSettings = let extraLocale = "nl_NL.UTF-8"; in {
|
|
|
|
LC_ADDRESS = extraLocale;
|
|
|
|
LC_IDENTIFICATION = extraLocale;
|
|
|
|
LC_MEASUREMENT = extraLocale;
|
|
|
|
LC_MONETARY = extraLocale;
|
|
|
|
LC_NAME = extraLocale;
|
|
|
|
LC_NUMERIC = extraLocale;
|
|
|
|
LC_PAPER = extraLocale;
|
|
|
|
LC_TELEPHONE = extraLocale;
|
|
|
|
LC_TIME = extraLocale;
|
2024-01-28 10:48:13 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
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-03-03 13:01:35 +00:00
|
|
|
pciutils
|
|
|
|
dmidecode
|
2024-03-19 21:56:52 +00:00
|
|
|
openssl
|
2024-03-22 21:19:44 +00:00
|
|
|
nfs-utils
|
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
|
|
|
};
|
|
|
|
}
|