From a9a6556123eb8436ba9a84c10e7c54820652de7c Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Mon, 18 Nov 2024 17:58:39 +0100 Subject: [PATCH] pallas: fix --- flake.nix | 18 ++++++++++++------ system/flakes/Pallas.nix | 12 ++++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 7734d38..222695f 100644 --- a/flake.nix +++ b/flake.nix @@ -138,18 +138,24 @@ deploy.nodes = let - mkDeployConfig = node: node.deployment // { + mkDeployNixOsConfig = node: node.deployment // { profiles.system = { path = deploy-rs.lib.${node.arch}.activate.nixos node.system; }; }; + + # mkDeployMacOSConfig = node: node.deployment // { + # profiles.system = { + # path = deploy-rs.lib.${node.arch}.activate.darwin node.system; + # }; + # }; in { - tanker = mkDeployConfig tanker; - mediaserver = mkDeployConfig mediaserver; - argon = mkDeployConfig argon; - neon = mkDeployConfig neon; - adsb-antenna = mkDeployConfig adsb-antenna; + tanker = mkDeployNixOsConfig tanker; + mediaserver = mkDeployNixOsConfig mediaserver; + argon = mkDeployNixOsConfig argon; + neon = mkDeployNixOsConfig neon; + adsb-antenna = mkDeployNixOsConfig adsb-antenna; }; }; diff --git a/system/flakes/Pallas.nix b/system/flakes/Pallas.nix index 2adbb48..7bf3614 100644 --- a/system/flakes/Pallas.nix +++ b/system/flakes/Pallas.nix @@ -22,6 +22,8 @@ let }; in { + arch = default-system; + system = nix-darwin.lib.darwinSystem { system = default-system; modules = [ @@ -49,4 +51,14 @@ in ../hosts/Pallas.nix ]; }; + + # deployment = { + # hostname = ""; + # sshUser = "daniel"; + # remoteBuild = false; + # fastConnection = true; + # interactiveSudo = true; + # autoRollback = false; + # magicRollback = false; + # }; }