Move autostarts out of personal.nix and work.nix

Move to specific machines because I don't want the programs
autostarting on laptops
This commit is contained in:
Evie Litherland-Smith 2024-08-04 10:43:27 +01:00
parent 48570036bf
commit 502e723931
8 changed files with 23 additions and 90 deletions

View file

@ -1,24 +1,12 @@
{
config,
lib,
pkgs,
...
}:
{ config, lib, ... }:
{
imports = [
./personal.nix
./desktop/plasma/default.nix
];
home.packages = with pkgs; [ prusa-slicer ];
programs.plasma = lib.mkIf config.programs.plasma.enable {
configFile.kcminputrc."Libinput/1739/52759/SYNA32AA:00 06CB:CE17 Touchpad".NaturalScroll = true;
configFile = {
kcminputrc."Libinput/1739/52759/SYNA32AA:00 06CB:CE17 Touchpad".NaturalScroll = true;
};
wayland.windowManager.sway = lib.mkIf config.wayland.windowManager.sway.enable {
config.workspaceOutputAssign = [
{
output = "eDP-1";
workspace = "1";
}
];
};
}

View file

@ -1,10 +1,13 @@
{ config, lib, ... }:
{ pkgs, ... }:
{
imports = [
./work.nix
./desktop/plasma/default.nix
];
wayland.windowManager.sway = lib.mkIf config.wayland.windowManager.sway.enable {
config.output."Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5";
xdg.configFile = {
"autostart/twinkle.desktop".source = "${pkgs.twinkle}/share/applications/twinkle.desktop";
"autostart/teams-for-linux.desktop".source = "${pkgs.teams-for-linux}/share/applications/teams-for-linux.desktop";
"autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop";
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop";
};
}

View file

@ -9,48 +9,4 @@
kcminputrc."Libinput/1160/4132/DELL0A21:00 0488:1024 Touchpad".NaturalScroll = true;
};
};
wayland.windowManager.sway = lib.mkIf config.wayland.windowManager.sway.enable {
config = {
output."eDP-1".scale = "1.25";
workspaceOutputAssign = [
{
output = "eDP-1";
workspace = "1";
}
];
};
};
services.kanshi = lib.mkIf config.wayland.windowManager.sway.enable {
enable = true;
settings =
let
laptopScreen = {
criteria = "eDP-1";
scale = 1.25;
position = "2560,576";
};
monitor = {
criteria = "Dell Inc. DELL P3223QE CCG8YN3";
scale = 1.5;
position = "0,0";
};
in
[
{
profile = {
name = "undocked";
outputs = [ laptopScreen ];
};
}
{
profile = {
name = "docked";
outputs = [
laptopScreen
monitor
];
};
}
];
};
}

View file

@ -1,9 +1,4 @@
{
config,
lib,
pkgs,
...
}:
{ pkgs, ... }:
{
imports = [
./personal.nix
@ -12,6 +7,9 @@
./desktop/plasma/default.nix
];
xdg.configFile = {
"autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop";
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop";
"autostart/webcord.desktop".source = "${pkgs.webcord}/share/applications/webcord.desktop";
"autostart/org.kde.ktorrent.desktop".source = "${pkgs.kdePackages.ktorrent}/share/applications/org.kde.ktorrent.desktop";
};
}

View file

@ -23,10 +23,7 @@
whatsapp-for-linux
teams-for-linux
];
xdg.configFile = {
"autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop";
"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 {
xdg.configFile."teams-for-linux/config.json".text = builtins.toJSON {
awayOnSystemIdle = true;
closeAppOnCross = true;
followSystemTheme = true;
@ -34,5 +31,4 @@
optInTeamsV2 = true;
spellCheckerLanguages = [ "en_GB" ];
};
};
}

View file

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

View file

@ -6,8 +6,8 @@
}:
{
imports = [ ./default.nix ];
home.packages = with pkgs; [
twinkle
home.packages = [
pkgs.twinkle
(import ./scripts/ukaea-vpn.nix pkgs)
];
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
@ -15,8 +15,4 @@
proton.primary = lib.mkForce false;
outlook.primary = lib.mkForce true;
};
xdg.configFile = {
"autostart/twinkle.desktop".source = "${pkgs.twinkle}/share/applications/twinkle.desktop";
"autostart/teams-for-linux.desktop".source = "${pkgs.teams-for-linux}/share/applications/teams-for-linux.desktop";
};
}

View file

@ -15,7 +15,6 @@
};
steam-hardware.enable = true;
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true;