Skip to content

Commit

Permalink
add: fra1
Browse files Browse the repository at this point in the history
  • Loading branch information
jz8132543 committed Sep 7, 2024
1 parent 751892d commit 21afeab
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flake/hosts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ in {
name = "dfw0";
system = "x86_64-linux";
})
(mkHost {
name = "fra1";
system = "x86_64-linux";
})
(mkHost {
name = "isk";
system = "x86_64-linux";
Expand Down
19 changes: 19 additions & 0 deletions nixos/hosts/fra1/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{nixosModules, ...}: {
imports =
nixosModules.cloud.all
++ nixosModules.users.tippy.all
++ [
./hardware-configuration.nix
nixosModules.services.traefik
nixosModules.services.headscale
nixosModules.services.derp
nixosModules.services.proxy
nixosModules.services.tuic
nixosModules.services.postgres
nixosModules.services.doraim
nixosModules.services.ntfy
(import nixosModules.services.keycloak {})
(import nixosModules.services.vaultwarden {})
(import nixosModules.services.alist {})
];
}
14 changes: 14 additions & 0 deletions nixos/hosts/fra1/hardware-configuration.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
lib,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];

boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod"];
boot.kernelModules = ["kvm-amd"];
# utils.disk = "/dev/vdb";
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

0 comments on commit 21afeab

Please sign in to comment.