added the most minimal of hyprland displays to get this flake to evaluate

This commit is contained in:
Serenity-F 2024-04-05 19:10:38 +10:00 • committed by Serenity
parent e5c62db20f
commit 40d1bb4119
2 changed files with 46 additions and 2 deletions

View file

@ -3,6 +3,7 @@
imports = [
./services.nix
./display.nix
./user.nix
./packages
];
@ -18,8 +19,6 @@
sudo.execWheelOnly = true;
};
xdg.portal.enable = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave

45
modules/core/display.nix Normal file
View file

@ -0,0 +1,45 @@
{ inputs, pkgs, username, ... }:
{
programs.hyprland = {
enable = true;
xwayland.enable = true;
};
xdg.portal = {
enable = true;
wlr.enable = true;
xdgOpenUsePortal = true;
extraPortals = [
pkgs.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
};
services.xserver = {
enable = true;
layout = "us"; # what is the difference #
xkbVariant = ""; # between
xkb.layout = "us"; # these 2 lolwut #
displayManager.autoLogin = {
enable = true;
user = "serenity";
};
libinput = {
enable = true;
mouse = {
accelProfile = "flat";
};
};
};
# apparently prevents getting stuck at shutdown
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
# set up hardware video acceleration
# https://nixos.wiki/wiki/Accelerated_Video_Playback
system.stateVersion = "23.11";
}