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

71 lines
1.9 KiB
Nix
Raw Normal View History

{pkgs, ...}: {
imports = [
2023-11-04 10:02:11 +00:00
./core.nix
### Flakes
2023-10-16 08:26:06 +00:00
../../../../flakes/nixos/home-manager.nix
../../../../flakes/nixos/berberman.nix
];
2023-11-04 10:02:11 +00:00
### home-manager
2023-11-14 03:22:17 +00:00
home-manager.users.guanranwang.imports = [
../../home-manager/profiles/command-line/nixos/fancy-stuff.nix
../../home-manager/profiles/graphical-stuff/nixos
../../home-manager/profiles/media/nixos
../../home-manager/modules/terms/alacritty.nix
../../home-manager/modules/shell/fish.nix
../../home-manager/modules/shell/bash.nix
../../home-manager/modules/editor/helix.nix
../../home-manager/modules/editor/neovim.nix
../../home-manager/modules/editor/vscode.nix
../../home-manager/modules/browser/chromium.nix
../../home-manager/modules/browser/librewolf.nix
../../home-manager/modules/lang/nix.nix
../../home-manager/modules/lang/go.nix
../../home-manager/modules/wm/sway.nix
];
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];
};
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
'';
}