Skip to content

Commit

Permalink
flake: use Hyprland flake and pin it to version 0.41.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jul 24, 2024
1 parent 77c5b99 commit 2488495
Show file tree
Hide file tree
Showing 2 changed files with 220 additions and 2 deletions.
208 changes: 208 additions & 0 deletions flake.lock

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

14 changes: 12 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
hyprland = {
url = "github:hyprwm/Hyprland/v0.41.2";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs =
{ nixpkgs, ... }:
{ nixpkgs, hyprland, ... }:
let
supportedSystems = [
"x86_64-linux"
Expand All @@ -17,7 +21,13 @@
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;

# Nixpkgs instantiated for supported system types.
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
nixpkgsFor = forAllSystems (
system:
import nixpkgs {
inherit system;
overlays = [ hyprland.overlays.default ];
}
);
in
{
checks = forAllSystems (
Expand Down

0 comments on commit 2488495

Please sign in to comment.