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

67 lines
1.6 KiB
Nix
Raw Normal View History

2023-11-17 05:38:25 +00:00
{
pkgs,
lib,
...
}: {
### Options
2023-12-15 18:40:18 +00:00
myFlake.boot.noLoaderMenu = lib.mkDefault true;
2023-11-17 05:38:25 +00:00
2023-11-23 06:23:03 +00:00
### sops-nix
sops.secrets."wireless/wangxiaobo".path = "/var/lib/iwd/wangxiaobo.psk";
sops.secrets."wireless/OpenWrt".path = "/var/lib/iwd/OpenWrt.psk";
2023-11-23 06:23:03 +00:00
### home-manager
home-manager.users.guanranwang = import ./home;
2023-11-14 03:22:17 +00:00
2023-11-05 06:03:27 +00:00
fonts.enableDefaultPackages = false;
2023-11-05 07:24:13 +00:00
security.pam.services.swaylock = {};
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
2023-11-24 05:37:07 +00:00
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";
};
2023-11-24 05:37:07 +00:00
};
};
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
'';
}