-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaultNixosAge.nix
65 lines (61 loc) · 1.5 KB
/
defaultNixosAge.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
config,
lib,
inputs,
pkgs,
...
}: let
self = inputs.self;
in {
config = {
age = {
rekey = {
masterIdentities = [
./secrets/age-yubikey-identity-usbc.pub
# "/home/tomas/.ssh/id_ed25519"
];
# extraEncryptionPubkeys = [
# ./secrets/age-yubikey-identity-usba.pub
# ];
storageMode = "local";
localStorageDir = ./. + "/secrets/rekeyed/${config.networking.hostName}";
};
secrets = {
nix-access-tokens-github = {
rekeyFile = ./secrets/github.age;
mode = "666";
};
};
};
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens-github.path}
'';
system = {
stateVersion = "25.05";
nixos.tags = [
"snowfall"
(self.shortRev or "dirty")
];
configurationRevision = lib.mkForce (self.shortRev or "dirty");
};
nix = {
# settings.extra-sandbox-paths = ["/tmp/agenix-rekey.${builtins.toString config.users.users.tomas.uid}"];
# registry = {
# nixpkgs.flake = inputs.nixpkgs;
# home-manager.flake = inputs.home-manager;
# darwin.flake = inputs.darwin;
# tomas = {
# from = {
# type = "indirect";
# id = "tomas";
# };
# to = {
# type = "github";
# owner = "tomasharkema";
# repo = "nix-config";
# };
# };
# };
};
};
}