fnas
This commit is contained in:
parent
afd8a16692
commit
6b9540a59a
3 changed files with 26 additions and 5 deletions
|
|
@ -49,7 +49,7 @@
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
# boot.kernelPackages = pkgs.linuxPackages_zen;
|
# boot.kernelPackages = pkgs.linuxPackages_zen;
|
||||||
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
|
boot.initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
|
||||||
boot.kernelModules = ["i2c-dev" "kvm-amd"];
|
boot.kernelModules = ["i2c-dev" "kvm-amd" "nct6675"];
|
||||||
boot.kernelParams = ["nvidia-drm.modeset=1"];
|
boot.kernelParams = ["nvidia-drm.modeset=1"];
|
||||||
# boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
|
# boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
|
||||||
# boot.blacklistedKernelModules = with config.boot.kernelPackages; [ k10temp ];
|
# boot.blacklistedKernelModules = with config.boot.kernelPackages; [ k10temp ];
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,6 @@ def srg [] {
|
||||||
sk --ansi -i -c 'rg --color=always --line-number "{}"'
|
sk --ansi -i -c 'rg --color=always --line-number "{}"'
|
||||||
}
|
}
|
||||||
|
|
||||||
alias quiet = sudo ectool fanduty 42
|
|
||||||
alias loud = sudo ectool autofanctrl
|
|
||||||
alias louder = sude ectool fanduty 100
|
|
||||||
|
|
||||||
alias j = jj
|
alias j = jj
|
||||||
alias ja = jj log -r 'all()'
|
alias ja = jj log -r 'all()'
|
||||||
alias jc = jj desc
|
alias jc = jj desc
|
||||||
|
|
|
||||||
|
|
@ -31,3 +31,28 @@ def "snapper clear" [] {
|
||||||
|
|
||||||
snapper delete $"($first.number)-($last.number)"
|
snapper delete $"($first.number)-($last.number)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon9/pwm2_enable"
|
||||||
|
|
||||||
|
def quiet [] {
|
||||||
|
match (hostname) {
|
||||||
|
"NOcomputer" => {sudo -- nu -c $"5 o> ($mode_path)"}
|
||||||
|
"NOlaptop" => {
|
||||||
|
sudo ectool fanduty 42
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def loud [] {
|
||||||
|
match (hostname) {
|
||||||
|
"NOcomputer" => {sudo -- nu -c $"5 o> ($mode_path)"}
|
||||||
|
"NOlaptop" => {sudo ectool autofanctrl}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def louder [] {
|
||||||
|
match (hostname) {
|
||||||
|
"NOcomputer" => {sudo -- nu -c $"0 o> ($mode_path)"}
|
||||||
|
"NOlaptop" => {sudo ectool fanduty 100}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue