finding hyprland.conf error
This commit is contained in:
@@ -1,11 +1,4 @@
|
|||||||
{
|
{ config, pkgs, lib, user, flakeRoot, ... }:
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
user,
|
|
||||||
flakeRoot,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
|
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
|
||||||
@@ -15,18 +8,16 @@ let
|
|||||||
});
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# NixOS: Enable Hyprland (optional)
|
# NixOS: Enable Hyprland
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Home Manager: Hyprland-specific configurations
|
# Home Manager: Hyprland-specific configurations
|
||||||
home-manager.users.${user.username} = {
|
home-manager.users.${user.username} = {
|
||||||
# Use config.home-manager.users.${user.username} instead of userConfig
|
home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11";
|
||||||
home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11"; # Default fallback
|
home.username = user.username;
|
||||||
home.username = user.username; # Use the 'user' argument
|
home.homeDirectory = config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
|
||||||
home.homeDirectory =
|
|
||||||
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
|
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -37,7 +28,14 @@ in
|
|||||||
"hypr/.keep" = {
|
"hypr/.keep" = {
|
||||||
text = "";
|
text = "";
|
||||||
};
|
};
|
||||||
}
|
} // hyprlandConfs;
|
||||||
// hyprlandConfs;
|
|
||||||
|
# Ensure Home Manager is enabled and configured
|
||||||
|
systemd.user.services.home-manager-${user.username} = {
|
||||||
|
description = "Home Manager for ${user.username}";
|
||||||
|
wantedBy = [ "default.target" ];
|
||||||
|
serviceConfig.Type = "oneshot";
|
||||||
|
serviceConfig.ExecStart = "${pkgs.home-manager}/bin/home-manager generate";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user