From 2d26addbf54f9f2dec3572074b3e3215b3a23a02 Mon Sep 17 00:00:00 2001 From: Grey Jones Date: Fri, 3 Jul 2026 00:56:34 +0100 Subject: [PATCH] move plasma config to import --- hosts/nixos-vm/home.nix | 16 +--------------- hosts/nixos-vm/plasma.nix | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 15 deletions(-) create mode 100644 hosts/nixos-vm/plasma.nix diff --git a/hosts/nixos-vm/home.nix b/hosts/nixos-vm/home.nix index e598f70..8e68f98 100644 --- a/hosts/nixos-vm/home.nix +++ b/hosts/nixos-vm/home.nix @@ -5,6 +5,7 @@ ... }: { imports = [ + ./plasma.nix ./fastfetch.nix ]; @@ -58,18 +59,11 @@ }; }; - programs.plasma = { home.shell.enableZshIntegration = true; programs.zsh = { enable = true; - overrideConfig = true; - workspace = { - clickItemTo = "select"; - lookAndFeel = "org.kde.breezedark.desktop"; - cursor.theme = "Bibata-Modern-Ice"; - iconTheme = "Papirus-Dark"; antidote = { enable = true; plugins = [ @@ -83,21 +77,13 @@ ]; }; - shortcuts = { - plasmashell = { - "Show Activity Switcher" = ""; - }; localVariables = { PATH = "/home/grey/.local/bin:$PATH"; }; - kwin = { - "Close Window" = "Meta+Q"; - }; initContent = lib.mkOrder 1500 "fastfetch"; }; - "services/kitty.desktop"."_launch" = "Meta+Return"; programs.kitty = { enable = true; settings = { diff --git a/hosts/nixos-vm/plasma.nix b/hosts/nixos-vm/plasma.nix new file mode 100644 index 0000000..85572a6 --- /dev/null +++ b/hosts/nixos-vm/plasma.nix @@ -0,0 +1,38 @@ +{ + pkgs, + ... +}: { + programs.plasma = { + enable = true; + overrideConfig = true; + + session.sessionRestore.restoreOpenApplicationsOnLogin = "startWithEmptySession"; + + workspace = { + clickItemTo = "select"; + lookAndFeel = "org.kde.breezedark.desktop"; + cursor.theme = "Bibata-Modern-Ice"; + iconTheme = "Papirus-Dark"; + }; + + hotkeys.commands."rebuild-flake" = { + name = "Rebuild NixOS Flake"; + key = "Meta+Z"; + command = "kitty --hold bash -c \"nh os switch /home/grey/nixos; if [ \\$? == 0 ]; then exit; fi\""; + }; + + shortcuts = { + plasmashell = { + "Show Activity Switcher" = "none"; + "manage activities" = "none"; + }; + + kwin = { + "Close Window" = "Meta+Q"; + "Window Close" = "Meta+Q"; + }; + + "services/kitty.desktop"."_launch" = "Meta+Return"; + }; + }; +}