nix: use module packages instead of overlay
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
435887f016
commit
2be4c7cfbd
2 changed files with 4 additions and 2 deletions
|
@ -11,6 +11,8 @@ in {
|
|||
|
||||
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
||||
# https://github.com/WillPower3309/swayfx
|
||||
programs.sway.package = pkgs.swayfx;
|
||||
|
||||
wayland.windowManager.sway = {
|
||||
# BUG: DRM build failure
|
||||
# https://github.com/nix-community/home-manager/issues/5379
|
||||
|
@ -19,7 +21,7 @@ in {
|
|||
# Polyfill home-manager wrappers
|
||||
# https://github.com/nix-community/home-manager/blob/master/modules/services/window-managers/i3-sway/sway.nix#L334
|
||||
package = with config.home-manager.users.${config.custom.username}.wayland.windowManager.sway;
|
||||
pkgs.sway.override {
|
||||
config.programs.sway.package.override {
|
||||
extraSessionCommands = extraSessionCommands;
|
||||
extraOptions = extraOptions;
|
||||
withBaseWrapper = wrapperFeatures.base;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}:
|
||||
with lib; let
|
||||
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
||||
hyprctl = "${config.programs.hyprland.package}/bin/hyprctl";
|
||||
onlyoffice-desktopeditors = "${pkgs.onlyoffice-bin}/bin/onlyoffice-desktopeditors --system-title-bar --xdg-desktop-portal";
|
||||
|
||||
cfg = config.custom.programs.onlyoffice;
|
||||
|
|
Loading…
Add table
Reference in a new issue