mirror of
https://github.com/Jokiller230/puzzlevision.git
synced 2025-09-10 12:50:05 +00:00
✨ Add tons of missing system, desktop and home modules
This commit is contained in:
parent
01367c4222
commit
fa3bbb2f6f
15 changed files with 453 additions and 7 deletions
24
modules/nixos/archetypes/laptop/default.nix
Normal file
24
modules/nixos/archetypes/laptop/default.nix
Normal 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.
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue