feat: Added tailscale steam deck module

This commit is contained in:
uttarayan21
2025-05-04 04:34:14 +05:30
parent 613cee2bf7
commit a67d3353e2
2 changed files with 31 additions and 8 deletions

View File

@@ -0,0 +1,28 @@
{
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.services.aichat;
in {
options = {
services.aichat = {
enable = mkEnableOption "aichat";
package = mkPackageOption pkgs "aichat" {};
};
};
config = {
home.packages = mkIf cfg.enable [cfg.package];
home.activation.runTailscaleActivation = let
tailscaleLib = "${cfg.package}/lib";
in
lib.hm.dag.entryAfter ["writeBoundary"] ''
cp -r ${tailscaleLib} /etc/
systemctl reload-daemon
systemctl enable --now tailscaled
'';
};
}

View File

@@ -3,13 +3,8 @@
config,
...
}: {
home.packages = [
(pkgs.tailscale.overrideAttrs (old: {
postInstall =
old.postInstall
+ ''
cp -r $out/lib $out/etc
'';
}))
imports = [
../modules/home/tailscale.nix
];
services.tailscale.enable = true;
}