diff --git a/flake.lock b/flake.lock index 4ceb799..d216171 100644 --- a/flake.lock +++ b/flake.lock @@ -245,6 +245,50 @@ "type": "github" } }, + "hyprland": { + "inputs": { + "hyprland-protocols": "hyprland-protocols", + "nixpkgs": [ + "nixpkgs" + ], + "wlroots": "wlroots", + "xdph": "xdph" + }, + "locked": { + "lastModified": 1680439377, + "narHash": "sha256-hF/cjhEWQR3g70RnI61GQ10Wrp8h6dDtWmkoI0LZ4PE=", + "owner": "hyprwm", + "repo": "Hyprland", + "rev": "b1426cad28f250a2269012da904901e0edcef114", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "Hyprland", + "type": "github" + } + }, + "hyprland-protocols": { + "inputs": { + "nixpkgs": [ + "hyprland", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1671839510, + "narHash": "sha256-+PY1qqJfmZzzROgcIY4I7AkCwpnC+qBIYk2eFoA9RWc=", + "owner": "hyprwm", + "repo": "hyprland-protocols", + "rev": "b8f55e02a328c47ed373133c52483bbfa20a1b75", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprland-protocols", + "type": "github" + } + }, "impermanence": { "locked": { "lastModified": 1675359654, @@ -475,6 +519,7 @@ "root": { "inputs": { "home-manager": "home-manager", + "hyprland": "hyprland", "impermanence": "impermanence", "lanzaboote": "lanzaboote", "nixpkgs": "nixpkgs", @@ -535,6 +580,49 @@ "repo": "flake-utils", "type": "github" } + }, + "wlroots": { + "flake": false, + "locked": { + "host": "gitlab.freedesktop.org", + "lastModified": 1679340088, + "narHash": "sha256-/1KiYoBivDj8HC/eVK2Tr2WYkVdKJxq2Lb0tQs0qqJo=", + "owner": "wlroots", + "repo": "wlroots", + "rev": "1d64e12391a638201c679e71d4e22bb45e5faa8e", + "type": "gitlab" + }, + "original": { + "host": "gitlab.freedesktop.org", + "owner": "wlroots", + "repo": "wlroots", + "type": "gitlab" + } + }, + "xdph": { + "inputs": { + "hyprland-protocols": [ + "hyprland", + "hyprland-protocols" + ], + "nixpkgs": [ + "hyprland", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1673116118, + "narHash": "sha256-eR0yDSkR2XYMesfdRWJs25kAdXET2mbNNHu5t+KUcKA=", + "owner": "hyprwm", + "repo": "xdg-desktop-portal-hyprland", + "rev": "d479c846531fd0e1d2357c9588b8310a2b859ef2", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "xdg-desktop-portal-hyprland", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 5a6ae61..9732384 100644 --- a/flake.nix +++ b/flake.nix @@ -11,6 +11,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + hyprland = { + url = "github:hyprwm/Hyprland"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + impermanence = { url = "github:nix-community/impermanence"; }; @@ -26,7 +31,7 @@ }; }; - outputs = { self, nixpkgs, home-manager, impermanence, lanzaboote, nixvim, }@inputs: + outputs = { self, nixpkgs, home-manager, hyprland, impermanence, lanzaboote, nixvim, }@inputs: let system = "x86_64-linux"; lib = nixpkgs.lib; @@ -45,6 +50,7 @@ } home-manager.nixosModules.home-manager + hyprland.nixosModules.default impermanence.nixosModules.impermanence lanzaboote.nixosModules.lanzaboote diff --git a/home/default.nix b/home/default.nix index 01b2153..3d148cd 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,4 +1,4 @@ -{ impermanence, nixvim, pkgs, ... }: +{ hyprland, impermanence, nixvim, pkgs, ... }: let user = import ../users/user.nix; in @@ -17,6 +17,7 @@ in imports = [ impermanence.nixosModules.home-manager.impermanence nixvim.homeManagerModules.nixvim + hyprland.homeManagerModules.default ./dev.nix ./downloader.nix