finding hyprland.conf error

This commit is contained in:
2026-03-15 11:58:53 +00:00
parent 5234ae63b0
commit 0328585a86
+14 -16
View File
@@ -1,11 +1,4 @@
{
config,
pkgs,
lib,
user,
flakeRoot,
...
}:
{ config, pkgs, lib, user, flakeRoot, ... }:
let
hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr";
@@ -15,18 +8,16 @@ let
});
in
{
# NixOS: Enable Hyprland (optional)
# NixOS: Enable Hyprland
programs.hyprland = {
enable = true;
};
# Home Manager: Hyprland-specific configurations
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"; # Default fallback
home.username = user.username; # Use the 'user' argument
home.homeDirectory =
config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11";
home.username = user.username;
home.homeDirectory = config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}";
wayland.windowManager.hyprland = {
enable = true;
@@ -37,7 +28,14 @@ in
"hypr/.keep" = {
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";
};
};
}