2023-11-17 05:38:25 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2023-10-14 05:53:54 +00:00
|
|
|
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-10-14 05:53:54 +00:00
|
|
|
];
|
2023-11-04 10:02:11 +00:00
|
|
|
|
2023-11-17 05:38:25 +00:00
|
|
|
### Options
|
|
|
|
myFlake.nixos.boot.noLoaderMenu = lib.mkDefault true;
|
|
|
|
|
2023-10-14 05:53:54 +00:00
|
|
|
### 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 = {};
|
2023-11-09 05:09:19 +00:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
wlr.enable = true;
|
|
|
|
extraPortals = with pkgs; [xdg-desktop-portal-gtk];
|
|
|
|
};
|
2023-11-09 13:05:07 +00:00
|
|
|
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
|
|
|
|
'';
|
2023-11-04 10:14:42 +00:00
|
|
|
}
|