diff options
| author | Dominik Kaiser | 2025-02-15 20:59:42 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-02-15 20:59:42 +0100 |
| commit | 8a180e440b2a97e0e8a0293d180d8783dd7ead4f (patch) | |
| tree | 796c3e7819545439b606d7d11d664b493d8ab493 /hosts/antares/configuration.nix | |
| parent | 8e8a81317784982545fef27a0685a601ca7f68e4 (diff) | |
| download | nixos-8a180e440b2a97e0e8a0293d180d8783dd7ead4f.tar.gz nixos-8a180e440b2a97e0e8a0293d180d8783dd7ead4f.zip | |
Add server config
Diffstat (limited to 'hosts/antares/configuration.nix')
| -rw-r--r-- | hosts/antares/configuration.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/hosts/antares/configuration.nix b/hosts/antares/configuration.nix new file mode 100644 index 0000000..f942e6d --- /dev/null +++ b/hosts/antares/configuration.nix @@ -0,0 +1,32 @@ +{ + modulesPath, + lib, + pkgs, + ... +}: +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + (modulesPath + "/profiles/qemu-guest.nix") + ./disk-config.nix + ]; + boot.loader.grub = { + # no need to set devices, disko will add all devices that have a EF02 partition to the list already + # devices = [ ]; + efiSupport = true; + efiInstallAsRemovable = true; + }; + services.openssh.enable = true; + + environment.systemPackages = map lib.lowPrio [ + pkgs.curl + pkgs.gitMinimal + ]; + + users.users.root.openssh.authorizedKeys.keys = [ + # change this to your ssh key + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICtL2eG098LhkFPR4N5e44XMq60uvCUCOuKMYs5zjg6f dk@nixos" + ]; + + system.stateVersion = "24.05"; +} |
