Skip to content

Commit

Permalink
civet: as tailscale derp
Browse files Browse the repository at this point in the history
  • Loading branch information
ocfox committed Sep 30, 2024
1 parent 13ab9d0 commit a3b1363
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions hosts/civet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@

facter.reportPath = ./facter.json;

security.acme.defaults.email = "civet@ocfox.me";
security.acme.acceptTerms = true;

boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
Expand Down
3 changes: 3 additions & 0 deletions hosts/civet/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{ inputs }:
{
config = {
allowUnfree = true;
allowBroken = true;
};

overlays = [ inputs.self.overlays.default ];
}
11 changes: 10 additions & 1 deletion hosts/civet/services.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{ pkgs }:
{
openssh.enable = true;
tailscale.enable = true;
tailscale = {
enable = true;

derper = {
enable = true;
package = pkgs.tailscale-derp.derper;
domain = "cyans.dev";
verifyClients = true;
};
};
}
2 changes: 1 addition & 1 deletion hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ let
inherit system;
modules = [
(genConf "${host}")
inputs.self.nixosModules.default
] ++ modules;
specialArgs = {
inherit inputs username home;
Expand All @@ -38,7 +39,6 @@ mkMerge [
inputs.minegrub.nixosModules.default
inputs.agenix.nixosModules.default
inputs.niri.nixosModules.niri
inputs.self.nixosModules.default
{ nix.registry.self.flake = self; }
])

Expand Down
1 change: 1 addition & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{
imports = [
(import ./shadowsocks.nix)
(import ./tailscale-derp.nix)
];
};
}
File renamed without changes.

0 comments on commit a3b1363

Please sign in to comment.