From 7f9342b0b8861d364a9a7a7427f99ab46a158bd6 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 22 Dec 2023 11:45:28 +0300 Subject: [PATCH] Add auto-cpufreq and open port 8080 --- .gitignore | 1 + hosts/enka/default.nix | 5 +++++ modules/autofreq/default.nix | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 modules/autofreq/default.nix diff --git a/.gitignore b/.gitignore index feaf675..c3de0b4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ !hosts/enka/ !modules/ +!modules/autofreq/ !modules/bat/ !modules/blueman/ !modules/boot/ diff --git a/hosts/enka/default.nix b/hosts/enka/default.nix index 675c26d..3c70751 100644 --- a/hosts/enka/default.nix +++ b/hosts/enka/default.nix @@ -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" diff --git a/modules/autofreq/default.nix b/modules/autofreq/default.nix new file mode 100644 index 0000000..91a3fdc --- /dev/null +++ b/modules/autofreq/default.nix @@ -0,0 +1,5 @@ +{ ulib, ... }: with ulib; + +systemConfiguration { + services.auto-cpufreq = enabled {}; +}