added flake
This commit is contained in:
33
flake.nix
Normal file
33
flake.nix
Normal 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;
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user