Move common wayland packages into separate file for easy re-use
This commit is contained in:
parent
25d00401f1
commit
48f00e63e8
34
nixos/home-manager/env/common-wayland.nix
vendored
Normal file
34
nixos/home-manager/env/common-wayland.nix
vendored
Normal 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;
|
||||
}
|
28
nixos/home-manager/env/hyprland.nix
vendored
28
nixos/home-manager/env/hyprland.nix
vendored
|
@ -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;
|
||||
}
|
||||
|
|
9
nixos/home-manager/env/sway.nix
vendored
9
nixos/home-manager/env/sway.nix
vendored
|
@ -1,5 +1,12 @@
|
|||
{ ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [ ./common-wayland.nix ];
|
||||
home.packages = with pkgs; [
|
||||
hyprpaper
|
||||
dolphin
|
||||
jq
|
||||
socat
|
||||
];
|
||||
wayland.windowManager.sway = {
|
||||
enable = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue