-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
34 lines (33 loc) · 1.03 KB
/
default.nix
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
# Shell for bootstrapping flake-enabled nix and other tooling
{ inputs
, pkgs
, ...
}: pkgs.mkShellNoCC {
nativeBuildInputs = with pkgs; [
# lix-monitored
nix-enraged
home-manager
git
wireguard-tools
deploy-rs
# inputs.agenix.packages.${pkgs.hostPlatform.system}.agenix
# inputs.ragenix.packages.${pkgs.hostPlatform.system}.ragenix
rage
inputs.agenix-rekey.packages.${pkgs.hostPlatform.system}.agenix-rekey
age-plugin-yubikey
] ++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
# "${inputs.nix-darwin.outPath}/pkgs/nix-tools/default.nix" |> import |> (p: pkgs.callPackage p {}) |> builtins.getAttr "darwin-rebuild"
(lib.pipe inputs.nix-darwin.outPath [
(f: "${f}/pkgs/nix-tools/default.nix")
import
(p: pkgs.callPackage p {
nixPackage = (nix-enraged.override { monitored = false; });
})
(builtins.getAttr "darwin-rebuild")
])
];
env = {
# NOTE: Always add affected files to git after agenix operations
AGENIX_REKEY_ADD_TO_GIT = "always";
};
}