fmt
This commit is contained in:
parent
f8647cdcde
commit
b9b9289d9f
@ -6,15 +6,21 @@ let
|
||||
checkRestart = pkgs.writeScriptBin "check-restart"
|
||||
(import ./check-restart.nix { inherit (pkgs) perl; });
|
||||
|
||||
sfetch = pkgs.writeScriptBin "sfetch"
|
||||
(import ./sfetch.nix { inherit gosignify; inherit (pkgs) curl; });
|
||||
sfetch = pkgs.writeScriptBin "sfetch" (import ./sfetch.nix {
|
||||
inherit gosignify;
|
||||
inherit (pkgs) curl;
|
||||
});
|
||||
|
||||
in {
|
||||
environment.systemPackages = with pkgs; [ ix sfetch xclip checkRestart ];
|
||||
environment.etc = {
|
||||
"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;
|
||||
"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;
|
||||
};
|
||||
}
|
||||
|
@ -1,18 +1,18 @@
|
||||
{ curl, gosignify }:
|
||||
|
||||
''
|
||||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env sh
|
||||
|
||||
set -e
|
||||
set -e
|
||||
|
||||
SERVER=cdn.openbsd.org
|
||||
ITEM=$1
|
||||
MACHINE=amd64
|
||||
V=$(echo $ITEM | sed 's/[^0-9]//g')
|
||||
[[ ! -z $2 ]] && MACHINE=$2
|
||||
${curl}/bin/curl -s -o "$PWD/$ITEM" "https://$SERVER/pub/OpenBSD/snapshots/$MACHINE/$ITEM" && \
|
||||
${curl}/bin/curl -s -o "$PWD/SHA256.sig" "https://$SERVER/pub/OpenBSD/snapshots/$MACHINE/SHA256.sig"
|
||||
SERVER=cdn.openbsd.org
|
||||
ITEM=$1
|
||||
MACHINE=amd64
|
||||
V=$(echo $ITEM | sed 's/[^0-9]//g')
|
||||
[[ ! -z $2 ]] && MACHINE=$2
|
||||
${curl}/bin/curl -s -o "$PWD/$ITEM" "https://$SERVER/pub/OpenBSD/snapshots/$MACHINE/$ITEM" && \
|
||||
${curl}/bin/curl -s -o "$PWD/SHA256.sig" "https://$SERVER/pub/OpenBSD/snapshots/$MACHINE/SHA256.sig"
|
||||
|
||||
${gosignify}/bin/gosignify -C -p "/etc/signify/openbsd-$V-base.pub" -x SHA256.sig "$ITEM"
|
||||
${gosignify}/bin/gosignify -C -p "/etc/signify/openbsd-$V-base.pub" -x SHA256.sig "$ITEM"
|
||||
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user