diff --git a/flake.lock b/flake.lock index 226361e..b2376b9 100644 --- a/flake.lock +++ b/flake.lock @@ -18,6 +18,29 @@ "type": "github" } }, + "hyprland": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "wrappers": [ + "wrappers" + ] + }, + "locked": { + "lastModified": 1794146614, + "narHash": "sha256-LlCMCyNTP2GSK7FHqDkUzlOY+lWZ/55foC+5YlZHCbk=", + "ref": "refs/heads/main", + "rev": "2d5965ebad2f31ef101a1ad7501638feaeddc1e0", + "revCount": 2, + "type": "git", + "url": "https://git.voidarc.co.uk/adumh00man/hyprland-dendritic" + }, + "original": { + "type": "git", + "url": "https://git.voidarc.co.uk/adumh00man/hyprland-dendritic" + } + }, "import-tree": { "locked": { "lastModified": 1788467110, @@ -150,6 +173,7 @@ "root": { "inputs": { "flake-parts": "flake-parts", + "hyprland": "hyprland", "import-tree": "import-tree", "nixpkgs": "nixpkgs", "nixpkgs-unstable": "nixpkgs-unstable", diff --git a/flake.nix b/flake.nix index d9cffc3..8cb3561 100644 --- a/flake.nix +++ b/flake.nix @@ -15,6 +15,15 @@ # My Nvim config nvim.url = "git+https://git.voidarc.co.uk/voidarc/nvim"; + # Hyprland Configuration + hyprland = { + url = "git+https://git.voidarc.co.uk/adumh00man/hyprland-dendritic"; + inputs = { + nixpkgs.follows = "nixpkgs"; + wrappers.follows = "wrappers"; + }; + }; + # Nix Wrapper Modules wrappers.url = "github:nix-community/nix-wrapper-modules"; }; diff --git a/modules/attrs/desktop/default.nix b/modules/attrs/desktop/default.nix index c6f97fe..31578e5 100644 --- a/modules/attrs/desktop/default.nix +++ b/modules/attrs/desktop/default.nix @@ -7,6 +7,7 @@ modules = with self.nixosModules; [ core networking + hyprland ]; in { imports = modules; diff --git a/modules/features/hyprland/default.nix b/modules/features/hyprland/default.nix new file mode 100644 index 0000000..ab2f4bb --- /dev/null +++ b/modules/features/hyprland/default.nix @@ -0,0 +1,11 @@ +{moduleWithSystem, ...}: { + flake.nixosModules.hyprland = moduleWithSystem ({self', ...}: { + programs.hyprland = { + enable = true; + package = self'.packages.hyprland; + }; + }); + perSystem = {inputs', ...}: { + packages.hyprland = inputs'.hyprland.packages.default; + }; +}