first working build of rewrite
This commit is contained in:
commit
44a3f420c6
29 changed files with 1261 additions and 0 deletions
13
modules/system/services/tailscale.nix
Normal file
13
modules/system/services/tailscale.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ pkgs, config, lib, ... }: {
|
||||
|
||||
options.speccon18.tailscale.enable = lib.mkEnableOption "enables the tailscale service and sets the package to use";
|
||||
|
||||
config = lib.mkIf config.speccon18.tailscale.enable {
|
||||
# make the tailscale command usable to users
|
||||
environment.systemPackages = with pkgs;[
|
||||
pkgs.tailscale
|
||||
];
|
||||
# enable the tailscale service
|
||||
services.tailscale.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue