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:
parent
48570036bf
commit
502e723931
|
@ -1,24 +1,12 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./personal.nix
|
./personal.nix
|
||||||
./desktop/plasma/default.nix
|
./desktop/plasma/default.nix
|
||||||
];
|
];
|
||||||
home.packages = with pkgs; [ prusa-slicer ];
|
|
||||||
programs.plasma = lib.mkIf config.programs.plasma.enable {
|
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";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
{ config, lib, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./work.nix
|
./work.nix
|
||||||
./desktop/plasma/default.nix
|
./desktop/plasma/default.nix
|
||||||
];
|
];
|
||||||
wayland.windowManager.sway = lib.mkIf config.wayland.windowManager.sway.enable {
|
xdg.configFile = {
|
||||||
config.output."Dell Inc. DELL P3223QE CCG8YN3".scale = "1.5";
|
"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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,48 +9,4 @@
|
||||||
kcminputrc."Libinput/1160/4132/DELL0A21:00 0488:1024 Touchpad".NaturalScroll = true;
|
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
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
{
|
{ pkgs, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./personal.nix
|
./personal.nix
|
||||||
|
@ -12,6 +7,9 @@
|
||||||
./desktop/plasma/default.nix
|
./desktop/plasma/default.nix
|
||||||
];
|
];
|
||||||
xdg.configFile = {
|
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";
|
"autostart/org.kde.ktorrent.desktop".source = "${pkgs.kdePackages.ktorrent}/share/applications/org.kde.ktorrent.desktop";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,10 +23,7 @@
|
||||||
whatsapp-for-linux
|
whatsapp-for-linux
|
||||||
teams-for-linux
|
teams-for-linux
|
||||||
];
|
];
|
||||||
xdg.configFile = {
|
xdg.configFile."teams-for-linux/config.json".text = builtins.toJSON {
|
||||||
"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 {
|
|
||||||
awayOnSystemIdle = true;
|
awayOnSystemIdle = true;
|
||||||
closeAppOnCross = true;
|
closeAppOnCross = true;
|
||||||
followSystemTheme = true;
|
followSystemTheme = true;
|
||||||
|
@ -34,5 +31,4 @@
|
||||||
optInTeamsV2 = true;
|
optInTeamsV2 = true;
|
||||||
spellCheckerLanguages = [ "en_GB" ];
|
spellCheckerLanguages = [ "en_GB" ];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,4 @@
|
||||||
openscad
|
openscad
|
||||||
kicad-small
|
kicad-small
|
||||||
];
|
];
|
||||||
xdg.configFile = {
|
|
||||||
"autostart/webcord.desktop".source = "${pkgs.webcord}/share/applications/webcord.desktop";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
imports = [ ./default.nix ];
|
imports = [ ./default.nix ];
|
||||||
home.packages = with pkgs; [
|
home.packages = [
|
||||||
twinkle
|
pkgs.twinkle
|
||||||
(import ./scripts/ukaea-vpn.nix pkgs)
|
(import ./scripts/ukaea-vpn.nix pkgs)
|
||||||
];
|
];
|
||||||
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
|
programs.git.userEmail = config.accounts.email.accounts.outlook.address;
|
||||||
|
@ -15,8 +15,4 @@
|
||||||
proton.primary = lib.mkForce false;
|
proton.primary = lib.mkForce false;
|
||||||
outlook.primary = lib.mkForce true;
|
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";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
};
|
};
|
||||||
steam-hardware.enable = true;
|
steam-hardware.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
|
|
Loading…
Reference in a new issue