From 8ec27ec67a020e9fbe5286a1e70984c6ef624bd1 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 27 Nov 2026 17:11:47 +0000 Subject: krops.nix: add mobile-nixos A directory instead of the pinned revision, with whatever is in it, to try a kernel without committing, pushing and pinning it first. --- krops.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/krops.nix b/krops.nix index 81320d08..e9929d66 100644 --- a/krops.nix +++ b/krops.nix @@ -21,6 +21,9 @@ # target where to deploy it, instead of spec.nix's target # switch what switch-to-configuration does: switch (the default), boot, # or test (no new generation) +# mobile-nixos +# a directory to use as , as it is, instead of the +# pinned revision, e.g. to try another kernel # # REMOTE BUILDS # A host whose spec.nix lists builders (targets like populate's, @@ -45,6 +48,7 @@ , name , target ? null , switch ? "switch" +, mobile-nixos ? null }@args: assert builtins.elem switch [ "switch" "boot" "test" ]; @@ -65,10 +69,18 @@ rec { hrm.file = { path = toString ~/sync/src/hrm; }; - mobile-nixos.git = { - ref = "406cd664f093a4ed7aab66274fe284b364e44547"; - url = "https://github.com/4z3/mobile-nixos"; - }; + mobile-nixos = + if mobile-nixos != null then { + file = { + filters = [ { type = "exclude"; pattern = ".git"; } ]; + path = mobile-nixos; + }; + } else { + git = { + ref = "406cd664f093a4ed7aab66274fe284b364e44547"; + url = "https://github.com/4z3/mobile-nixos"; + }; + }; nixos-config.symlink = { target = "hrm/systems/${name}/config.nix"; }; -- cgit v1.3.1