♻️ Migrate and refactor all v1 services, Add atticd service and cleanup

This commit is contained in:
Jo 2025-05-25 19:09:33 +02:00
parent 76489651f1
commit e45cfc0fbc
24 changed files with 592 additions and 20 deletions

View file

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