feat(ops/nixos/camden): Join camden.tazj.in into Tailscale mesh
This commit is contained in:
parent
aaa0119a37
commit
44b57d095b
1 changed files with 21 additions and 3 deletions
|
@ -7,6 +7,8 @@ config: let
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
in pkgs.lib.fix(self: {
|
in pkgs.lib.fix(self: {
|
||||||
|
imports = [ ../modules/tailscale.nix ];
|
||||||
|
|
||||||
# camden is intended to boot unattended, despite having an encrypted
|
# camden is intended to boot unattended, despite having an encrypted
|
||||||
# root partition.
|
# root partition.
|
||||||
#
|
#
|
||||||
|
@ -72,9 +74,17 @@ in pkgs.lib.fix(self: {
|
||||||
|
|
||||||
# System-wide application setup
|
# System-wide application setup
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
environment.systemPackages = with nixpkgs; [
|
environment.systemPackages =
|
||||||
curl emacs26-nox git gnupg pass pciutils
|
# programs from the depot
|
||||||
];
|
(with pkgs; [
|
||||||
|
third_party.git
|
||||||
|
third_party.tailscale
|
||||||
|
]) ++
|
||||||
|
|
||||||
|
# programs from nixpkgs
|
||||||
|
(with nixpkgs; [
|
||||||
|
curl emacs26-nox gnupg pass pciutils direnv
|
||||||
|
]);
|
||||||
|
|
||||||
# Services setup
|
# Services setup
|
||||||
services.openssh.enable = true;
|
services.openssh.enable = true;
|
||||||
|
@ -86,5 +96,13 @@ in pkgs.lib.fix(self: {
|
||||||
shell = nixpkgs.fish;
|
shell = nixpkgs.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Join Tailscale into home network
|
||||||
|
services.tailscale = {
|
||||||
|
enable = true;
|
||||||
|
relayConf = "/etc/tailscale.conf";
|
||||||
|
aclFile = null; # allow all traffic for testing
|
||||||
|
package = pkgs.third_party.tailscale;
|
||||||
|
};
|
||||||
|
|
||||||
system.stateVersion = "19.09";
|
system.stateVersion = "19.09";
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue