moved sxhkd configuration to seperate module

This commit is contained in:
ISnortPennies 2023-01-28 21:15:51 -05:00
parent 476b42f8af
commit f25dcd56d9
4 changed files with 14 additions and 8 deletions

View file

@ -18,6 +18,10 @@
url = "github:ISnortPennies/nvim-config"; url = "github:ISnortPennies/nvim-config";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
sxhkd-flake = {
url = "github:ISnortPennies/sxhkd-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { outputs = {
self, self,
@ -58,6 +62,7 @@
inherit system pkgs; inherit system pkgs;
specialArgs = {inherit inputs settings;}; specialArgs = {inherit inputs settings;};
modules = [ modules = [
(import ./modules/sxhkd.nix inputs)
./configuration.nix ./configuration.nix
./systems/desktop.nix ./systems/desktop.nix
{ {

View file

@ -7,7 +7,6 @@
imports = let imports = let
modules = [ modules = [
"librewolf" "librewolf"
"sxhkd"
"theme" "theme"
"picom" "picom"
"spicetify" "spicetify"

View file

@ -1,4 +1,11 @@
{ {sxhkd-flake, ...}: {
config,
lib,
options,
pkgs,
...
}: (sxhkd-flake.nixosModules.sxhkd {
inherit lib config options pkgs;
services.sxhkd = { services.sxhkd = {
enable = true; enable = true;
keybindings = { keybindings = {
@ -20,4 +27,4 @@
"super + Print + shift" = "maim -s | xclip -selection clipboard -t image/png"; "super + Print + shift" = "maim -s | xclip -selection clipboard -t image/png";
}; };
}; };
} })

View file

@ -14,11 +14,6 @@
windowManager.dwm.enable = true; windowManager.dwm.enable = true;
displayManager = { displayManager = {
defaultSession = "none+dwm"; defaultSession = "none+dwm";
sessionCommands = ''
if ! pidof sxhkd > /dev/null;then
sxhkd &
fi
'';
lightdm = { lightdm = {
enable = true; enable = true;
greeters.mini = { greeters.mini = {