flake/users/guanranwang/nixos/profiles/desktop/default.nix

78 lines
1.8 KiB
Nix

{
pkgs,
lib,
...
}: {
imports = [
../core
### Flakes
../../../../../nixos/flake-modules/home-manager.nix
../../../../../nixos/flake-modules/berberman.nix
];
### Options
myFlake.nixos.boot.noLoaderMenu = lib.mkDefault true;
### home-manager
home-manager.users.guanranwang.imports = map (n: ../../../home-manager/${n}) [
"profiles/command-line/nixos/fancy-stuff.nix"
"profiles/graphical-stuff/nixos"
"profiles/media/nixos"
"modules/terms/alacritty.nix"
"modules/shell/fish.nix"
"modules/shell/bash.nix"
"modules/editor/helix.nix"
"modules/editor/neovim.nix"
"modules/editor/vscode.nix"
"modules/browser/chromium.nix"
"modules/browser/librewolf.nix"
"modules/lang/nix.nix"
"modules/lang/go.nix"
"modules/wm/sway.nix"
"modules/misc/irssi.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
'';
}