updated flake.nix - moving towards simpler home-manager config
This commit is contained in:
parent
a905e2dc3d
commit
6363c7655d
4 changed files with 105 additions and 35 deletions
34
modules/core/display.nix
Normal file
34
modules/core/display.nix
Normal 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";
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue