diff options
| author | tv <tv@krebsco.de> | 2026-11-27 17:11:47 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-28 18:50:56 +0100 |
| commit | 8ec27ec67a020e9fbe5286a1e70984c6ef624bd1 (patch) | |
| tree | 4fa2e03596aaabaa3762c1520c71c796fbfd8533 | |
| parent | fe56bad85106c587ae1ff15e31301f669bbcb3ae (diff) | |
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.
| -rw-r--r-- | krops.nix | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -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 <mobile-nixos>, 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"; }; |
