Move common wayland packages into separate file for easy re-use

This commit is contained in:
Evie Litherland-Smith 2023-04-12 18:27:32 +01:00
parent 25d00401f1
commit 48f00e63e8
3 changed files with 43 additions and 28 deletions

View file

@ -0,0 +1,34 @@
{ pkgs, ... }:
{
imports = [
./dunst.nix
./waybar.nix
./rofi.nix
];
home.packages = with pkgs; [
swayimg
jq
socat
];
programs.swaylock.settings = {
screenshots = true;
clock = true;
indicator = true;
indicator-radius = 100;
indicator-thickness = 7;
effect-blur = "7x5";
effect-vignette = "0.5:0.5";
ring-color = "bb00cc";
key-hl-color = "00000000";
line-color = "00000088";
separator-color = "00000000";
grace = 2;
fade-in = 0.2;
};
programs.eww = {
enable = true;
package = pkgs.eww-wayland;
configDir = ./config/eww;
};
programs.rofi.package = pkgs.rofi-wayland;
}

View file

@ -10,17 +10,12 @@ in
imports = [
hyprland.homeManagerModules.default
./gtk.nix
./dunst.nix
./waybar.nix
./rofi.nix
./common-wayland.nix
];
home.packages = with pkgs; [
swayimg
hyprpaper
dolphin
jq
socat
];
wayland.windowManager.hyprland = {
enable = true;
@ -33,25 +28,4 @@ in
+ "\n"
+ builtins.readFile (./config/hypr/hyprland.conf);
};
programs.swaylock.settings = {
screenshots = true;
clock = true;
indicator = true;
indicator-radius = 100;
indicator-thickness = 7;
effect-blur = "7x5";
effect-vignette = "0.5:0.5";
ring-color = "bb00cc";
key-hl-color = "00000000";
line-color = "00000088";
separator-color = "00000000";
grace = 2;
fade-in = 0.2;
};
programs.eww = {
enable = true;
package = pkgs.eww-wayland;
configDir = ./config/eww;
};
programs.rofi.package = pkgs.rofi-wayland;
}

View file

@ -1,5 +1,12 @@
{ ... }:
{ pkgs, ... }:
{
imports = [ ./common-wayland.nix ];
home.packages = with pkgs; [
hyprpaper
dolphin
jq
socat
];
wayland.windowManager.sway = {
enable = true;
};