35 lines
No EOL
1 KiB
Nix
35 lines
No EOL
1 KiB
Nix
{
|
|
modulesPath,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
} @ args:
|
|
{
|
|
imports = [
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
./disko.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
|
|
pkgs.amneziawg-tools
|
|
pkgs.linuxKernel.packages.linux_6_15.amneziawg
|
|
];
|
|
|
|
users.users.root.openssh.authorizedKeys.keys =
|
|
[
|
|
# change this to your ssh key
|
|
"ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLB8bL44HN8mbyOVD8zJbFfQgDWwpZ/mqa+qttARivMhxRNd+JqWFLv6mDf1nENGHIiEPpQ5CdeO0RYos/P3oTg= Git@secretive.MacBook-(Den).local"
|
|
] ++ (args.extraPublicKeys or []); # this is used for unit-testing this module and can be removed if not needed
|
|
|
|
system.stateVersion = "24.05";
|
|
} |