1
0
Fork 0
mirror of https://github.com/archtechx/nix.git synced 2025-12-12 03:24:02 +00:00
nix/anywhere/configuration.nix
2025-07-23 01:59:06 +02:00

34 lines
875 B
Nix

# This config only configures the server, it will not be placed in /etc/nixos
# It should include everything needed to:
# - connect to the server
# - configure the server further
{ 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;
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = map lib.lowPrio [
pkgs.vim
pkgs.curl
pkgs.git
];
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
# REPLACEME
];
system.stateVersion = "25.05";
}