2023-11-17 05:38:25 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
### Options
|
2023-12-15 18:40:18 +00:00
|
|
|
myFlake.boot.noLoaderMenu = lib.mkDefault true;
|
2023-11-17 05:38:25 +00:00
|
|
|
|
2023-11-23 06:23:03 +00:00
|
|
|
### sops-nix
|
2023-12-11 17:14:07 +00:00
|
|
|
sops.secrets."wireless/wangxiaobo".path = "/var/lib/iwd/wangxiaobo.psk";
|
|
|
|
sops.secrets."wireless/OpenWrt".path = "/var/lib/iwd/OpenWrt.psk";
|
2023-11-23 06:23:03 +00:00
|
|
|
|
2023-10-14 05:53:54 +00:00
|
|
|
### home-manager
|
2023-12-10 05:55:07 +00:00
|
|
|
home-manager.users.guanranwang = import ./home;
|
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-24 05:37:07 +00:00
|
|
|
config = {
|
|
|
|
common.default = [
|
|
|
|
"gtk"
|
|
|
|
];
|
|
|
|
sway.default = [
|
|
|
|
"wlr"
|
|
|
|
"gtk"
|
|
|
|
];
|
|
|
|
};
|
2023-11-09 05:09:19 +00:00
|
|
|
};
|
2023-11-09 13:05:07 +00:00
|
|
|
services = {
|
|
|
|
gvfs.enable = true;
|
|
|
|
gnome = {
|
|
|
|
sushi.enable = true;
|
|
|
|
gnome-online-accounts.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
programs = {
|
|
|
|
kdeconnect = {
|
2023-12-10 05:55:07 +00:00
|
|
|
enable = true;
|
2023-11-09 13:05:07 +00:00
|
|
|
#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
|
|
|
}
|