diff --git a/extras/dev.nix b/extras/dev.nix index 7705c8b..a959b57 100644 --- a/extras/dev.nix +++ b/extras/dev.nix @@ -1,4 +1,6 @@ {pkgs, ...}: { + services.lorri.enable = true; + services.scx.enable = true; services.scx.scheduler = "scx_lavd"; # default is "scx_rustland" diff --git a/users/tao/cargo.toml b/users/tao/cargo.toml index 36d60f7..166dbbf 100644 --- a/users/tao/cargo.toml +++ b/users/tao/cargo.toml @@ -6,7 +6,7 @@ d = "doc --no-deps --open" [build] target = "x86_64-unknown-linux-gnu" # rustc-wrapper = "${pkgs.sccache}/bin/sccache" -rustc-wrapper = "/path/to/sccache" +# rustc-wrapper = "/path/to/sccache" rustflags = ["-Zthreads=0"] [unstable] diff --git a/users/tao/nushell/extras/stuff.nu b/users/tao/nushell/extras/stuff.nu index 1abd40e..aedc918 100644 --- a/users/tao/nushell/extras/stuff.nu +++ b/users/tao/nushell/extras/stuff.nu @@ -43,7 +43,7 @@ def "snapper clear" [] { def quiet [] { match (hostname) { "NOcomputer" => { - const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable" + let mode_path: path = (glob "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable" | get 0) sudo -- nu -c $"5 o> ($mode_path)" } "NOlaptop" => { @@ -55,7 +55,7 @@ def quiet [] { def loud [] { match (hostname) { "NOcomputer" => { - const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable" + let mode_path: path = (glob "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable" | get 0) sudo -- nu -c $"5 o> ($mode_path)" } "NOlaptop" => { @@ -67,7 +67,7 @@ def loud [] { def louder [] { match (hostname) { "NOcomputer" => { - const mode_path: path = "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable" + let mode_path: path = (glob "/sys/devices/platform/nct6775.656/hwmon/hwmon*/pwm2_enable" | get 0) sudo -- nu -c $"0 o> ($mode_path)" } "NOlaptop" => {