Files
nix-los/nixos/modules/system.nix

26 lines
580 B
Nix
Raw Normal View History

2026-04-07 02:34:03 +02:00
{ 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 = "25.11";
2026-04-07 02:34:03 +02:00
# Users
users.users.eliaskohout = {
2026-04-07 02:34:03 +02:00
isNormalUser = true;
2026-04-07 17:08:12 +02:00
extraGroups = [ "wheel" "docker" "plugdev" ];
2026-04-07 02:34:03 +02:00
shell = pkgs.zsh;
};
# Sudo
security.sudo.enable = true;
# SSH (disabled by default, enable in host config if needed)
services.openssh.enable = lib.mkDefault false;
};
}