Provide config to home manager

This commit is contained in:
Nina Chlóe Kassandra Reiß
2026-07-26 14:55:13 +02:00
parent 9aba490647
commit 60401366e6
+38 -11
View File
@@ -51,7 +51,7 @@
exec ${hypr}/bin/Hyprland --config ${configFile}
'';
startHyprlandScript = pkgs.writeShellScript "start-hyprland" ''
startScript = pkgs.writeShellScript "start-hyprland" ''
export PATH=${runtimePath}:$PATH
export XDG_CONFIG_HOME=${configDir}
@@ -60,6 +60,42 @@
'';
in
{
homeManagerModules.default =
{ pkgs, ... }:
{
home.packages = with pkgs; [
wofi
grim
swaynotificationcenter
swaylock
hyprpaper
lxsession
hyprshot
wayvnc
pamixer
pavucontrol
brightnessctl
python313Packages.requests
networkmanagerapplet
];
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
configType = "hyprlang";
extraConfig = "";
};
programs.waybar.enable = true;
xdg.configFile."hypr" = {
source = configDir;
recursive = true;
};
};
apps.${system} = {
default = {
type = "app";
@@ -73,19 +109,10 @@
start-hyprland = {
type = "app";
program = "${startHyprlandScript}";
program = "${startScript}";
};
};
homeManagerModules.default = {
xdg.configFile."hypr" = {
source = self;
recursive = true;
};
};
configDir = self;
packages.${system}.default = pkgs.runCommand "hyprland-config-check" { } ''
${verifyScript}
touch $out