syncthing
This commit is contained in:
parent
d69cc4e400
commit
0a0abf8339
3 changed files with 25 additions and 15 deletions
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue