Move where autostarts are defined

Auto start webcord on personal devices
This commit is contained in:
Evie Litherland-Smith 2024-07-25 07:44:36 +01:00
parent 2e68962295
commit 53a8272876
3 changed files with 22 additions and 21 deletions

View file

@ -1,4 +1,4 @@
{...}: { {pkgs, ...}: {
imports = [ imports = [
# Programs # Programs
./desktop/default.nix ./desktop/default.nix
@ -11,4 +11,22 @@
# Additional Scripts # Additional Scripts
./scripts/default.nix ./scripts/default.nix
]; ];
packages = with pkgs; [
libreoffice-fresh
inkscape
webcord
whatsapp-for-linux
teams-for-linux
];
xdg.configFile = {
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop";
"teams-for-linux/config.json".text = builtins.toJSON {
awayOnSystemIdle = true;
closeAppOnCross = true;
followSystemTheme = true;
notificationMethod = "electron";
optInTeamsV2 = true;
spellCheckerLanguages = ["en_GB"];
};
};
} }

View file

@ -1,6 +1,5 @@
{ {
config, config,
lib,
pkgs, pkgs,
... ...
}: { }: {
@ -20,13 +19,6 @@
defaultCursor = name; defaultCursor = name;
}; };
}; };
packages = with pkgs; [
libreoffice-fresh
inkscape
webcord
whatsapp-for-linux
teams-for-linux
];
}; };
services.syncthing.enable = true; services.syncthing.enable = true;
programs.mpv.enable = true; programs.mpv.enable = true;
@ -51,18 +43,6 @@
XDG_PROJECTS_DIR = "${config.home.homeDirectory}/Projects"; XDG_PROJECTS_DIR = "${config.home.homeDirectory}/Projects";
}; };
}; };
configFile = {
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop";
"teams-for-linux/config.json".text = builtins.toJSON {
awayOnSystemIdle = true;
closeAppOnCross = true;
followSystemTheme = true;
electronCLIFlags = lib.mkIf config.wayland.windowManager.sway.enable [["ozone-platform" "wayland"]];
notificationMethod = "electron";
optInTeamsV2 = true;
spellCheckerLanguages = ["en_GB"];
};
};
}; };
xresources.properties = with config.scheme.withHashtag; { xresources.properties = with config.scheme.withHashtag; {
"*background" = base00; "*background" = base00;

View file

@ -7,4 +7,7 @@
openscad openscad
kicad-small kicad-small
]; ];
xdg.configFile = {
"autostart/webcord.desktop".source = "${pkgs.webcord}/share/applications/webcord.desktop";
};
} }