add tailscale service
This commit is contained in:
parent
35a82ef4d8
commit
28a56195be
3 changed files with 18 additions and 0 deletions
|
|
@ -29,6 +29,7 @@
|
|||
dae.enable = true;
|
||||
openssh.enable = true;
|
||||
steam.enable = true;
|
||||
tailscale.enable = true;
|
||||
};
|
||||
gui.enabled = "cosmic";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
./i18n.nix
|
||||
./gui
|
||||
./steam.nix
|
||||
./tailscale.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
16
nixos/modules/tailscale.nix
Normal file
16
nixos/modules/tailscale.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.youthlic.programs.tailscale;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
youthlic.programs.tailscale = {
|
||||
enable = lib.mkEnableOption "tailscale";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue