diff --git a/hosts/default.nix b/hosts/default.nix index b7db1d6..7209447 100644 --- a/hosts/default.nix +++ b/hosts/default.nix @@ -43,7 +43,9 @@ in (mkSystem' { hostname = "nihilus"; system = "aarch64-linux"; - extraModules = [ ]; + extraModules = [ + inputs.nixos-hardware.nixosModules.raspberry-pi-4 + ]; }) ]; } diff --git a/hosts/nihilus/configuration.nix b/hosts/nihilus/configuration.nix index 8af4b3f..0dcd9b6 100644 --- a/hosts/nihilus/configuration.nix +++ b/hosts/nihilus/configuration.nix @@ -1,9 +1,23 @@ -{ }: +{ pubkeys, ... }: { + imports = [ + ./hardware-configuration.nix + ]; + modules = { services.tailscale = { enable = true; - tags = [ "server" ]; + tags = [ + "server" + "backup" + ]; }; }; + + services = { + openssh.enable = true; + }; + + users.users.root.openssh.authorizedKeys.keys = [ pubkeys.ny ]; + } diff --git a/hosts/nihilus/hardware-configuration.nix b/hosts/nihilus/hardware-configuration.nix new file mode 100644 index 0000000..57b3090 --- /dev/null +++ b/hosts/nihilus/hardware-configuration.nix @@ -0,0 +1,10 @@ +{ lib, modulesPath, ... }: +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; + + networking.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; +}