Compare commits
No commits in common. "6866f72031c381c0aff46b3ba01d3021133a1377" and "9ce4b859c790dd446e05b53080121c9637d29a6e" have entirely different histories.
6866f72031
...
9ce4b859c7
8 changed files with 18 additions and 43 deletions
|
@ -99,6 +99,7 @@ in
|
|||
htop
|
||||
xdg-utils
|
||||
moreutils
|
||||
insomnia
|
||||
mumble
|
||||
inkscape
|
||||
guvcview
|
||||
|
|
|
@ -76,9 +76,6 @@
|
|||
|
||||
# indentation lines
|
||||
indent-blankline-nvim
|
||||
|
||||
# Add/change surrounding characters
|
||||
nvim-surround
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
|
@ -180,7 +177,6 @@
|
|||
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||
|
||||
lua << EOF
|
||||
require("nvim-surround").setup({})
|
||||
require("ibl").setup{
|
||||
indent = { char = "▏" };
|
||||
}
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
systemd.timers."batterylight" = {
|
||||
wantedBy = [ "timers.target" ];
|
||||
timerConfig = {
|
||||
OnBootSec = "5m";
|
||||
OnUnitActiveSec = "5m";
|
||||
Unit = "batterylight.service";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."batterylight" = {
|
||||
script = ''
|
||||
STATUS=`cat /sys/bus/acpi/drivers/battery/PNP0C0A:00/power_supply/BAT1/status`
|
||||
PERCENT=`cat /sys/bus/acpi/drivers/battery/PNP0C0A:00/power_supply/BAT1/capacity`
|
||||
if [[ $STATUS == "Discharging" && $PERCENT -lt 10 ]]; then
|
||||
for i in `seq 0 3`; do
|
||||
${pkgs.framework-tool}/bin/framework_tool --kblight 0
|
||||
sleep 0.2
|
||||
${pkgs.framework-tool}/bin/framework_tool --kblight 100
|
||||
sleep 0.2
|
||||
${pkgs.framework-tool}/bin/framework_tool --kblight 0
|
||||
sleep 0.2
|
||||
done
|
||||
fi
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
User = "root";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -6,7 +6,6 @@
|
|||
./hardware-configuration.nix
|
||||
../../roles/all.nix
|
||||
../../roles/laptop.nix
|
||||
./batterylight.nix
|
||||
|
||||
# import hardware specific settings
|
||||
<nixos-hardware/framework/13-inch/7040-amd>
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
enableDefaultPackages = true;
|
||||
fontDir.enable = true;
|
||||
packages = with pkgs; [
|
||||
nerdfonts
|
||||
dejavu_fonts
|
||||
fira-code
|
||||
];
|
||||
|
|
|
@ -1,6 +1,16 @@
|
|||
let
|
||||
unstable = import <nixos-unstable> { };
|
||||
module = fetchTarball {
|
||||
name = "source";
|
||||
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.92.0.tar.gz";
|
||||
sha256 = "sha256-YMLrcBpf0TR5r/eaqm8lxzFPap2TxCor0ZGcK3a7+b8=";
|
||||
};
|
||||
lixSrc = fetchTarball {
|
||||
name = "source";
|
||||
url = "https://git.lix.systems/lix-project/lix/archive/2.92.0.tar.gz";
|
||||
sha256 = "sha256-CCKIAE84dzkrnlxJCKFyffAxP3yfsOAbdvydUGqq24g=";
|
||||
};
|
||||
in
|
||||
{
|
||||
nix.package = unstable.lix;
|
||||
}
|
||||
# This is the core of the code you need; it is an exercise to the
|
||||
# reader to write the sources in a nicer way, or by using npins or
|
||||
# similar pinning tools.
|
||||
import "${module}/module.nix" { lix = lixSrc; }
|
||||
|
|
2
overlay
2
overlay
|
@ -1 +1 @@
|
|||
Subproject commit 7fc544758f1004ca7e193acc4a8d0ee784e585a9
|
||||
Subproject commit 62209bcff29f6d2d1a643870b643d6c9d2577d5f
|
2
secrets
2
secrets
|
@ -1 +1 @@
|
|||
Subproject commit 0073a1ebe983e942b7a9513ef33ad29c6ac8d6ac
|
||||
Subproject commit b5be7037c16f25899be906029de9dc9cb6f79ff8
|
Loading…
Add table
Reference in a new issue