diff options
| author | Leonardo <noreply@leoflo.me> | 2026-03-17 10:38:53 +0100 |
|---|---|---|
| committer | Leonardo <noreply@leoflo.me> | 2026-03-17 10:41:47 +0100 |
| commit | 16143e4821cbadcf6f3076ece71940eeb85b800e (patch) | |
| tree | 55411800d0fd4f046cb710a56c4f1dfabf554cf2 /systems/nixos-anywhere/configuration.nix | |
| parent | ba8da5ca2c32c2d1ee43f73f533b99531731be66 (diff) | |
| download | nixos-16143e4821cbadcf6f3076ece71940eeb85b800e.tar.gz nixos-16143e4821cbadcf6f3076ece71940eeb85b800e.zip | |
nixos-anywhere config
Diffstat (limited to 'systems/nixos-anywhere/configuration.nix')
| -rw-r--r-- | systems/nixos-anywhere/configuration.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/systems/nixos-anywhere/configuration.nix b/systems/nixos-anywhere/configuration.nix new file mode 100644 index 0000000..46aedb8 --- /dev/null +++ b/systems/nixos-anywhere/configuration.nix @@ -0,0 +1,22 @@ +{modulesPath, pkgs, ...} @ args: +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + (modulesPath + "/profiles/qemu-guest.nix") + ./disk-config.nix + ]; + + boot.loader.grub = { + efiSupport = true; + efiInstallAsRemovable = true; + }; + + services.openssh.enable = true; + users.users.root.openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMjRcsulH/b/fVyj+YQi3YchW6wLiWvpgiM+iz4tokSD leo@hermes" + ] ++ (args.extraPublicKeys or []); + + environment.systemPackages = with pkgs; [ curl gitMinimal ]; + + system.stateVersion = "25.05"; +} |
