> NixOS Configuration
Configure NixOS systems declaratively. Services, packages, networking, and users.
fetch
$
curl "https://skillshub.wtf/skillshub-team/catalog-batch5/nixos-config?format=md"SKILL.md•NixOS Configuration
NixOS Configuration
/etc/nixos/configuration.nix
{ config, pkgs, ... }: {
system.stateVersion = "24.05";
networking.hostName = "myserver";
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
users.users.admin = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" ];
openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAA..." ];
};
environment.systemPackages = with pkgs; [ vim git htop docker-compose ];
services.openssh.enable = true;
services.nginx = {
enable = true;
virtualHosts."myapp.com" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:3000";
};
};
virtualisation.docker.enable = true;
}
Rebuild: sudo nixos-rebuild switch
Rollback: sudo nixos-rebuild switch --rollback
Generations: nix-env --list-generations
> related_skills --same-repo
> Nix Dev Shells with direnv
Auto-activate reproducible dev environments with Nix flakes and direnv.
> Dagger with GitHub Actions
Run Dagger CI/CD pipelines in GitHub Actions for portable, testable builds.
> Bun + Hono API
Build fast APIs with Bun runtime and Hono framework.
> Deno Fresh Framework
Build full-stack web apps with Fresh on Deno. Islands, routes, and zero runtime overhead.
┌ stats
installs/wk0
░░░░░░░░░░first seenMar 18, 2026
└────────────