package updates nd removed nbfc-mono

This commit is contained in:
2021-09-21 19:45:47 +05:30
parent 677953529c
commit 21212a5cf4
5 changed files with 10 additions and 29 deletions

View File

@@ -222,7 +222,7 @@ setSupportedWithFullscreen = withDisplay $ \dpy -> do
--}}} --}}}
main = do xmproc <- spawnPipe ("xmobar " ++ myXmobarrc) main = do xmproc <- spawnPipe ("xmobar " ++ myXmobarrc)
xmonad $ docks $ ewmh def xmonad $ docks $ fullscreenFix $ ewmh def
{ borderWidth = myBorderWidth { borderWidth = myBorderWidth
, manageHook = manageDocks <+> myManageHook , manageHook = manageDocks <+> myManageHook
, handleEventHook = handleEventHook def <+> fullscreenEventHook , handleEventHook = handleEventHook def <+> fullscreenEventHook

View File

@@ -87,7 +87,10 @@ in
dosbox dosbox
authy authy
unstable.premid unstable.premid
master.tauon taa
(master.tauon.overrideAttrs (oa: {
pythonPath = oa.pythonPath ++ [ unstable.python39Packages.pypresence ];
}))
nbfc-linux nbfc-linux
]; ];

View File

@@ -45,12 +45,15 @@
swapDevices = [ {device = "/dev/nvme0n1p7";} ]; swapDevices = [ {device = "/dev/nvme0n1p7";} ];
zramSwap = { zramSwap = {
enable = true; enable = true;
algorithm = "zstd"; algorithm = "lz4";
memoryPercent = 50; memoryPercent = 30;
priority = -1; priority = -1;
}; };
powerManagement = { powerManagement = {
enable = true; enable = true;
cpuFreqGovernor = "powersave"; cpuFreqGovernor = "powersave";
}; };
hardware = {
bluetooth.enable = true;
};
} }

View File

@@ -1,17 +1,6 @@
{lib, config, pkgs, ... }: {lib, config, pkgs, ... }:
{ {
systemd.services.nbfc = {
description = "Notebook Fancontrol";
wantedBy = lib.mkForce [];
serviceConfig = {
Type = "forking";
Restart = "on-failure";
ExecStart = "${pkgs.mono}/bin/mono-service -l:/run/nbfc.pid -m:NbfcService /opt/nbfc/NbfcService.exe";
ExecStop = "kill -SIGTERM $(cat /run/nbfc.pid)";
PIDFile = "/run/nbfc.pid";
};
};
services = { services = {
tor.enable = true; tor.enable = true;
logmein-hamachi.enable = true; logmein-hamachi.enable = true;

View File

@@ -1,14 +0,0 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p mono
#Script to control fans via nbfc in /opt/nbfc
if [[ $1 = "a" ]]; then
mono /opt/nbfc/nbfc.exe set -f 0 -a
else
mono /opt/nbfc/nbfc.exe set -f 0 -s $1
fi
if [[ $2 = "a" ]]; then
mono /opt/nbfc/nbfc.exe set -f 1 -a
else
mono /opt/nbfc/nbfc.exe set -f 1 -s $2
fi