Compare commits
No commits in common. "3a471433ed2005c2ebc61b84c9c441d68eac2c37" and "e6ba569b368c3f195a0d0198808bf4c043f7bb07" have entirely different histories.
3a471433ed
...
e6ba569b36
|
@ -135,13 +135,7 @@
|
||||||
inherit (self.checks.${system}.pre-commit) shellHook;
|
inherit (self.checks.${system}.pre-commit) shellHook;
|
||||||
};
|
};
|
||||||
|
|
||||||
packages =
|
|
||||||
let
|
|
||||||
packages = import ./pkgs { inherit pkgs; };
|
packages = import ./pkgs { inherit pkgs; };
|
||||||
isSystem = pkg: builtins.elem system pkg.meta.platforms;
|
|
||||||
finalPackages = lib.flip lib.filterAttrs packages (_: isSystem);
|
|
||||||
in
|
|
||||||
finalPackages;
|
|
||||||
}) // {
|
}) // {
|
||||||
overlay = self.overlays.pkgs;
|
overlay = self.overlays.pkgs;
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
|
||||||
throwOnCanary =
|
|
||||||
let
|
let
|
||||||
canaryHash = builtins.hashFile "sha256" ./canary;
|
canaryHash = builtins.hashFile "sha256" ./canary;
|
||||||
expectedHash =
|
expectedHash =
|
||||||
"9df8c065663197b5a1095122d48e140d3677d860343256abd5ab6e4fb4c696ab";
|
"9df8c065663197b5a1095122d48e140d3677d860343256abd5ab6e4fb4c696ab";
|
||||||
in
|
in
|
||||||
if canaryHash != expectedHash
|
if canaryHash != expectedHash then
|
||||||
then throw "Secrets are not readable. Have you run `git-crypt unlock`?"
|
abort "Secrets are not readable. Have you run `git-crypt unlock`?"
|
||||||
else id;
|
else {
|
||||||
in
|
|
||||||
throwOnCanary {
|
|
||||||
options.my.secrets = mkOption {
|
options.my.secrets = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
};
|
};
|
||||||
|
|
|
@ -39,7 +39,7 @@ stdenvNoCC.mkDerivation rec {
|
||||||
description = "A simple script to query a password from bitwarden";
|
description = "A simple script to query a password from bitwarden";
|
||||||
homepage = "https://gitea.belanyi.fr/ambroisie/nix-config";
|
homepage = "https://gitea.belanyi.fr/ambroisie/nix-config";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ ambroisie ];
|
maintainers = with maintainers; [ ambroisie ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
{ lib, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
|
||||||
throwOnCanary =
|
|
||||||
let
|
let
|
||||||
canaryHash = builtins.hashFile "sha256" ./canary;
|
canaryHash = builtins.hashFile "sha256" ./canary;
|
||||||
expectedHash =
|
expectedHash =
|
||||||
"9df8c065663197b5a1095122d48e140d3677d860343256abd5ab6e4fb4c696ab";
|
"9df8c065663197b5a1095122d48e140d3677d860343256abd5ab6e4fb4c696ab";
|
||||||
in
|
in
|
||||||
if canaryHash != expectedHash
|
if canaryHash != expectedHash then
|
||||||
then throw "Secrets are not readable. Have you run `git-crypt unlock`?"
|
abort "Secrets are not readable. Have you run `git-crypt unlock`?"
|
||||||
else id;
|
else {
|
||||||
in
|
|
||||||
throwOnCanary {
|
|
||||||
options.my.secrets = mkOption {
|
options.my.secrets = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
};
|
};
|
||||||
|
@ -54,6 +50,6 @@ throwOnCanary {
|
||||||
root.hashedPassword = fileContents ./users/root/password.txt;
|
root.hashedPassword = fileContents ./users/root/password.txt;
|
||||||
};
|
};
|
||||||
|
|
||||||
wireguard = import ./wireguard { inherit lib; };
|
wireguard = pkgs.callPackage ./wireguard { };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue