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

79 lines
1.8 KiB
Nix
Raw Normal View History

2023-11-17 05:38:25 +00:00
{
pkgs,
lib,
...
}: {
imports = [
2023-11-17 05:38:25 +00:00
../core
2023-11-04 10:02:11 +00:00
### Flakes
2023-11-17 05:38:25 +00:00
../../../../../nixos/flake-modules/home-manager.nix
../../../../../nixos/flake-modules/berberman.nix
];
2023-11-04 10:02:11 +00:00
2023-11-17 05:38:25 +00:00
### Options
myFlake.nixos.boot.noLoaderMenu = lib.mkDefault true;
### home-manager
2023-11-17 05:38:25 +00:00
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"
2023-11-18 02:57:42 +00:00
"modules/misc/irssi.nix"
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];
};
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
'';
}