Adding hetzner cax server.
This commit is contained in:
parent
cb43a66712
commit
2a456d8897
4 changed files with 76 additions and 1 deletions
14
flake.nix
14
flake.nix
|
@ -153,6 +153,20 @@
|
|||
{ home-manager.users.jahanson = ./nixos/home/jahanson/workstation.nix; }
|
||||
];
|
||||
};
|
||||
"varda" = mkNixosConfig {
|
||||
# Arm64 cax21 @ Hetzner
|
||||
|
||||
hostname = "varda";
|
||||
system = "aarch64-linux";
|
||||
hardwareModules = [
|
||||
./nixos/profiles/hw-hetzner-cax.nix
|
||||
];
|
||||
profileModules = [
|
||||
./nixos/profiles/role-server.nix
|
||||
{ home-manager.users.truxnell = ./nixos/home/jahanson/server.nix; }
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# Convenience output that aggregates the outputs for home, nixos.
|
||||
|
|
|
@ -24,6 +24,7 @@ with config;
|
|||
packages = with pkgs;
|
||||
[
|
||||
#apps
|
||||
_1password-gui
|
||||
discord
|
||||
yubioath-flutter
|
||||
yubikey-manager-qt
|
||||
|
@ -31,6 +32,7 @@ with config;
|
|||
vlc
|
||||
|
||||
# cli
|
||||
_1password
|
||||
bat
|
||||
dbus
|
||||
direnv
|
||||
|
@ -39,7 +41,6 @@ with config;
|
|||
python3
|
||||
fzf
|
||||
ripgrep
|
||||
|
||||
brightnessctl
|
||||
];
|
||||
|
||||
|
|
31
nixos/hosts/varda/default.nix
Normal file
31
nixos/hosts/varda/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
imports = [ ];
|
||||
|
||||
networking.hostId = "cdab8473";
|
||||
networking.hostName = "varda"; # Define your hostname.
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "rpool/root";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/home" = {
|
||||
device = "rpool/home";
|
||||
fsType = "zfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/8091-E7F2";
|
||||
fsType = "vfat";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
}
|
29
nixos/profiles/hw-hetzner-cax.nix
Normal file
29
nixos/profiles/hw-hetzner-cax.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}: {
|
||||
imports = [ ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "virtio_scsi" "usbhid" "sr_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
mySystem.services = {
|
||||
openssh.enable = true;
|
||||
};
|
||||
|
||||
# Restic backups disabled.
|
||||
mySystem.system.resticBackup =
|
||||
{
|
||||
local.enable = false;
|
||||
remote.enable = false;
|
||||
};
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||
}
|
Reference in a new issue