mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Add auto-cpufreq and open port 8080
This commit is contained in:
parent
4a8d16dd7b
commit
7f9342b0b8
3 changed files with 11 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@
|
|||
!hosts/enka/
|
||||
|
||||
!modules/
|
||||
!modules/autofreq/
|
||||
!modules/bat/
|
||||
!modules/blueman/
|
||||
!modules/boot/
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
description = "NixOS";
|
||||
extraGroups = [ "wheel" ];
|
||||
};
|
||||
|
||||
networking.firewall = enabled {
|
||||
allowedTCPPorts = [ 8080 ];
|
||||
};
|
||||
})
|
||||
|
||||
(homeConfiguration {
|
||||
|
@ -16,6 +20,7 @@
|
|||
(importModules [
|
||||
./hardware.nix
|
||||
|
||||
"autofreq"
|
||||
"bat"
|
||||
"blueman"
|
||||
"boot"
|
||||
|
|
5
modules/autofreq/default.nix
Normal file
5
modules/autofreq/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ ulib, ... }: with ulib;
|
||||
|
||||
systemConfiguration {
|
||||
services.auto-cpufreq = enabled {};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue