System Gen182 @ 2025-05-02-23:48:15 by jonas@comfy-station

This commit is contained in:
2025-05-02 23:48:16 +02:00
parent 87db9887c2
commit 7add5e0db6
23 changed files with 302 additions and 247 deletions

View File

@@ -1,4 +1,11 @@
{pkgs, ...}: let
{
config,
lib,
pkgs,
isHM,
...
}: let
cfg = config.hive.nix-scripts;
home-rebuild =
pkgs.writeShellScriptBin ".home-rebuild"
''
@@ -86,10 +93,25 @@
popd
'';
in {
environment.systemPackages = [
home-rebuild
rebuild
upgrade
update
];
options = {
hive.nix-scripts.enable = lib.mkEnableOption "Enable the nix build/update scripts";
};
config =
lib.mkIf cfg.enable
(
if isHM
then {
home.packages = [
home-rebuild
];
}
else {
environment.systemPackages = [
rebuild
upgrade
update
];
}
);
}