mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds server role
This commit is contained in:
parent
34bb962164
commit
97e9cfc11c
1 changed files with 36 additions and 0 deletions
36
roles/server.nix
Normal file
36
roles/server.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
{ lib, pkgs, config, username, home-manager, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.liv.server;
|
||||||
|
in {
|
||||||
|
options.liv.server = {
|
||||||
|
enable = mkEnableOption "Enable server";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
pkgs.kitty.terminfo
|
||||||
|
powertop
|
||||||
|
];
|
||||||
|
|
||||||
|
services = {
|
||||||
|
thermald.enable = true;
|
||||||
|
# cpupower-gui.enable = true;
|
||||||
|
# power-profiles-daemon.enable = true;
|
||||||
|
|
||||||
|
# auto-cpufreq = {
|
||||||
|
# enable = true;
|
||||||
|
# settings = {
|
||||||
|
# battery = {
|
||||||
|
# governor = "powersave";
|
||||||
|
# turbo = "auto";
|
||||||
|
# };
|
||||||
|
# charger = {
|
||||||
|
# governor = "performance";
|
||||||
|
# turbo = "auto";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue