diff --git a/flake.nix b/flake.nix index d838a02..49684cc 100644 --- a/flake.nix +++ b/flake.nix @@ -140,6 +140,7 @@ yevaud = import nixpkgs-small { system = "x86_64-linux"; }; orm = import nixpkgs-small { system = "x86_64-linux"; }; kalessin = import nixpkgs-small { system = "aarch64-linux"; }; + tehanu = import nixpkgs-small { system = "aarch64-linux"; }; }; specialArgs = { inherit self; @@ -173,6 +174,7 @@ yevaud.imports = [ ./hosts/yevaud ]; orm.imports = [ ./hosts/orm ]; kalessin.imports = [ ./hosts/kalessin ]; + tehanu.imports = [ ./hosts/tehanu ]; }; }; } diff --git a/hosts/tehanu/default.nix b/hosts/tehanu/default.nix new file mode 100644 index 0000000..14b4151 --- /dev/null +++ b/hosts/tehanu/default.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: + +{ + imports = [ + ./hardware-configuration.nix + ./networking.nix + ]; + + nixpkgs.hostPlatform = "aarch64-linux"; + networking.hostName = "tehanu"; + networking.hostId = "8e1185ab"; + networking.domain = "birdsong.network"; + + fountain.users.qenya.enable = true; + fountain.admins = [ "qenya" ]; + + qenya.base-server.enable = true; + + system.stateVersion = "23.11"; +} diff --git a/hosts/tehanu/hardware-configuration.nix b/hosts/tehanu/hardware-configuration.nix new file mode 100644 index 0000000..04d514e --- /dev/null +++ b/hosts/tehanu/hardware-configuration.nix @@ -0,0 +1,38 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_scsi" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "rpool_tehanu/root"; + fsType = "zfs"; + }; + + fileSystems."/nix" = + { device = "rpool_tehanu/nix"; + fsType = "zfs"; + }; + + fileSystems."/var" = + { device = "rpool_tehanu/var"; + fsType = "zfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/629B-BA09"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; +} diff --git a/hosts/tehanu/networking.nix b/hosts/tehanu/networking.nix new file mode 100644 index 0000000..3c27781 --- /dev/null +++ b/hosts/tehanu/networking.nix @@ -0,0 +1,6 @@ +{ config, lib, pkgs, ... }: + +{ + networking.useNetworkd = true; + networking.interfaces.enp0s6.useDHCP = true; +}