refactor: change to litterate config

Configuration is now held by the `.org` files. All `.nix` files are
tangled from the org-mode files.
This commit is contained in:
2026-10-11 16:55:06 +02:00
parent 5f4a7a4a42
commit 0cb44b51e7
82 changed files with 3419 additions and 592 deletions
+9 -22
View File
@@ -1,25 +1,12 @@
{...}: {
{
flake.modules.nixos.tailscale = {
lib,
config,
...
}:
with lib; let
cfg = config.mySystem.network.tailscale;
in {
options.mySystem.network.tailscale = {
enable = mkOption {
type = types.bool;
default = true;
};
};
config.services.tailscale = {
inherit (cfg) enable;
extraSetFlags = [
"--accept-dns"
"--accept-routes"
"--ssh"
];
};
services.tailscale = {
enable = true;
extraSetFlags = [
"--accept-dns"
"--accept-routes"
"--ssh"
];
};
};
}