added flake

This commit is contained in:
2026-11-08 14:03:34 +00:00
parent 6ef80df50d
commit 2d5965ebad
3 changed files with 95 additions and 0 deletions

33
flake.nix Normal file
View File

@@ -0,0 +1,33 @@
{
description = "Dendritic Hyprland Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
wrappers.url = "github:nix-community/nix-wrapper-modules";
};
outputs = {
self,
nixpkgs,
wrappers,
} @ inputs: let
system = "x86_64-linux";
pkgs = import nixpkgs {inherit system;};
runtimePkgs = with pkgs; [
foot
];
in {
lib.runtimePkgs.${system} = runtimePkgs;
packages.${system} = {
default = wrappers.lib.wrapPackage ({...}: {
inherit pkgs;
package = pkgs.hyprland;
runtimePkgs = runtimePkgs;
env."HYPRLAND_ROOT" = ./.;
flags."--config" = ./hyprland.lua;
});
};
};
}