blob: 14125d02ce6d292200f8b83a1868610ef5a58053 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ system, self, deploy-rs, nvfetcher, mach-nix, leapseconds, ... }:
let
pkgs = self.legacyPackages.${system};
ca = mach-nix.lib.${system}.buildPythonPackage {
pname = "ca";
src = ./tools/ca;
version = "0.0.0";
ignoreDataOutdated = true;
requirements = ''
cryptography >=38.0.0
fqdn
atomicwrites
leapseconddata
xkcdpass
'';
_.cryptography.buildInputs = with pkgs; [ openssl ];
postInstall = ''
wrapProgram $out/bin/ca \
--set-default LEAPSECONDS_FILE ${leapseconds} \
--prefix PATH : ${pkgs.lib.makeBinPath (with pkgs; [sops])}
'';
};
in pkgs.mkShell {
name = "nixos";
nativeBuildInputs = with pkgs; [
sops
wireguard-tools
gup
nftables
deploy-rs.packages.${system}.deploy-rs
knot-dns
yq
nvfetcher.defaultPackage.${system}
ca
];
}
|