diff --git a/flake-parts/home-manager/users.nix b/flake-parts/home-manager/users.nix index 22cf179..01f39d5 100644 --- a/flake-parts/home-manager/users.nix +++ b/flake-parts/home-manager/users.nix @@ -31,6 +31,7 @@ imports = [ self.homeManagerModules.user-willem self.homeManagerModules.linux + inputs.hyprland.homeManagerModules.default ]; programs.emacs.enableOrgTex = false; diff --git a/flake-parts/nixos/hosts.nix b/flake-parts/nixos/hosts.nix index f16ed00..9e08904 100644 --- a/flake-parts/nixos/hosts.nix +++ b/flake-parts/nixos/hosts.nix @@ -40,11 +40,12 @@ nixpkgs.config.allowUnfree = true; }; - nixosConfigurations.winbox = inputs.nixpkgs.lib.nixosSystem { + nixosConfigurations.nixbox = inputs.nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ self.nixosModules.base self.nixosModules.willem-home + self.nixosModules.hyprland ../../nixos/hosts/nixbox.nix ]; diff --git a/home-manager/profiles/willem/linux/hyprland.conf b/home-manager/profiles/willem/linux/hyprland.conf new file mode 100644 index 0000000..5b86e0c --- /dev/null +++ b/home-manager/profiles/willem/linux/hyprland.conf @@ -0,0 +1,2 @@ +$mainMod = SUPER +bind = $mainMod, Q, exec, kitty \ No newline at end of file diff --git a/home-manager/profiles/willem/linux/hyprland.nix b/home-manager/profiles/willem/linux/hyprland.nix new file mode 100644 index 0000000..3f399da --- /dev/null +++ b/home-manager/profiles/willem/linux/hyprland.nix @@ -0,0 +1,38 @@ +{ + config, + pkgs, + lib, + ... +}: { + home.packages = with pkgs; [ + alacritty + discord + firefox + lxappearance + pipewire + polkit-kde-agent + qt6.qtwayland + qt6ct + xdg-desktop-portal-hyprland + xdg-desktop-portal + ]; + + gtk = { + enable = true; + theme = { + name = "FlatColor"; + }; + }; + + wayland.windowManager.hyprland.enable = true; + services.mako.enable = true; + + wayland.windowManager.hyprland.extraConfig = '' + bind = SUPER, SPACE, exec, alacritty + + input { + kb_layout=us + kb_variant=colemak + } + ''; +} diff --git a/nixos/modules/hyprland.nix b/nixos/modules/hyprland.nix new file mode 100644 index 0000000..e2e42c4 --- /dev/null +++ b/nixos/modules/hyprland.nix @@ -0,0 +1,12 @@ +{ + inputs, + pkgs, + ... +}: { + programs.hyprland.enable = true; + programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland; + nix.settings = { + substituters = ["https://hyprland.cachix.org"]; + trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="]; + }; +} diff --git a/nixos/profiles/linux/hyprland.nix b/nixos/profiles/linux/hyprland.nix new file mode 100644 index 0000000..e2e42c4 --- /dev/null +++ b/nixos/profiles/linux/hyprland.nix @@ -0,0 +1,12 @@ +{ + inputs, + pkgs, + ... +}: { + programs.hyprland.enable = true; + programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland; + nix.settings = { + substituters = ["https://hyprland.cachix.org"]; + trusted-public-keys = ["hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="]; + }; +}