Relocating stuff to pkgs folder. No actual changes yet.
This commit is contained in:
parent
2547333607
commit
da35b7007d
|
@ -55,7 +55,7 @@
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.james = import ./home.nix;
|
home-manager.users.james = import ./home.nix;
|
||||||
}
|
}
|
||||||
{ nixpkgs.overlays = [ nur.overlay ]; }
|
{ nixpkgs.overlays = [ nur.overlay (import ./pkgs) ]; }
|
||||||
];
|
];
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,10 +9,6 @@ let
|
||||||
sha256 = "sha256-fYMzoY3un4qGOSR4DMqVUAFmGGil+wUze31rLLrjcAc=";
|
sha256 = "sha256-fYMzoY3un4qGOSR4DMqVUAFmGGil+wUze31rLLrjcAc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
brightness-sh = pkgs.callPackage ./scripts/brightness.nix { inherit pkgs; };
|
|
||||||
sway-entry = pkgs.callPackage ./scripts/sway-entry.nix { inherit pkgs; };
|
|
||||||
volume-sh = pkgs.callPackage ./scripts/volume.nix { inherit pkgs; };
|
|
||||||
scripts = [ brightness-sh sway-entry volume-sh ];
|
|
||||||
in with lib; {
|
in with lib; {
|
||||||
options = {
|
options = {
|
||||||
this.application.sway.enable = mkOption {
|
this.application.sway.enable = mkOption {
|
||||||
|
@ -97,12 +93,13 @@ in with lib; {
|
||||||
"${modifier}+space" =
|
"${modifier}+space" =
|
||||||
"exec $(${pkgs.dmenu}/bin/dmenu_path | ${pkgs.dmenu}/bin/dmenu)";
|
"exec $(${pkgs.dmenu}/bin/dmenu_path | ${pkgs.dmenu}/bin/dmenu)";
|
||||||
Pause = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
Pause = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||||
XF86AudioLowerVolume = "exec ${volume-sh}/bin/volume.sh down";
|
XF86AudioLowerVolume = "exec ${pkgs.volume-sh}/bin/volume.sh down";
|
||||||
XF86AudioMute = "exec ${volume-sh}/bin/volume.sh mute";
|
XF86AudioMute = "exec ${pkgs.volume-sh}/bin/volume.sh mute";
|
||||||
XF86AudioRaiseVolume = "exec ${volume-sh}/bin/volume.sh up";
|
XF86AudioRaiseVolume = "exec ${pkgs.volume-sh}/bin/volume.sh up";
|
||||||
XF86MonBrightnessDown =
|
XF86MonBrightnessDown =
|
||||||
"exec ${brightness-sh}/bin/brightness.sh down";
|
"exec ${pkgs.brightness-sh}/bin/brightness.sh down";
|
||||||
XF86MonBrightnessUp = "exec ${brightness-sh}/bin/brightness.sh up";
|
XF86MonBrightnessUp =
|
||||||
|
"exec ${pkgs.brightness-sh}/bin/brightness.sh up";
|
||||||
};
|
};
|
||||||
# https://github.com/gytis-ivaskevicius/nixfiles/blob/master/home-manager/i3-sway.nix
|
# https://github.com/gytis-ivaskevicius/nixfiles/blob/master/home-manager/i3-sway.nix
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
|
@ -114,19 +111,21 @@ in with lib; {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs; [
|
||||||
[
|
|
||||||
autotiling
|
autotiling
|
||||||
|
brightness-sh
|
||||||
dmenu
|
dmenu
|
||||||
grim
|
grim
|
||||||
imagemagick
|
imagemagick
|
||||||
|
playerctl
|
||||||
slurp
|
slurp
|
||||||
|
sway-entry
|
||||||
swayidle
|
swayidle
|
||||||
swaylock
|
swaylock
|
||||||
playerctl
|
volume-sh
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
wofi
|
wofi
|
||||||
] ++ scripts;
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.light.enable = true;
|
programs.light.enable = true;
|
||||||
|
|
5
pkgs/default.nix
Normal file
5
pkgs/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
self: super: {
|
||||||
|
brightness-sh = super.callPackage ./brightness.nix { inherit super; };
|
||||||
|
sway-entry = super.callPackage ./sway-entry.nix { inherit super; };
|
||||||
|
volume-sh = super.callPackage ./volume.nix { inherit super; };
|
||||||
|
}
|
Reference in New Issue
Block a user