diff --git a/configuration.nix b/configuration.nix index c325031..efec79d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, inputs, ... }: { # Bootloader. @@ -60,6 +60,13 @@ services.desktopManager.plasma6.enable = true; + # Hyprland + programs.hyprland = { + enable = true; + package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; + portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; + }; + # Enable graphics acceleration and AMDVLK hardware.graphics = { enable = true; diff --git a/flake.nix b/flake.nix index aec53df..73f67f7 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,7 @@ url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + hyprland.url = "github:hyprwm/Hyprland"; }; outputs = { self, nixpkgs, nur, home-manager, ... }@inputs: { @@ -19,6 +20,7 @@ nixosConfigurations = { anzu = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; + specialArgs = { inherit inputs; }; modules = [ # Import the previous configuration.nix we used, # so the old configuration file still takes effect