Skip to content

Commit

Permalink
feat(flake): integrate pyprland (#306)
Browse files Browse the repository at this point in the history
* docs(readme): add pyprland to upstream inputs list

* chore(flake): add inputs.pyprland

* patch(system/svc/hyprland): add hyprland pkg

* feat(home/pkgs): add wev (wayland event viewer)

* chore(flake): update inputs.dotfiles
  • Loading branch information
piyoki committed Aug 31, 2024
1 parent 7aed8ff commit e810b39
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ As the date of writing (March 2024), I've committed myself switching to NixOS on
- [home-manager](https://github.com/nix-community/home-manager) configurations as flake module.
- [sops-nix](https://github.com/Mic92/sops-nix) to decrypt in-flight secrets from remote.
- [nixpkgs-wayland](https://github.com/nix-community/nixpkgs-wayland) to fetch up-to-date wayland packages for daily usage.
- [hyprland](https://github.com/hyprwm/Hyprland) to fetch up-to-date hyprland packages for daily usage.
- [hyprland](https://github.com/hyprwm/Hyprland) to fetch up-to-date Hyprland packages for daily usage.
- [pyprland](https://github.com/hyprland-community/pyprland) to fetch up-to-date Hyprland plugins for daily usage.
- [neovim-nightly-overlay](https://github.com/nix-community/neovim-nightly-overlay) to fetch nightly neovim package for daily usage.
- [impemenance](https://github.com/nix-community/impermanence) to create tmpfs root stateless OS.
- [pre-commit-hooks](https://github.com/cachix/pre-commit-hooks.nix) to integrate pre-commit-hooks with flake.
Expand Down
187 changes: 186 additions & 1 deletion flake.lock

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

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
sops-nix.url = "github:Mic92/sops-nix";
nixpkgs-wayland = { url = "github:nix-community/nixpkgs-wayland"; inputs.nixpkgs.follows = "nixpkgs"; };
hyprland = { url = "git+https://github.com/hyprwm/Hyprland?tag=v0.42.0&submodules=1"; };
pyprland = { url = "git+https://github.com/hyprland-community/pyprland?tag=2.4.0"; };
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
impermanence.url = "github:nix-community/impermanence";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
Expand Down
1 change: 1 addition & 0 deletions home/packages/wayland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
# inputs.nixpkgs-wayland.packages.${system}.xdg-desktop-portal-wlr # xdg-desktop-portal backend for wlroots
# inputs.nixpkgs-wayland.packages.${system}.wlroots # A modular Wayland compositor library
# inputs.nixpkgs-wayland.packages.${system}.new-wayland-protocols # Wayland protocol extensions
wev # Wayland event viewer
];
}
10 changes: 8 additions & 2 deletions system/services/windowmanager/hyprland.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{ inputs, system, ... }:

# Reference:
# https://wiki.hyprland.org/Nix/Hyprland-on-NixOS/
# https://hyprland-community.github.io/pyprland/

{ inputs, system, ... }:

let
# nixpkgs-hypr = inputs.hyprland.inputs.nixpkgs.legacyPackages.${system};
pkgs-hypr = inputs.hyprland.packages.${system};
Expand All @@ -13,6 +15,10 @@ in
package = inputs.hyprland.packages.${system}.hyprland;
};

# enable pyprland, the plugin manager for hyprland
environment.systemPackages = [ inputs.pyprland.packages.${system}.pyprland ];

# enable hyprland's xdg-desktop-portal
xdg.portal = {
# hyprland has its own portal, wlr is not needed
wlr.enable = false;
Expand Down

0 comments on commit e810b39

Please sign in to comment.