syncthing

This commit is contained in:
Tao Tien 2024-06-10 17:41:44 -07:00
parent d69cc4e400
commit 0a0abf8339
3 changed files with 25 additions and 15 deletions

View file

@ -35,15 +35,15 @@
environment.etc = { environment.etc = {
"libinput/local-overrides.quirks".text = " "libinput/local-overrides.quirks".text = "
# MatchUdevType=touchpad # MatchUdevType=touchpad
# MatchDMIModalias=dmi:*svnFramework:pnLaptop* # MatchDMIModalias=dmi:*svnFramework:pnLaptop*
# AttrEventCode=-BTN_RIGHT # AttrEventCode=-BTN_RIGHT
[Framework Laptop 16 Keyboard Module] [Framework Laptop 16 Keyboard Module]
MatchName=Framework Laptop 16 Keyboard Module* MatchName=Framework Laptop 16 Keyboard Module*
# MatchUdevType=keyboard # MatchUdevType=keyboard
# MatchDMIModalias=dmi:*svnFramework:pnLaptop16* # MatchDMIModalias=dmi:*svnFramework:pnLaptop16*
AttrKeyboardIntegration=internal"; AttrKeyboardIntegration=internal";
}; };
nix.buildMachines = [ nix.buildMachines = [
@ -81,6 +81,9 @@
"amdgpu.abmlevel=1" "amdgpu.abmlevel=1"
]; ];
boot.kernelModules = ["kvm-amd"]; boot.kernelModules = ["kvm-amd"];
# boot.extraModulePackages = with config.boot.kernelPackages; [
# framework-laptop-kmod
# ];
powerManagement.cpuFreqGovernor = "powersave"; powerManagement.cpuFreqGovernor = "powersave";
systemd.sleep.extraConfig = "HibernateDelaySec=180m"; systemd.sleep.extraConfig = "HibernateDelaySec=180m";

View file

@ -79,6 +79,7 @@
configDir = "/home/tao/.config/syncthing"; configDir = "/home/tao/.config/syncthing";
overrideDevices = false; overrideDevices = false;
overrideFolders = false; overrideFolders = false;
openDefaultPorts = true;
settings = { settings = {
devices = { devices = {
# we do a lil anti-patterns https://github.com/ryantm/agenix?tab=readme-ov-file#builtinsreadfile-anti-pattern # we do a lil anti-patterns https://github.com/ryantm/agenix?tab=readme-ov-file#builtinsreadfile-anti-pattern
@ -98,10 +99,10 @@
# path = "/home/tao/documents"; # path = "/home/tao/documents";
# devices = devs; # devices = devs;
# }; # };
# "pictures" = { "pictures" = {
# path = "/home/tao/pictures"; path = "/home/tao/pictures";
# devices = devs; devices = devs;
# }; };
"projects" = { "projects" = {
path = "/home/tao/projects"; path = "/home/tao/projects";
devices = devs; devices = devs;
@ -114,6 +115,10 @@
path = "/home/tao/sync"; path = "/home/tao/sync";
devices = devs; devices = devs;
}; };
"work" = {
path = "/home/tao/work";
devices = devs;
};
}; };
}; };
}; };

View file

@ -49,10 +49,12 @@ def nr [package] {
def rebuild [subcommand] { def rebuild [subcommand] {
sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose sudo nice -n19 nixos-rebuild $subcommand --flake /home/tao/projects/NOflake/ --impure --verbose
rm -r ~/.config/helix/runtime/grammars/
hx --grammar fetch; hx --grammar build
rustup update
} }
# def post-rebuild [] {
# # rm -r ~/.config/helix/runtime/grammars/
# # hx --grammar fetch; hx --grammar build
# # rustup update
# }
def bump [] { def bump [] {
cd /home/tao/projects/NOflake/ cd /home/tao/projects/NOflake/
jj new -m "bump" jj new -m "bump"