mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-04 14:43:01 +02:00
18 lines
540 B
Nix
18 lines
540 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.linuxConfigPoc;
|
|
repo = toString cfg.repoPath;
|
|
in {
|
|
config = lib.mkIf (cfg.enable && cfg.enableImperativeBootstrap) {
|
|
system.activationScripts.linuxConfigImperativeBootstrap = {
|
|
text = ''
|
|
echo "[linuxConfigPoc] Running imperative bootstrap scripts"
|
|
bash ${repo}/hosts/install.sh || true
|
|
bash ${repo}/hosts/guard/setup_hosts_guard.sh || true
|
|
bash ${repo}/scripts/setup_periodic_system.sh || true
|
|
'';
|
|
deps = [ "users" "groups" ];
|
|
};
|
|
};
|
|
}
|