From b36df78a29ecde5755d961ef6ba38a5e2eb601d0 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 11 Sep 2020 18:45:46 +0200 Subject: [PATCH] Add tlp --- machines/nunotaba/configuration.nix | 1 + modules/tlp.nix | 3 +++ profiles/laptop.nix | 8 ++++++++ 3 files changed, 12 insertions(+) create mode 100644 modules/tlp.nix create mode 100644 profiles/laptop.nix diff --git a/machines/nunotaba/configuration.nix b/machines/nunotaba/configuration.nix index 040a679..b998c25 100644 --- a/machines/nunotaba/configuration.nix +++ b/machines/nunotaba/configuration.nix @@ -9,6 +9,7 @@ ../../profiles/base.nix ../../profiles/dev.nix ../../profiles/gui.nix + ../../profiles/laptop.nix ../../users/simon/base.nix ]; diff --git a/modules/tlp.nix b/modules/tlp.nix new file mode 100644 index 0000000..4522cfc --- /dev/null +++ b/modules/tlp.nix @@ -0,0 +1,3 @@ +{ + services.tlp.enable = true; +} diff --git a/profiles/laptop.nix b/profiles/laptop.nix new file mode 100644 index 0000000..dbe185b --- /dev/null +++ b/profiles/laptop.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: + +{ + imports = + [ + ../modules/tlp.nix + ]; +}