tailscale
This commit is contained in:
parent
bf8c3116e8
commit
3cdec3c55c
1 changed files with 15 additions and 31 deletions
|
|
@ -1,17 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
description = "NixOS with Tailscale + Plasma tray";
|
||||
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
in {
|
||||
nixosConfigurations.my-host = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [
|
||||
({ pkgs, ... }: {
|
||||
networking.hostName = "my-host";
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
|
|
@ -19,7 +8,7 @@
|
|||
extraUpFlags = [ "--ssh" ];
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.tail-tray ];
|
||||
environment.systemPackages = [ pkgs.tail-tray ]; # or pkgs.trayscale
|
||||
|
||||
systemd.user.services.tail-tray = {
|
||||
description = "Tailscale tray (Plasma)";
|
||||
|
|
@ -30,8 +19,3 @@
|
|||
Restart = "on-failure";
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue