mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
39 lines
895 B
Nix
39 lines
895 B
Nix
# The hetzner machine rented to benchmark the cabal comment parser
|
|
let
|
|
sources = import ../../npins;
|
|
|
|
hostname = "hetzner_benchmark";
|
|
in
|
|
{ lib, ... }:
|
|
{
|
|
imports = [
|
|
#
|
|
# hostname
|
|
#
|
|
{ _module.args = { inherit hostname; }; }
|
|
|
|
{ system.nixos.version = lib.substring 0 8 sources.nixpkgs.revision; }
|
|
|
|
./hetzner_benchmark/hardware-configuration.nix
|
|
|
|
(sources.disko + "/module.nix")
|
|
../disko/hetzner_benchmark/ext4.nix
|
|
|
|
../nixosModules/common/system-nixconf.nix
|
|
../nixosModules/extra/leana.nix
|
|
|
|
# TODO: install my user configuration
|
|
];
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
services.openssh.enable = true;
|
|
|
|
users.users = {
|
|
"root".openssh.authorizedKeys.keys = import ../identities.nix ++ [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFza3UN1gWQqh//FkJBzmssQ4lxHdllQGfqPHzG4LQI8 benchmark-machine"
|
|
];
|
|
};
|
|
|
|
system.stateVersion = "25.05";
|
|
}
|