parent
6fc5a2b1ea
commit
a3721b311e
4 changed files with 21 additions and 5 deletions
|
@ -3,9 +3,13 @@
|
||||||
{
|
{
|
||||||
deployment = {
|
deployment = {
|
||||||
targetHost = "${name}.birdsong.network";
|
targetHost = "${name}.birdsong.network";
|
||||||
|
targetUser = "qenya";
|
||||||
tags = [ "remote" ];
|
tags = [ "remote" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Required for remote builds
|
||||||
|
security.sudo.wheelNeedsPassword = false;
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../common/openssh.nix
|
../common/openssh.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -12,9 +12,4 @@
|
||||||
services.fail2ban.enable = true;
|
services.fail2ban.enable = true;
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 22 ];
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
||||||
|
|
||||||
# Allow remote root login only from home network
|
|
||||||
# TODO: Find a less hacky way of doing remote deployment
|
|
||||||
users.users.root.openssh.authorizedKeys.keys = config.users.users.qenya.openssh.authorizedKeys.keys;
|
|
||||||
services.openssh.extraConfig = "Match Address 45.14.17.200\n PermitRootLogin prohibit-password";
|
|
||||||
}
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
./home.nix
|
./home.nix
|
||||||
../../common/fonts.nix
|
../../common/fonts.nix
|
||||||
../../common/gaming.nix
|
../../common/gaming.nix
|
||||||
|
./syncthing.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
16
hosts/tohru/syncthing.nix
Normal file
16
hosts/tohru/syncthing.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
user = "qenya";
|
||||||
|
dataDir = "/data/syncthing";
|
||||||
|
overrideDevices = true;
|
||||||
|
overrideFolders = true;
|
||||||
|
settings = {
|
||||||
|
devices = {
|
||||||
|
"kilgharrah" = { id = "RDT7IGD-76FZ6LY-37PPB2W-DWPQRPR-LZ4AXF7-4GIIHYJ-RVXUUSG-ZXPN3AZ"; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue