flake/users/guanranwang/nixos/profiles/common/graphical/default.nix

66 lines
1.6 KiB
Nix

{
pkgs,
lib,
...
}: {
### 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";
### home-manager
home-manager.users.guanranwang = import ./home;
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 = {
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
'';
}