Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
update: flake inputs
Browse files Browse the repository at this point in the history
update: flake inputs
  • Loading branch information
Ruixi-rebirth committed May 10, 2023
1 parent 9b72bd1 commit 45e3efd
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 63 deletions.
96 changes: 48 additions & 48 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 5 additions & 10 deletions modules/programs/wayland/waybar/hyprland_waybar.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@

nixpkgs.overlays = [
(final: prev: {
waybar =
let
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
waybarPatchFile = import ./workspace-patch.nix { inherit pkgs hyprctl; };
in
prev.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
postPatch = (oldAttrs.postPatch or "") + ''
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp'';
});
waybar = prev.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
postPatch = (oldAttrs.postPatch or "") + ''
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp'';
});
})
];

Expand Down
5 changes: 0 additions & 5 deletions scripts/disko.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,3 @@ layout=.${partition_layout#$FLAKE_ROOT/hosts/laptop}
sed -i "/imports\ =/cimports\ = [(import\ $layout\ {})]++" "$FLAKE_ROOT"/hosts/{laptop,laptop_minimal}/hardware-configuration.nix
cp -r "$FLAKE_ROOT" /mnt/etc/nixos
lsblk





0 comments on commit 45e3efd

Please sign in to comment.