{ pkgs, lib, ... }: { ### home-manager home-manager.users.guanranwang = import ./home; # plymouth #boot.plymouth.enable = true; # xserver services.xserver = { enable = true; excludePackages = with pkgs; [xterm]; displayManager.startx.enable = true; }; # gnome keyring programs.seahorse.enable = true; # polkit security.polkit.enable = true; environment.systemPackages = with pkgs; [polkit_gnome]; systemd.user.services.polkit-gnome-authentication-agent-1 = { description = "polkit-gnome-authentication-agent-1"; wantedBy = ["graphical-session.target"]; wants = ["graphical-session.target"]; after = ["graphical-session.target"]; serviceConfig = { Type = "simple"; ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; Restart = "on-failure"; RestartSec = 1; TimeoutStopSec = 10; }; }; ### Options myFlake.boot.noLoaderMenu = lib.mkDefault true; ### sops-nix sops.secrets."wireless/wangxiaobo".path = "/var/lib/iwd/wangxiaobo.psk"; sops.secrets."wireless/OpenWrt".path = "/var/lib/iwd/OpenWrt.psk"; fonts.enableDefaultPackages = false; security.pam.services.swaylock = {}; xdg.portal = { enable = true; wlr.enable = true; extraPortals = with pkgs; [xdg-desktop-portal-gtk]; config = { # from Arch Linux # https://gitlab.archlinux.org/archlinux/packaging/packages/sway/-/blob/main/sway-portals.conf sway = { default = "gtk"; "org.freedesktop.impl.portal.ScreenCast" = "wlr"; "org.freedesktop.impl.portal.Screenshot" = "wlr"; }; }; }; services = { gvfs.enable = true; gnome = { gnome-keyring.enable = true; sushi.enable = true; gnome-online-accounts.enable = true; }; }; programs = { kdeconnect = { enable = true; #package = pkgs.gnomeExtensions.gsconnect; package = pkgs.valent; }; }; services.xserver.libinput = { touchpad = { accelProfile = "flat"; naturalScrolling = true; middleEmulation = false; }; mouse = { accelProfile = "flat"; naturalScrolling = true; middleEmulation = false; }; }; ### Removes debounce time # https://www.reddit.com/r/linux_gaming/comments/ku6gth environment.etc."libinput/local-overrides.quirks".text = '' [Never Debounce] MatchUdevType=mouse ModelBouncingKeys=1 ''; }