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

View file

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

View file

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

View file

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