Compare commits
3 Commits
153bd77227
...
ebc0a38d2b
| Author | SHA1 | Date | |
|---|---|---|---|
| ebc0a38d2b | |||
| be467e6c4e | |||
| df2bce8913 |
+12
-5
@@ -1,11 +1,18 @@
|
|||||||
keys:
|
keys:
|
||||||
- &primary age1nlta6ek2fsre42g38ytwg3fxtra4h444psd7g986md0gzmvv6d5qqlwwjy
|
- &user age1nlta6ek2fsre42g38ytwg3fxtra4h444psd7g986md0gzmvv6d5qqlwwjy
|
||||||
|
- &oparic-local-dev age1mgxmpfpy6qg374kyq66cc5yw68qfw0mlk89rcdy3lkzw9q93jvwqg73395
|
||||||
|
# 按 GPT 的说法, 要想不踩坑, 就绝对不要用宽泛的匹配规则
|
||||||
creation_rules:
|
creation_rules:
|
||||||
- path_regex: secrets/ssh-config.yaml$
|
- path_regex: ^secrets/ssh-config\.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *primary
|
- *user
|
||||||
- path_regex: secrets/ssh-private.yaml$
|
- path_regex: ^secrets/ssh-private\.yaml$
|
||||||
key_groups:
|
key_groups:
|
||||||
- age:
|
- age:
|
||||||
- *primary
|
- *user
|
||||||
|
- path_regex: ^secrets/hosts/oparic-local-dev\.yaml$
|
||||||
|
key_groups:
|
||||||
|
- age:
|
||||||
|
- *user
|
||||||
|
- *oparic-local-dev
|
||||||
|
|||||||
@@ -7,6 +7,17 @@
|
|||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
|
nix.buildMachines = [{
|
||||||
|
hostName = "192.168.2.22";
|
||||||
|
systems = [ "x86_64-linux" ];
|
||||||
|
sshUser = "origami";
|
||||||
|
sshKey = "/Users/origami/.config/sops-nix/secrets/ssh-private";
|
||||||
|
protocol = "ssh-ng";
|
||||||
|
maxJobs = 4;
|
||||||
|
supportedFeatures = [ "nixos-test" "big-parallel" "kvm" ];
|
||||||
|
}];
|
||||||
|
nix.distributedBuilds = true;
|
||||||
|
|
||||||
networking.hostName = "hypnos";
|
networking.hostName = "hypnos";
|
||||||
time.timeZone = "Asia/Shanghai";
|
time.timeZone = "Asia/Shanghai";
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,12 @@
|
|||||||
|
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
|
||||||
|
# Mihomo 代理
|
||||||
|
services.mihomo = {
|
||||||
|
enable = true;
|
||||||
|
configFile = "/etc/mihomo/config.yaml";
|
||||||
|
};
|
||||||
|
|
||||||
# 密钥管理: 这是对外机器
|
# 密钥管理: 这是对外机器
|
||||||
sops.defaultSopsFile = ../../secrets/hosts/oparic-local-dev.yaml;
|
sops.defaultSopsFile = ../../secrets/hosts/oparic-local-dev.yaml;
|
||||||
sops.age.keyFile = "/var/lib/sops/age/keys.txt";
|
sops.age.keyFile = "/var/lib/sops/age/keys.txt";
|
||||||
|
|||||||
Reference in New Issue
Block a user