some syncthing magic going on here :>
This commit is contained in:
parent
6a6f4a68af
commit
c1fa01a355
1 changed files with 27 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./mailserver.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
|
|
@ -27,6 +28,7 @@
|
||||||
extraGroups = [ "wheel" ];
|
extraGroups = [ "wheel" ];
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINXz5vcBi2+yGMhxlBXmb67/euntVyLI7BdTvuCZzax zedddiezxc@gmail.com"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINXz5vcBi2+yGMhxlBXmb67/euntVyLI7BdTvuCZzax zedddiezxc@gmail.com"
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIAqBC1FPAkLDC+1gxLHpd6jgg0SA1rCsbM8WKQwc1kL zedddie@guix"
|
||||||
];
|
];
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
|
|
@ -154,6 +156,31 @@
|
||||||
trusted_proxies = { "127.0.0.1" }
|
trusted_proxies = { "127.0.0.1" }
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "vps";
|
||||||
|
group = "users";
|
||||||
|
dataDir = "/home/vps/syncthing/";
|
||||||
|
configDir = "/home/vps/syncthing/.config/syncthing";
|
||||||
|
openDefaultPorts = true;
|
||||||
|
settings.gui = {
|
||||||
|
user = "zedddie";
|
||||||
|
};
|
||||||
|
guiPasswordFile = "/home/vps/really-secret-syncthing-gui-password";
|
||||||
|
devices = {
|
||||||
|
"pcnix" = {
|
||||||
|
id = "XLPXMR6-BPNSD5I-VTEFYCC-HBKTD3B-ZQC5M72-4QFSWPD-GW333PJ-KL5W7AK";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
folders = {
|
||||||
|
"passwds" = {
|
||||||
|
path = "/home/vps/syncthing/secure_vault/";
|
||||||
|
devices = [ "pcnix" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
zix = ''nix run "git+https://codeberg.org/zedddie/zix" --extra-experimental-features "nix-command flakes" --'';
|
zix = ''nix run "git+https://codeberg.org/zedddie/zix" --extra-experimental-features "nix-command flakes" --'';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue