diff --git a/flake.lock b/flake.lock index 45ed273..adb43f9 100644 --- a/flake.lock +++ b/flake.lock @@ -159,6 +159,27 @@ "type": "github" } }, + "hyprland-protocols_2": { + "inputs": { + "nixpkgs": [ + "xdph", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1681065697, + "narHash": "sha256-QPzwwlGKX95tl6ZEshboZbEwwAXww6lNLdVYd6T9Mrc=", + "owner": "hyprwm", + "repo": "hyprland-protocols", + "rev": "4d29e48433270a2af06b8bc711ca1fe5109746cd", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprland-protocols", + "type": "github" + } + }, "lowdown-src": { "flake": false, "locked": { @@ -327,6 +348,22 @@ "type": "github" } }, + "nixpkgs_5": { + "locked": { + "lastModified": 1680945546, + "narHash": "sha256-8FuaH5t/aVi/pR1XxnF0qi4WwMYC+YxlfdsA0V+TEuQ=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d9f759f2ea8d265d974a6e1259bd510ac5844c5d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "pre-commit-hooks": { "inputs": { "flake-compat": [ @@ -363,7 +400,8 @@ "hyprland": "hyprland", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs_3", - "sops-nix": "sops-nix" + "sops-nix": "sops-nix", + "xdph": "xdph_2" } }, "sops-nix": { @@ -442,6 +480,25 @@ "repo": "xdg-desktop-portal-hyprland", "type": "github" } + }, + "xdph_2": { + "inputs": { + "hyprland-protocols": "hyprland-protocols_2", + "nixpkgs": "nixpkgs_5" + }, + "locked": { + "lastModified": 1681489757, + "narHash": "sha256-FxgZ2jBU+wmbjIv7F4N5Jx6h+LD4aQ+bXHrzrbxapJk=", + "owner": "hyprwm", + "repo": "xdg-desktop-portal-hyprland", + "rev": "bf035bf3d5b56fd3da9d11966ad0b3c57f852d78", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "xdg-desktop-portal-hyprland", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index f2bd16e..65d6419 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,7 @@ sops-nix.url = github:Mic92/sops-nix; devenv.url = "github:cachix/devenv/latest"; hyprland.url = "github:hyprwm/Hyprland"; + xdph.url = "github:hyprwm/xdg-desktop-portal-hyprland"; home-manager = { url = "github:nix-community/home-manager/release-22.11"; inputs.nixpkgs.follows = "nixpkgs"; diff --git a/modules/home-manager/eww.nix b/modules/home-manager/eww.nix new file mode 100644 index 0000000..0df93ac --- /dev/null +++ b/modules/home-manager/eww.nix @@ -0,0 +1,6 @@ +{ + programs.eww = { + enable=true; + configDir=../../dotfiles/eww; + }; +} \ No newline at end of file diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index ca11341..e7990b2 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -4,6 +4,7 @@ enable = true; extraConfig = '' bind = SUPER, Return, exec, alacritty + bind = CONTROL_SHIFT, W, exec, firefox ''; }; }