init by ai

This commit is contained in:
2026-04-07 02:34:03 +02:00
commit 0cec50d607
23 changed files with 2803 additions and 0 deletions

25
nixos/modules/system.nix Normal file
View File

@@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
{
options.custom.system = {
enable = lib.mkEnableOption "Custom system module" // { default = true; };
};
config = lib.mkIf config.custom.system.enable {
# System-wide settings
system.stateVersion = "24.11";
# Users
users.users.youruser = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
shell = pkgs.zsh;
};
# Sudo
security.sudo.enable = true;
# SSH (disabled by default, enable in host config if needed)
services.openssh.enable = lib.mkDefault false;
};
}