devices: flag desktps, install tailscale tray if dektop

This commit is contained in:
müde 2026-05-03 13:53:11 +02:00
parent e394a6e21e
commit 95eb2fa1cb
4 changed files with 11 additions and 6 deletions

View file

@ -38,6 +38,7 @@ in
}; };
muede-lpt2 = { muede-lpt2 = {
system = "x86_64-linux"; system = "x86_64-linux";
isDesktop = true;
home-manager-users = { home-manager-users = {
inherit (self.homeConfigurations) muede; inherit (self.homeConfigurations) muede;
}; };
@ -50,6 +51,7 @@ in
}; };
muede-pc2 = { muede-pc2 = {
system = "x86_64-linux"; system = "x86_64-linux";
isDesktop = true;
home-manager-users = { home-manager-users = {
inherit (self.homeConfigurations) muede; inherit (self.homeConfigurations) muede;
}; };
@ -63,6 +65,7 @@ in
}; };
ronja-pc = { ronja-pc = {
system = "x86_64-linux"; system = "x86_64-linux";
isDesktop = true;
home-manager-users = { home-manager-users = {
inherit (self.homeConfigurations) ronja; inherit (self.homeConfigurations) ronja;
}; };

View file

@ -80,7 +80,6 @@
onefetch onefetch
servicepoint-cli servicepoint-cli
servicepoint-simulator servicepoint-simulator
tailscale
telegram-desktop telegram-desktop
thunderbird thunderbird
vlc vlc
@ -93,9 +92,6 @@
"idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier"; "idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier";
}; };
services = { services.poweralertd.enable = true;
trayscale.enable = true;
poweralertd.enable = true;
};
}; };
} }

View file

@ -0,0 +1,4 @@
{ osConfig, thisDevice, ... }:
{
services.tailscale-systray.enable = (thisDevice.isDesktop or false) && osConfig.my.tailscale.enable;
}

View file

@ -21,6 +21,7 @@ forDevice (
{ {
device, device,
system, system,
isDesktop ? false,
home-manager-users ? { }, home-manager-users ? { },
nixosSystem ? inputs.nixpkgs.lib.nixosSystem, nixosSystem ? inputs.nixpkgs.lib.nixosSystem,
... ...
@ -87,7 +88,7 @@ forDevice (
}; };
} }
] ]
++ lib.optionals (home-manager-users != { }) [ ++ lib.optionals isDesktop [
# Desktop config # Desktop config
{ {
home-manager = { home-manager = {
@ -100,6 +101,7 @@ forDevice (
# keep-sorted start # keep-sorted start
self.homeModules.gnome-extensions self.homeModules.gnome-extensions
self.homeModules.nano self.homeModules.nano
self.homeModules.tailscale
self.homeModules.templates self.homeModules.templates
self.homeModules.zsh-basics self.homeModules.zsh-basics
# keep-sorted end # keep-sorted end