From 8d694cb9a1415284cea3fe844ba11ef3fdc08bd6 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sun, 8 Jan 2023 21:18:42 +0100 Subject: [PATCH] Added lambda as a new machine --- flake.nix | 12 ++++++++++++ machines/lambda/default.nix | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 5ca6d70..c9025e2 100644 --- a/flake.nix +++ b/flake.nix @@ -66,6 +66,17 @@ }; }; + deploy.nodes.lambda = { + hostname = "lambda.julienmalka.me"; + profiles.system = { + sshUser = "root"; + sshOpts = [ "-p" "45" ]; + remoteBuild = true; + fastConnection = true; + path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.newton; + }; + }; + packages."x86_64-linux" = { tinystatus = import ./packages/tinystatus { inherit pkgs; }; @@ -73,6 +84,7 @@ htpdate = pkgs.callPackage ./packages/htpdate { }; authelia = pkgs.callPackage ./packages/authelia { }; }; + packages."aarch64-linux" = { tinystatus = import ./packages/tinystatus { pkgs = pkgsrpi; }; flaresolverr = pkgsrpi.callPackage ./packages/flaresolverr { }; diff --git a/machines/lambda/default.nix b/machines/lambda/default.nix index 3d62bbc..5ce46e2 100644 --- a/machines/lambda/default.nix +++ b/machines/lambda/default.nix @@ -3,8 +3,9 @@ { imports = [ - # Include the results of the hardware scan. - ./hardware-configuration.nix + ./hardware.nix + ../../users/julien.nix + ../../users/default.nix ]; # Use the systemd-boot EFI boot loader.