diff --git a/common/nix-builder.nix b/common/nix-builder.nix index 64ea1a3..7706d4e 100644 --- a/common/nix-builder.nix +++ b/common/nix-builder.nix @@ -4,8 +4,8 @@ let builderUserName = "nix-builder"; builderRole = "nix-builder"; - builders = config.machines.withRole.${builderRole}; - thisMachineIsABuilder = config.thisMachine.hasRole.${builderRole}; + builders = config.machines.withRole.${builderRole} or []; + thisMachineIsABuilder = config.thisMachine.hasRole.${builderRole} or false; # builders don't include themselves as a remote builder otherBuilders = lib.filter (hostname: hostname != config.networking.hostName) builders; diff --git a/flake.nix b/flake.nix index d041e35..aa8fdb9 100644 --- a/flake.nix +++ b/flake.nix @@ -175,10 +175,10 @@ kexec = (mkEphemeral "x86_64-linux").config.system.build.images.kexec; iso = (mkEphemeral "x86_64-linux").config.system.build.images.iso; }; - "aarch64-linux" = { - kexec = (mkEphemeral "aarch64-linux").config.system.build.images.kexec; - iso = (mkEphemeral "aarch64-linux").config.system.build.images.iso; - }; + # "aarch64-linux" = { + # kexec = (mkEphemeral "aarch64-linux").config.system.build.images.kexec; + # iso = (mkEphemeral "aarch64-linux").config.system.build.images.iso; + # }; }; overlays.default = import ./overlays { inherit inputs; }; diff --git a/machines/phil/default.nix b/machines/phil/default.nix deleted file mode 100644 index 9d8d228..0000000 --- a/machines/phil/default.nix +++ /dev/null @@ -1,9 +0,0 @@ -{ lib, ... }: - -{ - imports = [ - ./hardware-configuration.nix - ]; - - networking.hostName = "phil"; -} diff --git a/machines/phil/hardware-configuration.nix b/machines/phil/hardware-configuration.nix deleted file mode 100644 index d7c14e4..0000000 --- a/machines/phil/hardware-configuration.nix +++ /dev/null @@ -1,46 +0,0 @@ -# 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. -{ lib, modulesPath, ... }: - -{ - imports = - [ - (modulesPath + "/profiles/qemu-guest.nix") - ]; - - # because grub just doesn't work for some reason - boot.loader.systemd-boot.enable = true; - - remoteLuksUnlock.enable = true; - remoteLuksUnlock.enableTorUnlock = false; - - boot.initrd.availableKernelModules = [ "xhci_pci" ]; - boot.initrd.kernelModules = [ "dm-snapshot" ]; - boot.kernelModules = [ ]; - boot.extraModulePackages = [ ]; - - boot.initrd.luks.devices."enc-pv" = { - device = "/dev/disk/by-uuid/d26c1820-4c39-4615-98c2-51442504e194"; - allowDiscards = true; - }; - - fileSystems."/" = - { - device = "/dev/disk/by-uuid/851bfde6-93cd-439e-9380-de28aa87eda9"; - fsType = "btrfs"; - }; - - fileSystems."/boot" = - { - device = "/dev/disk/by-uuid/F185-C4E5"; - fsType = "vfat"; - }; - - swapDevices = - [{ device = "/dev/disk/by-uuid/d809e3a1-3915-405a-a200-4429c5efdf87"; }]; - - networking.interfaces.enp0s6.useDHCP = lib.mkDefault true; - - nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; -} diff --git a/machines/phil/properties.nix b/machines/phil/properties.nix deleted file mode 100644 index 7355c3c..0000000 --- a/machines/phil/properties.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ - hostNames = [ - "phil" - "phil.neet.dev" - ]; - - arch = "aarch64-linux"; - - systemRoles = [ - "server" - "nix-builder" - ]; - - hostKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBlgRPpuUkZqe8/lHugRPm/m2vcN9psYhh5tENHZt9I2"; - - remoteUnlock = { - hostKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK0RodotOXLMy/w70aa096gaNqPBnfgiXR5ZAH4+wGzd"; - clearnetHost = "unlock.phil.neet.dev"; - }; -}