mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:13:55 -05:00
hyprland: moved hyprland plugins and extras into modules
This commit is contained in:
parent
2e81fafd61
commit
1e192d9f11
|
@ -1,5 +1,12 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
imports = [
|
||||
./hypridle
|
||||
./hyprlock
|
||||
./hyprpaper
|
||||
./hyprshade
|
||||
];
|
||||
|
||||
options = {
|
||||
desktopEnv.hyprland.enable =
|
||||
lib.mkEnableOption "Enables hyprland with extra apps.";
|
||||
|
@ -7,6 +14,12 @@
|
|||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.enable {
|
||||
|
||||
# Hypr* modules, plguins, and tools.
|
||||
desktopEnv.hyprland.hypridle.enable = lib.mkDefault true;
|
||||
desktopEnv.hyprland.hyprlock.enable = lib.mkDefault true;
|
||||
desktopEnv.hyprland.hyprpaper.enable = lib.mkDefault true;
|
||||
desktopEnv.hyprland.hyprshade.enable = lib.mkDefault true;
|
||||
|
||||
# Basic apps needed to run a hyprland desktop.
|
||||
guiApps.waybar.enable = lib.mkDefault true;
|
||||
guiApps.mako.enable = lib.mkDefault true;
|
||||
|
@ -19,12 +32,8 @@
|
|||
brightnessctl
|
||||
evince
|
||||
hyprcursor
|
||||
hypridle
|
||||
hyprland-protocols
|
||||
hyprlock
|
||||
hyprnome
|
||||
hyprpaper
|
||||
hyprshade
|
||||
hyprshot
|
||||
playerctl
|
||||
pyprland
|
||||
|
@ -50,23 +59,6 @@
|
|||
extraConfig = builtins.readFile ./hyprland.conf;
|
||||
};
|
||||
|
||||
xdg.configFile."hypr/hypridle.conf".source = ./hypridle.conf;
|
||||
|
||||
xdg.configFile."hypr/hyprlock.conf".source = ./hyprlock.conf;
|
||||
|
||||
xdg.configFile."hypr/hyprpaper.conf".source = ./hyprpaper.conf;
|
||||
|
||||
xdg.configFile."hypr/wallpapers/greenCity.jpg".source =
|
||||
./wallpapers/greenCity.jpg;
|
||||
xdg.configFile."hypr/wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg".source =
|
||||
./wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg;
|
||||
xdg.configFile."hypr/wallpapers/salty-justice-NOMebOREvtc-unsplash.jpg".source =
|
||||
./wallpapers/salty-justice-NOMebOREvtc-unsplash.jpg;
|
||||
|
||||
xdg.configFile."hypr/shaders/blue-light-filter.glsl".source =
|
||||
./blue-light-filter.glsl;
|
||||
xdg.configFile."hypr/hyprshade.toml".source = ./hyprshade.toml;
|
||||
|
||||
xdg.configFile."xfce4/helpers.rc".text = ''
|
||||
TerminalEmulator=alacritty
|
||||
FileManager=thunar
|
||||
|
|
17
homeManagerModules/desktopEnv/hypr/hypridle/default.nix
Normal file
17
homeManagerModules/desktopEnv/hypr/hypridle/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options = {
|
||||
desktopEnv.hyprland.hypridle.enable =
|
||||
lib.mkEnableOption "Enables hypridle.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.hypridle.enable {
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
hypridle
|
||||
];
|
||||
|
||||
xdg.configFile."hypr/hypridle.conf".source = ./hypridle.conf;
|
||||
};
|
||||
}
|
17
homeManagerModules/desktopEnv/hypr/hyprlock/default.nix
Normal file
17
homeManagerModules/desktopEnv/hypr/hyprlock/default.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options = {
|
||||
desktopEnv.hyprland.hyprlock.enable =
|
||||
lib.mkEnableOption "Enables hyprlock.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.hyprlock.enable {
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
hyprlock
|
||||
];
|
||||
|
||||
xdg.configFile."hypr/hyprlock.conf".source = ./hyprlock.conf;
|
||||
};
|
||||
}
|
24
homeManagerModules/desktopEnv/hypr/hyprpaper/default.nix
Normal file
24
homeManagerModules/desktopEnv/hypr/hyprpaper/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options = {
|
||||
desktopEnv.hyprland.hyprpaper.enable =
|
||||
lib.mkEnableOption "Enables hyprpaper and assorted wallpapers.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.hyprpaper.enable {
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
hyprpaper
|
||||
];
|
||||
|
||||
xdg.configFile."hypr/hyprpaper.conf".source = ./hyprpaper.conf;
|
||||
|
||||
xdg.configFile."hypr/wallpapers/greenCity.jpg".source =
|
||||
./wallpapers/greenCity.jpg;
|
||||
xdg.configFile."hypr/wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg".source =
|
||||
./wallpapers/jr-korpa-9XngoIpxcEo-unsplash.jpg;
|
||||
xdg.configFile."hypr/wallpapers/salty-justice-NOMebOREvtc-unsplash.jpg".source =
|
||||
./wallpapers/salty-justice-NOMebOREvtc-unsplash.jpg;
|
||||
};
|
||||
}
|
Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 4.1 MiB |
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 2.7 MiB |
Before Width: | Height: | Size: 2.4 MiB After Width: | Height: | Size: 2.4 MiB |
19
homeManagerModules/desktopEnv/hypr/hyprshade/default.nix
Normal file
19
homeManagerModules/desktopEnv/hypr/hyprshade/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
|
||||
options = {
|
||||
desktopEnv.hyprland.hyprshade.enable =
|
||||
lib.mkEnableOption "Enables hyprshade with blue light filter.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.desktopEnv.hyprland.hyprshade.enable {
|
||||
|
||||
# Packages that should be installed to the user profile.
|
||||
home.packages = with pkgs; [
|
||||
hyprshade
|
||||
];
|
||||
|
||||
xdg.configFile."hypr/shaders/blue-light-filter.glsl".source =
|
||||
./blue-light-filter.glsl;
|
||||
xdg.configFile."hypr/hyprshade.toml".source = ./hyprshade.toml;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue