mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
add agenix + singbox in it
This commit is contained in:
parent
05063ad78e
commit
060c7ecff8
9
hosts/dlaptop/age.nix
Normal file
9
hosts/dlaptop/age.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ stable, inputs, config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
age.secrets = {
|
||||||
|
socks_v2ray_sweden = { file = ../../secrets/singboxaus.age; owner = "socks"; group = "socks"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
age.identityPaths = [ "/home/delta/.ssh/id_ed25519" ];
|
||||||
|
}
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ inputs, stable, unstable, config, pkgs, ... }:
|
{ inputs, stable, unstable, config, pkgs, age, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
time.timeZone = "Europe/Moscow";
|
time.timeZone = "Europe/Moscow";
|
||||||
|
|
@ -264,7 +264,7 @@
|
||||||
User = "socks";
|
User = "socks";
|
||||||
Group = "socks";
|
Group = "socks";
|
||||||
};
|
};
|
||||||
script = "sing-box run -c /etc/sing-box/config.json";
|
script = "sing-box run -c /run/agenix/singboxaus";
|
||||||
path = with unstable; [
|
path = with unstable; [
|
||||||
shadowsocks-libev
|
shadowsocks-libev
|
||||||
shadowsocks-v2ray-plugin
|
shadowsocks-v2ray-plugin
|
||||||
|
|
@ -272,6 +272,8 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#config.services.openssh.hostKeys = [ "/home/delta/.ssh/id_ed25519" ];
|
||||||
|
|
||||||
systemd.services.NetworkManager-wait-online.enable = false;
|
systemd.services.NetworkManager-wait-online.enable = false;
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|
|
||||||
6
secrets/secrets.nix
Normal file
6
secrets/secrets.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
let
|
||||||
|
dlaptop = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGGL2UD0frl9F2OPBiPlSQqxDsuACbAVgwH24F0KT14L delta@dlaptop";
|
||||||
|
in {
|
||||||
|
"test.age".publicKeys = [ dlaptop ];
|
||||||
|
"singboxaus.age".publicKeys = [ dlaptop ];
|
||||||
|
}
|
||||||
BIN
secrets/singboxporta.age
Normal file
BIN
secrets/singboxporta.age
Normal file
Binary file not shown.
5
secrets/test.age
Normal file
5
secrets/test.age
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 WaXiIA d5rkOEoS+1Hbm1052rjg2syFrAjK/zAUncW4PeIJDwA
|
||||||
|
Rdkm26cHFw9erjUZOJipAZ51/D8poXtMdCzY0FlIuTM
|
||||||
|
--- ODDKDz/Bn3WFnqLfQGfjR9SE5mfp1Ob1aOvxAf+vhLY
|
||||||
|
ªOšç’ïª~MT0ù<30>YDŽTäo¾ù!K^nL»Æs‹w°@
|
||||||
Loading…
Reference in a new issue