refactor: Fleet and sw behind mkIf guards

This commit is contained in:
UGA Innovation Factory
2026-01-27 16:11:36 -05:00
parent 85653e632f
commit 063336f736
5 changed files with 156 additions and 90 deletions

View File

@@ -1,6 +1,18 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.athenix.sw;
in
{
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
python3
git
(pkgs.writeShellScriptBin "update-ref" ''
@@ -508,4 +520,5 @@
printf " rev = %s\n" "$CUR_REV" >&2
'')
];
};
}