diff options
| -rwxr-xr-x | modules/by-name/di/direnv/landrun-fish.sh | 2 | ||||
| -rw-r--r-- | modules/by-name/lf/lf/wrappers/ll.fish | 4 | ||||
| -rw-r--r-- | modules/by-name/po/power/module.nix | 29 |
3 files changed, 19 insertions, 16 deletions
diff --git a/modules/by-name/di/direnv/landrun-fish.sh b/modules/by-name/di/direnv/landrun-fish.sh index 38e2690d..908306b4 100755 --- a/modules/by-name/di/direnv/landrun-fish.sh +++ b/modules/by-name/di/direnv/landrun-fish.sh @@ -19,7 +19,9 @@ landrun \ --ro /proc/ \ --rw /dev/ \ --rw "$XDG_RUNTIME_DIR" \ + --rw "$HOME/repos/.Trash-1000/" \ --rw "$HOME/.cache" \ + --rwx "$HOME/.cache/cargo/shared-target/" \ --ro "$HOME/.local/share/nix/trusted-settings.json" \ --rw "$HOME/.local/share/nix/repl-history" \ --rw "$HOME/.local/share/ssh/known_hosts" \ diff --git a/modules/by-name/lf/lf/wrappers/ll.fish b/modules/by-name/lf/lf/wrappers/ll.fish index 2600f14b..0ee34755 100644 --- a/modules/by-name/lf/lf/wrappers/ll.fish +++ b/modules/by-name/lf/lf/wrappers/ll.fish @@ -14,7 +14,7 @@ begin test -d "$XDG_RUNTIME_DIR/ll"; or mkdir "$XDG_RUNTIME_DIR/ll" set last_directory "$XDG_RUNTIME_DIR/ll/last_directory" - set --export LL_SYSCMD_SOCKET "$(mktemp -t fish_ll_syscmd_socket)" + set --export LL_SYSCMD_SOCKET "$(mktemp -t fish_ll_syscmd_socket_XXXXXX)" begin command lf -last-dir-path="$last_directory" "$argv" @@ -31,7 +31,7 @@ begin end end rm "$LL_SYSCMD_SOCKET" - set --erase --export LL_SYSCMD_SOCKET + set --erase LL_SYSCMD_SOCKET set dir "$(cat "$last_directory")" diff --git a/modules/by-name/po/power/module.nix b/modules/by-name/po/power/module.nix index 3489853c..5a547101 100644 --- a/modules/by-name/po/power/module.nix +++ b/modules/by-name/po/power/module.nix @@ -21,22 +21,23 @@ in { config = lib.mkIf cfg.enable { # see this for reference: https://github.com/NixOS/nixpkgs/issues/211345 services = { - # conflicts with tlp - power-profiles-daemon.enable = false; - - thermald.enable = true; - - tlp = { + tuned = { enable = true; - settings = { - CPU_BOOST_ON_AC = 1; - CPU_BOOST_ON_BAT = 0; - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - SATA_LINKPWR_ON_AC = "max_performance"; - SATA_LINKPWR_ON_BAT = "min_power"; - }; }; + + # thermald.enable = true; + # + # tlp = { + # enable = true; + # settings = { + # CPU_BOOST_ON_AC = 1; + # CPU_BOOST_ON_BAT = 0; + # CPU_SCALING_GOVERNOR_ON_AC = "performance"; + # CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + # SATA_LINKPWR_ON_AC = "max_performance"; + # SATA_LINKPWR_ON_BAT = "min_power"; + # }; + # }; }; }; } |
