feat(modules): add server archetype

feat: WIP add "absolutesolver" system and "cyn" user *wink wink*
refactor: clean up some comments and remove empty lines
This commit is contained in:
Jo 2024-09-18 21:21:48 +02:00
parent 0c1476ce83
commit 57d067d501
10 changed files with 111 additions and 29 deletions

View file

@ -0,0 +1,33 @@
{
lib,
pkgs,
namespace,
config,
...
}: with lib; with lib.${namespace};
let
cfg = config.${namespace}.archetypes.server;
in {
options.${namespace}.archetypes.server = { enable = mkEnableOption "Enable the server archetype for your current system"; };
config = mkIf cfg.enable {
# Enable modules
puzzlevision = {
common = {
nix = {
enable = true;
use-lix = true;
};
grub.enable = true;
networking.enable = true;
kernel.enable = true;
shell.enable = true;
hardware.enable = true;
locale.enable = true;
};
};
};
# Enable SSH for remote login
services.openssh.enable = true;
}

View file

@ -12,7 +12,6 @@ in {
config = mkIf cfg.enable {
hardware.sensor.iio.enable = true; # Enable iio-sensor for automatic screen rotation and similar features.
hardware.flipperzero.enable = true; # Enable support for the flipperzero device.
};
}