updated flake.nix - moving towards simpler home-manager config

This commit is contained in:
Serenity-F 2024-04-04 23:04:35 +10:00
parent a905e2dc3d
commit 6363c7655d
4 changed files with 105 additions and 35 deletions

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

@ -0,0 +1,34 @@
{ inputs, pkgs, username, ... }:
{
programs.hyprland.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;
xkb.layout = "us";
displayManager.autoLogin = {
enable = true;
user = "${USERNAME}";
};
libinput = {
enable = true;
# mouse = {
# accelProfile = "flat";
# };
};
};
# apparently prevents getting stuck at shutdown
systemd.extraConfig = "DefaultTimeoutStopSec=10s";
}