From ac72bd3ed5bd39a5c77b43469a5274dad9a7ef95 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 14 Oct 2025 11:42:45 +0200 Subject: [PATCH 1/1] add kde plasma --- configuration.nix | 22 ++++++++++++++++++---- home.nix | 10 ++++++++-- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index c7c77d1..4a277d1 100644 --- a/configuration.nix +++ b/configuration.nix @@ -53,7 +53,7 @@ in nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.download-buffer-size = 500000000; - nix.config.trusted-users = ["root" "ps"]; + nix.settings.trusted-users = ["root" "ps"]; # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; @@ -162,9 +162,11 @@ in noDesktop = true; enableXfwm = false; }; + plasma6.enable = true; }; windowManager.i3.enable = true; windowManager.awesome.enable = true; + windowManager.herbstluftwm.enable = true; xkb = { layout = "de"; @@ -177,6 +179,18 @@ in }; }; + systemd.user.services.plasma-i3wm = { + wantedBy = [ "plasma-workspace-x11.target" ]; + description = "Launch Plasma with i3wm."; + environment = lib.mkForce {}; + serviceConfig = { + ExecStart = "${pkgs.i3}/bin/i3"; + Restart = "on-failure"; + }; + }; + systemd.user.services.plasma-workspace-x11.after = [ "plasma-i3wm.target" ]; + systemd.user.services.plasma-kwin_x11.enable = false; + services.autorandr = { enable = true; matchEdid = true; @@ -194,7 +208,7 @@ in configDir = "/home/ps/.config/syncthing"; }; - services.auto-cpufreq.enable = true; + # services.auto-cpufreq.enable = true; services.auto-cpufreq.settings = { battery = { governor = "powersave"; @@ -279,7 +293,7 @@ in # Enable Bluetooth hardware.bluetooth.enable = true; hardware.bluetooth.powerOnBoot = false; - services.blueman.enable = true; + # services.blueman.enable = true; # Enable sound with pipewire. services.pulseaudio.enable = false; @@ -390,7 +404,7 @@ in # xfce plugins xfce.xfce4-panel xfce.xfce4-pulseaudio-plugin - # xfce.xfce4-verve-plugin + # xfce.xfce4-verve-plugin xfce.xfce4-notes-plugin # xfce.xfce4-timer-plugin # xfce.xfce4-windowck-plugin diff --git a/home.nix b/home.nix index 5260225..3f34dd3 100644 --- a/home.nix +++ b/home.nix @@ -225,17 +225,18 @@ in }; }; extraConfig = '' - exec ${pkgs.xfce.xfce4-panel}/bin/xfce4-panel + # exec ${pkgs.xfce.xfce4-panel}/bin/xfce4-panel for_window [window_role="pop-up"] floating enable for_window [window_role="task_dialog"] floating enable # for_window [workspace="0"] floating enable for_window [class="kitty-popup"] floating enable for_window [class="Xfce4-appfinder"] floating enable - for_window [class=".blueman-manager-wrapped"] floating enable for_window [class="yakuake"] floating enable for_window [class="systemsettings"] floating enable for_window [title="win7"] floating enable; border none + for_window [title="Desktop — Plasma"] kill, floating enable, border none + for_window [title="Arbeitsfläche — Plasma"] kill, floating enable, border none # class border backgr. text indicator child_border client.focused #000000bf #000000bf #e6ebef #000000bf #000000bf @@ -401,11 +402,16 @@ in noremap "+ noremap "+ + " Format on save " augroup FormatAutogroup " autocmd! " autocmd BufWritePost * FormatWrite " augroup END + " enter insert mode when opening terminal + autocmd TermOpen * startinsert + + " autocmd BufReadPost * \ if line("'\"") > 1 && line("'\"") <= line("$") && &ft !~# 'commit' \ | exe "normal! g`\"" -- 2.50.1