refactor!: restructure and document configuration
This commit is contained in:
parent
4a02e072a7
commit
f87f9995be
126 changed files with 957 additions and 590 deletions
26
modules/hyprland/nixos.nix
Normal file
26
modules/hyprland/nixos.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ pkgs, hyprland, ... }:
|
||||
|
||||
let
|
||||
hyprland-pkgs = hyprland.inputs.nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
{
|
||||
# Enable Hyprland's cachix
|
||||
nix.settings.substituters = [ "https://hyprland.cachix.org" ];
|
||||
nix.settings.trusted-public-keys = [
|
||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
];
|
||||
|
||||
# Enable Hyprland
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
|
||||
package = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
|
||||
portalPackage = hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
|
||||
# Overwrite the Mesa packages with Hyprland's for consitency
|
||||
hardware.graphics = {
|
||||
package = hyprland-pkgs.mesa.drivers;
|
||||
package32 = hyprland-pkgs.pkgsi686Linux.mesa.drivers;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue