2023-09-12 08:44:05 -06:00
|
|
|
{ pkgs
|
2023-12-02 08:15:37 -07:00
|
|
|
, config
|
2023-09-12 08:44:05 -06:00
|
|
|
, isUnstable
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
gosignify = pkgs.callPackage ../pkgs/gosignify.nix { inherit isUnstable; };
|
2022-10-17 09:59:32 -06:00
|
|
|
|
2023-09-12 08:44:05 -06:00
|
|
|
ix = pkgs.writeScriptBin "ix" (import ./ix.nix { inherit (pkgs) perl; });
|
2023-07-11 09:12:50 -06:00
|
|
|
checkRestart =
|
|
|
|
pkgs.writeScriptBin "check-restart"
|
2023-09-12 08:44:05 -06:00
|
|
|
(import ./check-restart.nix { inherit (pkgs) perl; });
|
2023-07-11 09:12:50 -06:00
|
|
|
xinStatus =
|
|
|
|
pkgs.writeScriptBin "xin-status"
|
2023-09-12 08:44:05 -06:00
|
|
|
(import ./xin-status.nix { inherit (pkgs) perl perlPackages; });
|
2022-10-17 11:12:01 -06:00
|
|
|
sfetch = pkgs.writeScriptBin "sfetch" (import ./sfetch.nix {
|
|
|
|
inherit gosignify;
|
|
|
|
inherit (pkgs) curl;
|
|
|
|
});
|
2023-09-12 08:44:05 -06:00
|
|
|
genPatches = pkgs.callPackage ./gen-patches.nix { };
|
2023-12-02 08:15:37 -07:00
|
|
|
upgrade-pg = pkgs.writeScriptBin "upgrade-pg" (import ./upgrade-pg.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
inherit config;
|
|
|
|
});
|
2023-09-12 08:44:05 -06:00
|
|
|
in
|
|
|
|
{
|
2022-10-26 16:16:34 -06:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-01-10 18:35:29 -07:00
|
|
|
checkRestart
|
2023-06-30 07:47:13 -06:00
|
|
|
genPatches
|
2022-10-26 16:16:34 -06:00
|
|
|
ix
|
|
|
|
sfetch
|
|
|
|
xclip
|
|
|
|
xinStatus
|
2023-12-02 08:15:37 -07:00
|
|
|
] ++ (if config.services.postgresql.enable then
|
|
|
|
[ upgrade-pg ]
|
|
|
|
else [ ]);
|
2022-10-17 09:59:32 -06:00
|
|
|
environment.etc = {
|
2023-10-10 08:21:40 -06:00
|
|
|
"signify/openbsd-70-base.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-70-base.pub;
|
|
|
|
"signify/openbsd-70-fw.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-70-fw.pub;
|
|
|
|
"signify/openbsd-70-pkg.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-70-pkg.pub;
|
|
|
|
"signify/openbsd-70-syspatch.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-70-syspatch.pub;
|
|
|
|
|
|
|
|
"signify/openbsd-71-base.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-71-base.pub;
|
|
|
|
"signify/openbsd-71-fw.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-71-fw.pub;
|
|
|
|
"signify/openbsd-71-pkg.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-71-pkg.pub;
|
|
|
|
"signify/openbsd-71-syspatch.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-71-syspatch.pub;
|
|
|
|
|
2022-10-17 11:12:01 -06:00
|
|
|
"signify/openbsd-72-base.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-72-base.pub;
|
|
|
|
"signify/openbsd-72-fw.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-72-fw.pub;
|
|
|
|
"signify/openbsd-72-pkg.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-72-pkg.pub;
|
|
|
|
"signify/openbsd-72-syspatch.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-72-syspatch.pub;
|
2023-03-10 08:24:50 -07:00
|
|
|
|
|
|
|
"signify/openbsd-73-base.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-73-base.pub;
|
|
|
|
"signify/openbsd-73-fw.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-73-fw.pub;
|
|
|
|
"signify/openbsd-73-pkg.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-73-pkg.pub;
|
|
|
|
"signify/openbsd-73-syspatch.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-73-syspatch.pub;
|
2023-10-10 08:21:40 -06:00
|
|
|
|
|
|
|
"signify/openbsd-74-base.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-74-base.pub;
|
|
|
|
"signify/openbsd-74-fw.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-74-fw.pub;
|
|
|
|
"signify/openbsd-74-pkg.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-74-pkg.pub;
|
|
|
|
"signify/openbsd-74-syspatch.pub".text =
|
|
|
|
builtins.readFile ./pubs/openbsd-74-syspatch.pub;
|
2022-10-17 09:59:32 -06:00
|
|
|
};
|
|
|
|
}
|