Files
nixos-setup/modules/nixos/server/robotnix/seed/configuration.nix
T
2026-10-23 15:26:04 -04:00

25 lines
612 B
Nix

# A robot's own NixOS config (default seed).
#
# The host copies this into the robot's /etc/nixos on first install and on
# `robotnix reseed`. After that the robot owns it. Inside the robot:
# sudo nixos-rebuild switch --flake /etc/nixos
# Host-managed basics (network, ssh, user) live in /etc/nixos/robotnix.nix.
{ pkgs, ... }:
{
# The user has no password; ssh keys only.
security.sudo.wheelNeedsPassword = false;
environment.systemPackages = with pkgs; [
git
vim
curl
htop
];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 14d";
};
}