mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop/Plasma] Move plasma-specific conf into a dedicated file
This commit is contained in:
parent
2d2c8d4ce4
commit
5ae84ffe56
2 changed files with 64 additions and 52 deletions
57
desktop.nix
57
desktop.nix
|
|
@ -82,6 +82,10 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./desktop/plasma.nix
|
||||||
|
];
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
aviallon.network.backend = mkDefault "NetworkManager";
|
aviallon.network.backend = mkDefault "NetworkManager";
|
||||||
|
|
@ -94,38 +98,12 @@ in {
|
||||||
|
|
||||||
systemd.services."getty@tty1".enable = mkOverride 50 false;
|
systemd.services."getty@tty1".enable = mkOverride 50 false;
|
||||||
systemd.services."autovt@tty1".enable = mkOverride 50 false;
|
systemd.services."autovt@tty1".enable = mkOverride 50 false;
|
||||||
|
|
||||||
systemd.tmpfiles.rules = mkAfter [
|
|
||||||
"e ${config.users.users.sddm.home}/.cache/sddm-greeter/qmlcache/ - - - 0"
|
|
||||||
"x ${config.users.users.sddm.home}/.cache"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Prevents blinking cursor
|
|
||||||
services.xserver.displayManager.sddm = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
Theme = {
|
|
||||||
CursorTheme = "breeze_cursors";
|
|
||||||
};
|
|
||||||
X11 = {
|
|
||||||
MinimumVT = mkOverride 50 1;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
services.xserver.layout = cfg.layout;
|
services.xserver.layout = cfg.layout;
|
||||||
services.xserver.xkbOptions = "eurosign:e";
|
services.xserver.xkbOptions = "eurosign:e";
|
||||||
|
|
||||||
|
|
||||||
# Enable the Plasma 5 Desktop Environment.
|
|
||||||
services.xserver.desktopManager.plasma5 = {
|
|
||||||
enable = true;
|
|
||||||
runUsingSystemd = true;
|
|
||||||
useQtScaling = true;
|
|
||||||
supportDDC = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.plymouth.enable = mkDefault true;
|
boot.plymouth.enable = mkDefault true;
|
||||||
boot.kernelParams = concatLists [
|
boot.kernelParams = concatLists [
|
||||||
(optionals (!generalCfg.debug) [ "splash" "udev.log_level=3" ])
|
(optionals (!generalCfg.debug) [ "splash" "udev.log_level=3" ])
|
||||||
|
|
@ -173,37 +151,12 @@ in {
|
||||||
# For 32 bit applications
|
# For 32 bit applications
|
||||||
hardware.opengl.driSupport32Bit = true;
|
hardware.opengl.driSupport32Bit = true;
|
||||||
|
|
||||||
xdg = {
|
|
||||||
portal = {
|
|
||||||
enable = true;
|
|
||||||
gtkUsePortal = mkDefault true;
|
|
||||||
extraPortals = with pkgs; [
|
|
||||||
xdg-desktop-portal-gtk
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# programs.gnupg.agent.pinentryFlavor = "qt";
|
# programs.gnupg.agent.pinentryFlavor = "qt";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; with libsForQt5; [
|
environment.systemPackages = with pkgs; [
|
||||||
# firefox
|
|
||||||
chromium
|
chromium
|
||||||
konsole
|
|
||||||
kate
|
|
||||||
yakuake
|
|
||||||
pinentry-qt
|
|
||||||
plasma-pa
|
|
||||||
ark
|
|
||||||
p7zip
|
p7zip
|
||||||
vlc
|
vlc
|
||||||
skanlite
|
|
||||||
packagekit-qt
|
|
||||||
discover
|
|
||||||
akonadi
|
|
||||||
kmail
|
|
||||||
korganizer
|
|
||||||
dolphin
|
|
||||||
kio-fuse
|
|
||||||
glxinfo
|
glxinfo
|
||||||
vdpauinfo
|
vdpauinfo
|
||||||
libva-utils
|
libva-utils
|
||||||
|
|
|
||||||
59
desktop/plasma.nix
Normal file
59
desktop/plasma.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
{config, pkgs, lib, ...}:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.aviallon.desktop;
|
||||||
|
in {
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
# Enable the Plasma 5 Desktop Environment.
|
||||||
|
services.xserver.desktopManager.plasma5 = {
|
||||||
|
enable = true;
|
||||||
|
runUsingSystemd = true;
|
||||||
|
useQtScaling = true;
|
||||||
|
supportDDC = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules = mkAfter [
|
||||||
|
"e ${config.users.users.sddm.home}/.cache/sddm-greeter/qmlcache/ - - - 0"
|
||||||
|
"x ${config.users.users.sddm.home}/.cache"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Prevents blinking cursor
|
||||||
|
services.xserver.displayManager.sddm = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
Theme = {
|
||||||
|
CursorTheme = "breeze_cursors";
|
||||||
|
};
|
||||||
|
X11 = {
|
||||||
|
MinimumVT = mkOverride 50 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; with libsForQt5; [
|
||||||
|
skanlite
|
||||||
|
packagekit-qt
|
||||||
|
discover
|
||||||
|
akonadi
|
||||||
|
kmail
|
||||||
|
korganizer
|
||||||
|
dolphin
|
||||||
|
kio-fuse
|
||||||
|
konsole
|
||||||
|
kate
|
||||||
|
yakuake
|
||||||
|
pinentry-qt
|
||||||
|
plasma-pa
|
||||||
|
ark
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = mkDefault true;
|
||||||
|
gtkUsePortal = mkDefault true;
|
||||||
|
extraPortals = with pkgs; [
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue