mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 17:42:24 -05:00
Adding Tailscale
This commit is contained in:
parent
9afafb3f3e
commit
b5a09c54a8
3 changed files with 17 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ inputs.nixpkgs.lib.nixosSystem {
|
||||||
docker.enable = true;
|
docker.enable = true;
|
||||||
yubikey.enable = true;
|
yubikey.enable = true;
|
||||||
kdeconnect.enable = true;
|
kdeconnect.enable = true;
|
||||||
|
tailscale.enable = true;
|
||||||
|
|
||||||
# TODO: Move this out
|
# TODO: Move this out
|
||||||
home-manager.users.annika = {
|
home-manager.users.annika = {
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
./docker.nix
|
./docker.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./kdeconnect.nix
|
./kdeconnect.nix
|
||||||
|
./tailscale.nix
|
||||||
./yubikey-manager.nix
|
./yubikey-manager.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
15
modules/common/utilities/tailscale.nix
Normal file
15
modules/common/utilities/tailscale.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
tailscale = {
|
||||||
|
enable = lib.mkEnableOption {
|
||||||
|
description = "Enable tailscale";
|
||||||
|
default = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf (config.tailscale.enable) {
|
||||||
|
environment.systemPackages = [ pkgs.tailscale ];
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue