1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-08 01:51:04 +01:00

wayfire: add module (#6066)

Adds a Module for the Wayfire Compositor. Also allows managing the wf-shell configuration.
This commit is contained in:
1444 2025-01-08 16:18:57 +01:00 committed by GitHub
parent 45bcdbc910
commit 456e599f91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 280 additions and 1 deletions

View file

@ -0,0 +1,10 @@
[autostart]
systemdActivation=/nix/store/00000000000000000000000000000000-dbus/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP NIXOS_OZONE_WL XCURSOR_THEME XCURSOR_SIZE && systemctl --user stop wayfire-session.target && systemctl --user start wayfire-session.target
[command]
binding_terminal=alacritty
command_terminal=alacritty
[core]
plugins=command expo cube autostart
xwayland=true

View file

@ -0,0 +1,22 @@
{ ... }: {
wayland.windowManager.wayfire = {
enable = true;
package = null;
settings = {
core.plugins = "command expo cube";
command = {
binding_terminal = "alacritty";
command_terminal = "alacritty";
};
};
};
nmt.script = ''
wayfireConfig=home-files/.config/wayfire.ini
assertFileExists "$wayfireConfig"
normalizedConfig=$(normalizeStorePaths "$wayfireConfig")
assertFileContent "$normalizedConfig" "${./configuration.ini}"
'';
}

View file

@ -0,0 +1,4 @@
{
wayfire-configuration = ./configuration.nix;
wayfire-wf-shell = ./wf-shell.nix;
}

View file

@ -0,0 +1,3 @@
[panel]
autohide=true
widgets_left=menu spacing4 launchers window-list

View file

@ -0,0 +1,25 @@
{ pkgs, ... }: {
wayland.windowManager.wayfire = {
enable = true;
package = null;
wf-shell = {
enable = true;
package = pkgs.mkStubPackage { };
settings = {
panel = {
widgets_left = "menu spacing4 launchers window-list";
autohide = true;
};
};
};
};
nmt.script = ''
wfShellConfig=home-files/.config/wf-shell.ini
assertFileExists "$wfShellConfig"
normalizedConfig=$(normalizeStorePaths "$wfShellConfig")
assertFileContent "$normalizedConfig" "${./wf-shell.ini}"
'';
}