diff --git a/common/users/homeModules/kde.nix b/common/users/homeModules/kde.nix index 1125aeb..b1aa304 100644 --- a/common/users/homeModules/kde.nix +++ b/common/users/homeModules/kde.nix @@ -1,4 +1,7 @@ {pkgs, ...}: { + imports = [ + ./plasma.nix + ]; home = { packages = with pkgs; [ kdePackages.filelight diff --git a/common/users/homeModules/plasma.nix b/common/users/homeModules/plasma.nix new file mode 100644 index 0000000..61e3a86 --- /dev/null +++ b/common/users/homeModules/plasma.nix @@ -0,0 +1,35 @@ +{ inputs, ... }: +{ + imports = [ + inputs.plasma-manager.homeManagerModules.plasma-manager + ]; + programs = { + plasma = { + enable = true; + hotkeys = { + commands = { + "ocr" = { + name = "OCR"; + key = "Meta+Shift+T"; + command = "frog -e"; + }; + "flameshot" = { + name = "flameshot"; + key = "Print"; + command = "flameshot gui"; + }; + "rofi" = { + name = "rofi"; + key = "Alt+P"; + command = "rofi -show drun"; + }; + "kitty" = { + name = "kitty"; + key = "Alt+Shift+Return"; + command = "kitty"; + }; + }; + }; + }; + }; +} diff --git a/common/users/meyer/default.nix b/common/users/meyer/default.nix index 9c4a618..60ce8e8 100644 --- a/common/users/meyer/default.nix +++ b/common/users/meyer/default.nix @@ -37,6 +37,7 @@ in }; }; home-manager = { + useUserPackages = true; extraSpecialArgs = { inherit inputs stable unstable; }; users = { "${NAME}" = import ./home.nix; diff --git a/flake.lock b/flake.lock index fbf35e5..c8c21ad 100644 --- a/flake.lock +++ b/flake.lock @@ -619,6 +619,29 @@ "type": "github" } }, + "plasma-manager": { + "inputs": { + "home-manager": [ + "home-manager-unstable" + ], + "nixpkgs": [ + "nixpkgs-unstable" + ] + }, + "locked": { + "lastModified": 1740569341, + "narHash": "sha256-WV8nY2IOfWdzBF5syVgCcgOchg/qQtpYh6LECYS9XkY=", + "owner": "nix-community", + "repo": "plasma-manager", + "rev": "5eeb0172fb74392053b66a8149e61b5e191b2845", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "plasma-manager", + "type": "github" + } + }, "root": { "inputs": { "ceserver": "ceserver", @@ -632,6 +655,7 @@ "nixos-wsl": "nixos-wsl", "nixpkgs": "nixpkgs_4", "nixpkgs-unstable": "nixpkgs-unstable", + "plasma-manager": "plasma-manager", "scripts": "scripts", "sops-nix": "sops-nix", "spicetify-nix": "spicetify-nix", diff --git a/flake.nix b/flake.nix index d936aec..b27831d 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,11 @@ url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs-unstable"; }; + plasma-manager = { + url = "github:nix-community/plasma-manager"; + inputs.nixpkgs.follows = "nixpkgs-unstable"; + inputs.home-manager.follows = "home-manager-unstable"; + }; scripts = { url = "github:sadan4/scripts"; };