Add tons of missing system, desktop and home modules

This commit is contained in:
Jo 2025-04-28 20:02:05 +02:00
parent 01367c4222
commit fa3bbb2f6f
15 changed files with 453 additions and 7 deletions

View file

@ -0,0 +1,24 @@
{
lib,
self,
config,
...
}: let
inherit (lib) mkEnableOption mkIf;
inherit (self) namespace;
cfg = config.${namespace}.archetypes.laptop;
in {
options.${namespace}.archetypes.laptop = {
enable = mkEnableOption "the laptop archetype.";
};
config = mkIf cfg.enable {
${namespace} = {
# Inherit from workstation archetype
archetypes.workstation.enable = true;
};
hardware.sensor.iio.enable = true; # Enable iio-sensor for automatic screen rotation and similar features.
};
}

View file

@ -16,9 +16,20 @@ in {
config = mkIf cfg.enable {
${namespace} = {
# Basic system functionality
system.grub.enable = true;
system.networking.enable = true;
system.kernel.enable = true;
system = {
networking.enable = true;
grub.enable = true;
shell.enable = true;
locale.enable = true;
fonts.enable = true;
bluetooth.enable = true;
audio.enable = true;
kernel.enable = true;
nix = {
enable = true;
use-lix = true;
};
};
# Services
services.docker.enable = true;