Regenerated
This commit is contained in:
@@ -1,74 +0,0 @@
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
moduleName = "hyprland";
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
# Path to hyprland assets
|
||||
assetPath = ../../../assets/hyprland/conf/hypr;
|
||||
|
||||
# Main config
|
||||
mainConfigPath = "${assetPath}/hypr.hyprland.conf";
|
||||
|
||||
enableProgram = config.enableHyprland or false;
|
||||
in
|
||||
{
|
||||
# --- Option ---
|
||||
options.enableHyprland = lib.mkEnableOption "Enable Hyprland desktop";
|
||||
|
||||
# --- ExtraFragment for aggregator ---
|
||||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
moduleName = "hyprland";
|
||||
username = config.defaultUser or "henrov";
|
||||
|
||||
# Path to hyprland assets
|
||||
assetPath = ../../../assets/hyprland/conf/hypr;
|
||||
|
||||
# Main config
|
||||
mainConfigPath = "${assetPath}/hypr.hyprland.conf";
|
||||
|
||||
enableProgram = config.enableHyprland or false;
|
||||
in
|
||||
{
|
||||
# --- Option ---
|
||||
options.enableHyprland = lib.mkEnableOption "Enable Hyprland desktop";
|
||||
|
||||
# --- ExtraFragment for aggregator ---
|
||||
homeManagerExtraUsers = lib.mkIf enableProgram {
|
||||
${username} = {
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
||||
# Minimal example setting
|
||||
settings.general."col.active_border" = lib.mkForce "0xff97cbcd 0xff89b4fa";
|
||||
};
|
||||
|
||||
# Deploy the main config file
|
||||
xdg.configFile = {
|
||||
"hypr/hyprland.conf".text = builtins.readFile mainConfigPath;
|
||||
};
|
||||
};
|
||||
};
|
||||
} = lib.mkIf enableProgram {
|
||||
${username} = {
|
||||
home.stateVersion = "26.05";
|
||||
home.username = username;
|
||||
home.homeDirectory = "/home/${username}";
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
||||
# Minimal example setting
|
||||
settings.general."col.active_border" = lib.mkForce "0xff97cbcd 0xff89b4fa";
|
||||
};
|
||||
|
||||
# Deploy the main config file
|
||||
xdg.configFile = {
|
||||
"hypr/hyprland.conf".text = builtins.readFile mainConfigPath;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user