-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdefault.nix
More file actions
35 lines (34 loc) · 1.22 KB
/
default.nix
File metadata and controls
35 lines (34 loc) · 1.22 KB
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
# Shell for bootstrapping flake-enabled nix and other tooling
{ config # flake-parts `perSystem` config
, inputs
, pkgs
, lib
, ...
}: pkgs.mkShellNoCC {
nativeBuildInputs = with pkgs; [
(config.legacyPackages.nix-enraged.override { monitored = true; })
# (nixd.override { nix = nix-enraged; })
home-manager
git
wireguard-tools
deploy-rs
# inputs.agenix.packages.${pkgs.stdenv.hostPlatform.system}.agenix
# inputs.ragenix.packages.${pkgs.stdenv.hostPlatform.system}.ragenix
rage
config.agenix-rekey.package
age-plugin-yubikey
] ++ lib.optionals pkgs.stdenv.hostPlatform.isDarwin [
(inputs.nix-darwin.packages.aarch64-darwin.darwin-rebuild.overrideAttrs (drv: {
path = lib.makeBinPath [ nix-enraged ] + ":" + drv.path;
}))
];
env = {
# NOTE: Always add affected files to git after agenix operations
AGENIX_REKEY_ADD_TO_GIT = "always";
} // lib.optionalAttrs (let platform = pkgs.stdenv.hostPlatform; in platform.isLinux && platform.isAarch64) {
# TODO: refer through `inputs`
# TODO: move to `cheetah` config
AGENIX_REKEY_PRIMARY_IDENTITY = "${inputs.self.outPath}/secrets/identities/03-age-backup.age";
AGENIX_REKEY_PRIMARY_IDENTITY_ONLY = true;
};
}