nixos-config/profiles/workspace/kde/plasma-mobile.nix

102 lines
3.0 KiB
Nix
Raw Normal View History

2023-02-16 18:51:34 +04:00
{ config, pkgs, lib, ... }: {
2023-02-24 14:33:13 +04:00
environment.sessionVariables = {
_JAVA_AWT_WM_NONREPARENTING = "1";
XDG_SESSION_TYPE = "wayland";
QT_QPA_PLATFORM = "wayland";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
};
2023-02-22 00:34:25 +04:00
nixpkgs.overlays = [
(final: prev: {
2023-02-24 14:33:13 +04:00
libsForQt5 = prev.libsForQt5 // {
kwallet = null;
kwallet-pam = null;
kwalletmanager = null;
};
2023-02-22 00:34:25 +04:00
})
];
2023-02-16 18:51:34 +04:00
services.xserver = {
enable = true;
desktopManager.plasma5 = {
mobile.enable = true;
runUsingSystemd = false;
};
displayManager = {
autoLogin = {
enable = true;
user = "balsoft";
};
defaultSession = "plasma-mobile";
lightdm = {
enable = true;
extraSeatDefaults = ''
session-cleanup-script=${pkgs.procps}/bin/pkill -P1 -fx ${pkgs.lightdm}/sbin/lightdm
'';
};
};
libinput.enable = true;
};
2023-02-22 00:34:25 +04:00
programs.feedbackd.enable = true;
services.upower.enable = true;
2023-02-16 18:51:34 +04:00
2023-02-24 14:33:13 +04:00
services.geoclue2.enable = true;
2023-02-16 18:51:34 +04:00
home-manager.users.balsoft = {
2023-02-18 22:57:44 +04:00
home.activation.removeGtkRc = {
2023-02-24 14:33:13 +04:00
data = "rm -f $HOME/.gtkrc-2.0";
2023-02-18 22:57:44 +04:00
before = [ "checkLinkTargets" ];
2023-02-24 14:33:13 +04:00
after = [ ];
2023-02-18 22:57:44 +04:00
};
2023-02-16 18:51:34 +04:00
xdg.configFile."autostart/org_kde_powerdevil.desktop".text = ''
[Desktop Entry]
DBusActivatable=true
Exec=${pkgs.powerdevil}/libexec/org_kde_powerdevil
Name=org_kde_powerdevil
Type=Application
'';
xdg.configFile."plasmarc".text =
lib.generators.toGitINI { Theme.name = "generated"; };
xdg.configFile."plasmamobilerc".text = lib.generators.toGitINI {
General = {
actionDrawerTopLeftMode = "1";
actionDrawerTopRightMode = "0";
vibrationDuration = "100";
vibrationIntensity = "0.5";
2023-02-24 14:33:13 +04:00
vibrationsEnabled = "true";
navigationPanelEnabled = "false";
taskSwitcherPreviewsEnabled = "false";
animationsEnabled = "false";
2023-02-16 18:51:34 +04:00
};
QuickSettings = {
2023-02-24 14:33:13 +04:00
disabledQuickSettings = builtins.concatStringsSep "," [ ];
2023-02-16 18:51:34 +04:00
enabledQuickSettings = builtins.concatStringsSep "," [
"org.kde.plasma.quicksetting.wifi"
"org.kde.plasma.quicksetting.mobiledata"
"org.kde.plasma.quicksetting.bluetooth"
"org.kde.plasma.quicksetting.flashlight"
"org.kde.plasma.quicksetting.screenrotation"
"org.kde.plasma.quicksetting.settingsapp"
"org.kde.plasma.quicksetting.airplanemode"
"org.kde.plasma.quicksetting.audio"
"org.kde.plasma.quicksetting.battery"
"org.kde.plasma.quicksetting.location"
"org.kde.plasma.quicksetting.nightcolor"
"org.kde.plasma.quicksetting.screenshot"
"org.kde.plasma.quicksetting.powermenu"
"org.kde.plasma.quicksetting.donotdisturb"
"org.kde.plasma.quicksetting.caffeine"
"org.kde.plasma.quicksetting.keyboardtoggle"
2023-02-24 14:33:13 +04:00
"org.kde.plasma.quicksetting.record"
2023-02-16 18:51:34 +04:00
];
};
};
2023-02-24 14:33:13 +04:00
xdg.configFile."plasmaparc".text =
lib.generators.toGitINI { General.VolumeStep = 2; };
2023-02-16 18:51:34 +04:00
};
}