added disko module, common-config, cleanup, etc.
This commit is contained in:
parent
8ad126aa99
commit
52af8fc06e
9 changed files with 314 additions and 156 deletions
|
@ -4,13 +4,7 @@ let
|
|||
sources = import ./../shared/sources/sources.nix;
|
||||
in {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
(sources.disko + "/module.nix")
|
||||
./../shared/modules
|
||||
./../shared/platforms/hetzner.nix
|
||||
|
||||
./gerd/disk-zfs.nix
|
||||
./../shared
|
||||
|
||||
./../shared/applications/server/nginx.nix
|
||||
./../shared/applications/state/ssh.nix
|
||||
|
@ -22,41 +16,29 @@ in {
|
|||
networking.hostName = "gerd";
|
||||
networking.hostId = "e1166ac9";
|
||||
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;
|
||||
|
||||
mine = {
|
||||
state.enable = true;
|
||||
disks = {
|
||||
disk = "/dev/sda";
|
||||
pools.rpool.datasets = {
|
||||
"safe/svcs/forgejo" = { mountpoint = "/srv/forgejo"; extra.options.quota = "5G"; };
|
||||
};
|
||||
};
|
||||
|
||||
ssh-on-boot.enable = true;
|
||||
|
||||
platforms.hetzner.network.address = [
|
||||
"65.108.221.240/32"
|
||||
"2a01:4f9:c012:743e::1/64"
|
||||
];
|
||||
};
|
||||
|
||||
services.teeworlds = {
|
||||
platforms.hetzner = {
|
||||
enable = true;
|
||||
openPorts = true;
|
||||
network.address = [
|
||||
"65.108.221.240/32"
|
||||
"2a01:4f9:c012:743e::1/64"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
boot.initrd.postDeviceCommands = lib.mkAfter ''
|
||||
zfs rollback -r rpool/root@blank
|
||||
'';
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
jq
|
||||
];
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPuma8g+U8Wh+4mLvZoV9V+ngPqxjuIG4zhsbaTeXq65 eyjhb@chronos"
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGee4uz+HDOj4Y4ANOhWJhoc4mMLP1gz6rpKoMueQF2J rendal@popper"
|
||||
];
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue