nixos-server-conf/setup/mini_conf.nix

58 lines
2.1 KiB
Nix
Raw Normal View History

2025-05-15 15:26:11 +00:00
{
modulesPath,
lib,
pkgs,
...
}:
{
imports = [
# see https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/installer/scan
(modulesPath + "/installer/scan/not-detected.nix")
# see https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/profiles
(modulesPath + "/profiles/headless.nix")
];
boot.loader.grub = {
# efi? idk experiment if we can leave this away
efiSupport = true;
efiInstallAsRemovable = true;
# main device that grub will boot from
device = "/dev/nvme0n1";
# configure second fallback boot partition
mirroredBoots = [
{
devices = [ "/dev/nvme1n1" ];
path = "/boot-fallback";
}
];
# dunno, maybe not needed but sounds nice
zfsSupport = true;
};
# use `head -c4 /dev/urandom | od -A none -t x4` or see nixos options docs for more info
# https://search.nixos.org/options?channel=24.11&show=networking.hostId&from=0&size=50&sort=relevance&type=packages&query=hostid
networking.hostId = "0a7337de";
environment.systemPackages = map lib.lowPrio [
pkgs.curl
pkgs.gitMinimal
];
2025-05-22 08:01:45 +00:00
services.openssh = {
enable = true;
ports = [ 23 ];
};
2025-05-15 15:26:11 +00:00
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBA4Kpx7RN53V3uINjRj1Ow7p8/SkKGOnqHG3BR9tNXU cardno:25_310_930"
2025-06-03 10:58:53 +00:00
# michael
2025-05-16 06:36:57 +00:00
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHDuOIycRP7Ney136ro/doWj1kttJUqmbGz6OC2nia09 michael.huebner@ptspaper.de"
2025-06-03 10:58:53 +00:00
# nico
2025-06-03 11:40:17 +00:00
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCetS+6afJ4UOwoFiOZIswfMMxbptkmZa5iL622L/buhNudEmO9U1qX1wjbqFAbQgUAuEKGuTXSMzqS8limeHcuC/DG3Ag0zBcYaKwtehNhvmgBiXZWLLO6YlFXISj1c0Ym/ymNqAZFrXVhIUcpj3Nkg31T8ZnKJX9tbC0K+4PXenqzW2lJsJ2lKt0OasQ44t8HFNd56MIZhzD3haAFeS6IDiaSvQc74OiF0D9QYA2BYz+rFiL2F+0KmI+WfVuKB2uuYZJOBSig+p4jqGLC3iV535m6kExQUAMwfWtFe/bTvSXboi/tK21EMGzXs1OC0KqVvCnBQdo/mkOLwmpNZh3tU9blDZCCIadZn0zZPFdkq3jUe1hn+wWJE6UhmWrP47Nc9vr65Iql32Jz94WAdl6TjwU9NTd5fqk1P8oV3Y8rsXnR0/0G3R8BANzwC6NRQDZUsGITWr+QjDlWaJyM5GsYuYRfgtfz/qHoeeSi8Zk96+3esGVWxCgbKZB8ntpCCK0= ptspaper.volkens@2K21024"
2025-05-15 15:26:11 +00:00
];
system.stateVersion = "24.11";
}