xin/bins/default.nix

52 lines
1.6 KiB
Nix
Raw Normal View History

2023-07-11 09:12:50 -06:00
{
pkgs,
isUnstable,
...
}: let
gosignify = pkgs.callPackage ../pkgs/gosignify.nix {inherit isUnstable;};
2022-10-17 09:59:32 -06:00
2023-07-11 09:12:50 -06:00
ix = pkgs.writeScriptBin "ix" (import ./ix.nix {inherit (pkgs) perl;});
checkRestart =
pkgs.writeScriptBin "check-restart"
(import ./check-restart.nix {inherit (pkgs) perl;});
xinStatus =
pkgs.writeScriptBin "xin-status"
(import ./xin-status.nix {inherit (pkgs) perl perlPackages;});
tstart =
2023-07-11 09:12:50 -06:00
pkgs.writeScriptBin "tstart" (import ./tstart.nix {inherit (pkgs) tmux;});
2022-10-17 11:12:01 -06:00
sfetch = pkgs.writeScriptBin "sfetch" (import ./sfetch.nix {
inherit gosignify;
inherit (pkgs) curl;
});
2023-07-11 09:12:50 -06:00
genPatches = pkgs.callPackage ./gen-patches.nix {};
2022-10-17 09:59:32 -06:00
in {
environment.systemPackages = with pkgs; [
2023-01-10 18:35:29 -07:00
checkRestart
genPatches
ix
sfetch
2023-01-12 11:05:11 -07:00
tstart
xclip
xinStatus
];
2022-10-17 09:59:32 -06:00
environment.etc = {
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;
2022-10-17 09:59:32 -06:00
};
}