Moved profiles to dedicated directory

This commit is contained in:
Jan-Bulthuis committed 2025-05-29 12:16:38 +02:00
1 parent cdffa07675
commit 9a97168950
8 files changed
+4 -1

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.modules.profiles.laptop;
in
{
options.modules.profiles.laptop = {
enable = mkEnableOption "laptop profile";
};
config = mkIf cfg.enable {
# Setup modules
modules = {
profiles.desktop.enable = mkDefault true;
bluetooth.enable = mkDefault true;
power-saving.enable = mkDefault true;
};
# Add packages
environment.systemPackages = with pkgs; [
brightnessctl
];
};
}