mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: make desktop role
This commit is contained in:
parent
19215b301b
commit
8e000d6729
1 changed files with 31 additions and 3 deletions
|
|
@ -1,4 +1,32 @@
|
|||
{ ... }: {
|
||||
# system.powerManagement.cpuFreqGovernor = "performance";
|
||||
}
|
||||
{ lib, pkgs, config, username, home-manager, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.liv.desktop;
|
||||
in {
|
||||
options.liv.desktop = {
|
||||
enable = mkEnableOption "Enable desktop";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home-manager = {
|
||||
users.${username} = {
|
||||
home.packages = with pkgs; [
|
||||
# Home packages
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
boot = {
|
||||
kernelModules = ["acpi_call"];
|
||||
extraModulePackages = with config.boot.kernelPackages;
|
||||
[
|
||||
acpi_call
|
||||
];
|
||||
};
|
||||
services = {
|
||||
thermald.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue