mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-10 14:33:02 -04:00
init and keybinds
This commit is contained in:
parent
09223f9531
commit
fa0b46d39e
5 changed files with 68 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
|
imports = [
|
||||||
|
./plasma.nix
|
||||||
|
];
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
kdePackages.filelight
|
kdePackages.filelight
|
||||||
|
|
35
common/users/homeModules/plasma.nix
Normal file
35
common/users/homeModules/plasma.nix
Normal file
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -37,6 +37,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
useUserPackages = true;
|
||||||
extraSpecialArgs = { inherit inputs stable unstable; };
|
extraSpecialArgs = { inherit inputs stable unstable; };
|
||||||
users = {
|
users = {
|
||||||
"${NAME}" = import ./home.nix;
|
"${NAME}" = import ./home.nix;
|
||||||
|
|
24
flake.lock
generated
24
flake.lock
generated
|
@ -619,6 +619,29 @@
|
||||||
"type": "github"
|
"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": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"ceserver": "ceserver",
|
"ceserver": "ceserver",
|
||||||
|
@ -632,6 +655,7 @@
|
||||||
"nixos-wsl": "nixos-wsl",
|
"nixos-wsl": "nixos-wsl",
|
||||||
"nixpkgs": "nixpkgs_4",
|
"nixpkgs": "nixpkgs_4",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
|
"plasma-manager": "plasma-manager",
|
||||||
"scripts": "scripts",
|
"scripts": "scripts",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"spicetify-nix": "spicetify-nix",
|
"spicetify-nix": "spicetify-nix",
|
||||||
|
|
|
@ -25,6 +25,11 @@
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
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 = {
|
scripts = {
|
||||||
url = "github:sadan4/scripts";
|
url = "github:sadan4/scripts";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue