···55## General Config Overview
66The unified flake provides a `mkSystem` function. The hostname is automatically derived from the attribute name. It accepts:
77- `username`: The primary user's username
88-- `platform`: Either `"darwin"` or `"nixos"`
98- `isWorkDevice`: If `true`, work-only apps and no personal/sops (default: `false`, i.e. personal device)
1091110## General Commands
···2221darwinConfigurations = nixpkgs.lib.mapAttrs mkSystem {
2322 "new-hostname" = {
2423 username = "your-username";
2525- platform = "darwin";
2624 # isWorkDevice = true; # only for work machines (no personal apps/sops)
2725 };
2826};
···3129nixosConfigurations = nixpkgs.lib.mapAttrs mkSystem {
3230 "new-hostname" = {
3331 username = "your-username";
3434- platform = "nixos";
3532 };
3633};
3734```