devices: flag desktps, install tailscale tray if dektop
This commit is contained in:
parent
e394a6e21e
commit
95eb2fa1cb
4 changed files with 11 additions and 6 deletions
|
|
@ -38,6 +38,7 @@ in
|
|||
};
|
||||
muede-lpt2 = {
|
||||
system = "x86_64-linux";
|
||||
isDesktop = true;
|
||||
home-manager-users = {
|
||||
inherit (self.homeConfigurations) muede;
|
||||
};
|
||||
|
|
@ -50,6 +51,7 @@ in
|
|||
};
|
||||
muede-pc2 = {
|
||||
system = "x86_64-linux";
|
||||
isDesktop = true;
|
||||
home-manager-users = {
|
||||
inherit (self.homeConfigurations) muede;
|
||||
};
|
||||
|
|
@ -63,6 +65,7 @@ in
|
|||
};
|
||||
ronja-pc = {
|
||||
system = "x86_64-linux";
|
||||
isDesktop = true;
|
||||
home-manager-users = {
|
||||
inherit (self.homeConfigurations) ronja;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@
|
|||
onefetch
|
||||
servicepoint-cli
|
||||
servicepoint-simulator
|
||||
tailscale
|
||||
telegram-desktop
|
||||
thunderbird
|
||||
vlc
|
||||
|
|
@ -93,9 +92,6 @@
|
|||
"idea.properties".text = "idea.filewatcher.executable.path = ${pkgs.fsnotifier}/bin/fsnotifier";
|
||||
};
|
||||
|
||||
services = {
|
||||
trayscale.enable = true;
|
||||
poweralertd.enable = true;
|
||||
};
|
||||
services.poweralertd.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
4
homeModules/tailscale.nix
Normal file
4
homeModules/tailscale.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ osConfig, thisDevice, ... }:
|
||||
{
|
||||
services.tailscale-systray.enable = (thisDevice.isDesktop or false) && osConfig.my.tailscale.enable;
|
||||
}
|
||||
|
|
@ -21,6 +21,7 @@ forDevice (
|
|||
{
|
||||
device,
|
||||
system,
|
||||
isDesktop ? false,
|
||||
home-manager-users ? { },
|
||||
nixosSystem ? inputs.nixpkgs.lib.nixosSystem,
|
||||
...
|
||||
|
|
@ -87,7 +88,7 @@ forDevice (
|
|||
};
|
||||
}
|
||||
]
|
||||
++ lib.optionals (home-manager-users != { }) [
|
||||
++ lib.optionals isDesktop [
|
||||
# Desktop config
|
||||
{
|
||||
home-manager = {
|
||||
|
|
@ -100,6 +101,7 @@ forDevice (
|
|||
# keep-sorted start
|
||||
self.homeModules.gnome-extensions
|
||||
self.homeModules.nano
|
||||
self.homeModules.tailscale
|
||||
self.homeModules.templates
|
||||
self.homeModules.zsh-basics
|
||||
# keep-sorted end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue