Simplify tailscale configuration
This commit is contained in:
parent
59b58faeb5
commit
51312397b5
5 changed files with 14 additions and 25 deletions
|
@ -10,7 +10,11 @@
|
|||
|
||||
facter.reportPath = ./facter.json;
|
||||
networking.hostName = "gamepc";
|
||||
services.openssh.enable = true;
|
||||
|
||||
services = {
|
||||
openssh.enable = true;
|
||||
tailscale.enable = true;
|
||||
};
|
||||
|
||||
users.users = {
|
||||
root.password = "";
|
||||
|
|
|
@ -6,11 +6,12 @@
|
|||
gnome.enable = true;
|
||||
stylix.enable = true;
|
||||
wireguard.enable = true;
|
||||
tailscale.enable = true;
|
||||
compliance.enable = true;
|
||||
sops.enable = true;
|
||||
};
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
facter.reportPath = ./facter.json;
|
||||
|
||||
networking.hostName = "xps-9315";
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
./stylix.nix
|
||||
./wireguard.nix
|
||||
./gnome.nix
|
||||
./tailscale.nix
|
||||
./compliance.nix
|
||||
./cinnamon.nix
|
||||
./ssh.nix
|
||||
|
@ -28,6 +27,7 @@
|
|||
programs.ssh.startAgent = true;
|
||||
|
||||
services = {
|
||||
tailscale.useRoutingFeatures = "client";
|
||||
xserver.enable = true;
|
||||
|
||||
printing = {
|
||||
|
@ -113,7 +113,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
networkmanager.unmanaged = lib.mkIf config.services.tailscale.enable ["tailscale0"];
|
||||
};
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
|
|
|
@ -29,7 +29,8 @@ in {
|
|||
window-is-ready-remover
|
||||
random-wallpaper
|
||||
workspaces-indicator-by-open-apps
|
||||
]);
|
||||
])
|
||||
++ lib.optional config.services.tailscale.enable pkgs.gnomeExtensions.tailscale-status;
|
||||
|
||||
gnome.excludePackages =
|
||||
(with pkgs; [
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.pim.tailscale;
|
||||
in {
|
||||
options.pim.tailscale.enable = lib.mkEnableOption "tailscale";
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = [pkgs.gnomeExtensions.tailscale-status];
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "client";
|
||||
};
|
||||
|
||||
networking.networkmanager.unmanaged = ["tailscale0"];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue