mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
hetzner_benchmark: init
This commit is contained in:
parent
a9701f83b3
commit
b1395b27ce
5 changed files with 210 additions and 0 deletions
39
nix/configurations/hetzner_benchmark.nix
Normal file
39
nix/configurations/hetzner_benchmark.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# 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";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue