From 098d5ae2025a750eaa980894fa91f248ef3ade36 Mon Sep 17 00:00:00 2001 From: notohh Date: Sat, 17 Dec 2022 18:19:53 -0500 Subject: [PATCH] swayidle, osu stuff --- configuration.nix | 13 ++++++++++++- modules/hyprland/default.nix | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index b6009ae..6e56dd1 100644 --- a/configuration.nix +++ b/configuration.nix @@ -23,6 +23,8 @@ networking.networkmanager.enable = true; networking.nameservers = [ "192.168.1.45" ]; + + hardware.opentabletdriver.enable = true; # pihole environment.etc = { @@ -82,12 +84,17 @@ #polkit security.polkit.enable = true; + security.pam.services.swaylock = { + text = '' + auth include login + ''; + }; #users users.users.notoh = { isNormalUser = true; description = "notoh"; - extraGroups = [ "networkmanager" "wheel" "disk" "video" "input" ]; + extraGroups = [ "networkmanager" "wheel" "disk" "video" ]; packages = with pkgs; [ # essential firefox @@ -117,6 +124,8 @@ virt-manager playerctl drawio + imv + opentabletdriver # entertainment ani-cli @@ -127,6 +136,7 @@ wine lutris bottles + osu-lazer # theming catppuccin-gtk @@ -143,6 +153,7 @@ environment.systemPackages = with pkgs; [ wget git + gh alacritty stow starship diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix index 230377e..f970681 100644 --- a/modules/hyprland/default.nix +++ b/modules/hyprland/default.nix @@ -46,6 +46,8 @@ in wlogout wlr-randr rofi-wayland + swayidle + swaylock-effects ]; services.dbus.enable = true; @@ -67,6 +69,7 @@ in __GL_VRR_ALLOWED = "0"; WLR_DRM_NO_ATOMIC = "1"; __GLX_VENDOR_LIBRARY_NAME = "nvidia"; + SDL_VIDEODRIVER= "wayland"; # Will break SDDM if running X11 QT_QPA_PLATFORM = "wayland";