Modularize nbfc configuration.
This commit is contained in:
parent
c495ecb824
commit
3bb730988d
3 changed files with 40 additions and 14 deletions
|
@ -81,7 +81,6 @@
|
|||
neovim
|
||||
mangohud
|
||||
lm_sensors
|
||||
nbfc-linux
|
||||
];
|
||||
|
||||
# Enable nixd to see nixpkgs path
|
||||
|
@ -114,18 +113,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
# Install nbfc-linux
|
||||
systemd.services.nbfc_service = {
|
||||
enable = false;
|
||||
description = "NoteBook FanControl Service";
|
||||
serviceConfig.Type = "simple";
|
||||
path = [pkgs.kmod];
|
||||
|
||||
script = "${pkgs.nbfc-linux}/bin/nbfc_service --config-file '/home/crony/.config/nbfc.json'";
|
||||
|
||||
wantedBy = ["multi-user.target"];
|
||||
};
|
||||
|
||||
# Allow for wireguard traffic
|
||||
networking.firewall = {
|
||||
# if packets are still dropped, they will show up in dmesg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue