From 58a4c5ecc0b777de7b19ca236ecd3c0ad8770661 Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Sun, 18 Aug 2024 13:31:32 +0100 Subject: [PATCH] kalessin: add to readme and allow overwriting profiles for remote builds --- README.md | 1 + hive.nix | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b0fb40..e1c5faf 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ The canonical location for this repository is https://git.qenya.tel/qenya/nixfil * `tohru`: Dell Latitude 5300, personal laptop * `yevaud`: Oracle Cloud free AMD VM, hosts a Forgejo instance and WireGuard server for the other machines in the network * `orm`: Oracle Cloud free AMD VM, currently idling +* `kalessin`: Oracle Cloud free ARM VM, currently idling ### Referenced only * `kilgharrah`: Custom-built personal desktop, currently running Arch diff --git a/hive.nix b/hive.nix index 23baf32..f6791d3 100644 --- a/hive.nix +++ b/hive.nix @@ -2,8 +2,8 @@ let sources = import ./npins; in { meta.nixpkgs = sources.nixpkgs; - defaults = { name, nodes, ... }: { - deployment.replaceUnknownProfiles = false; + defaults = { name, nodes, config, lib, pkgs, ... }: { + deployment.replaceUnknownProfiles = lib.mkDefault false; networking.hostName = name; nixpkgs.config = { @@ -63,7 +63,10 @@ in { kalessin = { name, nodes, ... }: { networking.hostId = "534b538e"; time.timeZone = "Etc/UTC"; - deployment.buildOnTarget = true; + deployment = { + buildOnTarget = true; + replaceUnknownProfiles = true; + }; imports = [ ./deployment/remote.nix