mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 06:50:14 +01:00
50 lines
913 B
Nix
50 lines
913 B
Nix
{
|
|
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 {
|
|
environment.systemPackages = with pkgs; [ cifs-utils ];
|
|
home-manager = {
|
|
users.${username} = {
|
|
home.packages = with pkgs; [
|
|
# Home packages
|
|
swaylock
|
|
];
|
|
};
|
|
};
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
boot = {
|
|
kernelModules = [ "acpi_call" ];
|
|
extraModulePackages = with config.boot.kernelPackages; [
|
|
acpi_call
|
|
];
|
|
};
|
|
services = {
|
|
thermald.enable = true;
|
|
hardware.openrgb = {
|
|
enable = true;
|
|
package = pkgs.openrgb-with-all-plugins;
|
|
motherboard = "amd";
|
|
server = {
|
|
port = 6742;
|
|
# autoStart = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|