summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/bash.nix13
-rw-r--r--modules/laptop.nix9
-rw-r--r--packages/dwlb.nix2
3 files changed, 7 insertions, 17 deletions
diff --git a/config/bash.nix b/config/bash.nix
index 506c40a..56adf63 100644
--- a/config/bash.nix
+++ b/config/bash.nix
@@ -16,15 +16,14 @@
if [ -n "$DIR" ]
then
if [ -f "$DIR/flake.nix" ]; then
- cd "$DIR" || exit
+ cd $DIR || exit
nix develop
+ fi
+ tmux new-session -d -c "$DIR" -s "$SESSION_NAME"
+ if [ -n "$TMUX" ]; then
+ tmux switch -t "$SESSION_NAME"
else
- tmux new-session -d -c "$DIR" -s "$SESSION_NAME"
- if [ -n "$TMUX" ]; then
- tmux switch -t "$SESSION_NAME"
- else
- tmux attach -t "$SESSION_NAME"
- fi
+ tmux attach -t "$SESSION_NAME"
fi
fi
}
diff --git a/modules/laptop.nix b/modules/laptop.nix
index 4dc9526..3dfdd29 100644
--- a/modules/laptop.nix
+++ b/modules/laptop.nix
@@ -9,15 +9,6 @@
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
-
- PLATFORM_PROFILE_ON_AC = "performance";
- PLATFORM_PROFILE_ON_BAT = "low-power";
-
- CPU_BOOST_ON_AC = 1;
- CPU_BOOST_ON_BAT = 0;
-
- CPU_HWP_DYN_BOOST_ON_AC = 1;
- CPU_HWP_DYN_BOOST_ON_BAT = 0;
};
};
diff --git a/packages/dwlb.nix b/packages/dwlb.nix
index 64ddb70..b02cf2c 100644
--- a/packages/dwlb.nix
+++ b/packages/dwlb.nix
@@ -21,7 +21,7 @@ stdenv.mkDerivation (finalAttrs: {
owner = "compromyse";
repo = "dwlb";
rev = "systray";
- hash = "sha256-c6iWUXPlxE994Qd44wL7LsD4QZyUcYgfK1CQSKUs/9U=";
+ hash = "sha256-SQBm40bodLAnky+T7PfWAfnCTEfWWi4V0g7p+eNDHpU=";
};
nativeBuildInputs = [