flake/users/guanranwang/nixos/presets/desktop.nix

54 lines
1.2 KiB
Nix

{pkgs, ...}: {
imports = [
./core.nix
### Flakes
../../../../flakes/nixos/home-manager.nix
../../../../flakes/nixos/berberman.nix
];
### home-manager
home-manager.users.guanranwang = import ../../home-manager/nixos/presets/desktop.nix;
fonts.enableDefaultPackages = false;
security.pam.services.swaylock = {};
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
};
services = {
ratbagd.enable = true;
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
'';
}