mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
sambar: Init
This commit is contained in:
parent
ad59ea79cf
commit
08e7fc9b2c
1 changed files with 31 additions and 0 deletions
31
configurations/darwin/sambar.nix
Normal file
31
configurations/darwin/sambar.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ flake, pkgs, ... }:
|
||||
{
|
||||
nixos-unified.sshTarget = "nix-infra@sambar";
|
||||
|
||||
networking.hostName = "sambar";
|
||||
# ids.uids.nixbld = 300;
|
||||
system.stateVersion = 4;
|
||||
nixpkgs.hostPlatform = "aarch64-darwin";
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
btop
|
||||
tailscale
|
||||
];
|
||||
|
||||
services = {
|
||||
openssh.enable = true;
|
||||
tailscale.enable = true;
|
||||
};
|
||||
|
||||
nix.enable = true;
|
||||
|
||||
# Legacy admin user, `nix-infra`. Keeping for compat.
|
||||
users.users.nix-infra = {
|
||||
name = "nix-infra";
|
||||
uid = 502;
|
||||
home = "/Users/nix-infra";
|
||||
openssh.authorizedKeys.keys = [
|
||||
flake.config.me.sshKey
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue