Provide config to home manager
This commit is contained in:
@@ -51,7 +51,7 @@
|
|||||||
exec ${hypr}/bin/Hyprland --config ${configFile}
|
exec ${hypr}/bin/Hyprland --config ${configFile}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
startHyprlandScript = pkgs.writeShellScript "start-hyprland" ''
|
startScript = pkgs.writeShellScript "start-hyprland" ''
|
||||||
export PATH=${runtimePath}:$PATH
|
export PATH=${runtimePath}:$PATH
|
||||||
|
|
||||||
export XDG_CONFIG_HOME=${configDir}
|
export XDG_CONFIG_HOME=${configDir}
|
||||||
@@ -60,6 +60,42 @@
|
|||||||
'';
|
'';
|
||||||
in
|
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} = {
|
apps.${system} = {
|
||||||
default = {
|
default = {
|
||||||
type = "app";
|
type = "app";
|
||||||
@@ -73,19 +109,10 @@
|
|||||||
|
|
||||||
start-hyprland = {
|
start-hyprland = {
|
||||||
type = "app";
|
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" { } ''
|
packages.${system}.default = pkgs.runCommand "hyprland-config-check" { } ''
|
||||||
${verifyScript}
|
${verifyScript}
|
||||||
touch $out
|
touch $out
|
||||||
|
|||||||
Reference in New Issue
Block a user