sambar: home only (nix-darwin sucks now)

This commit is contained in:
Sridhar Ratnakumar 2025-08-27 22:25:04 +05:30
parent 08e7fc9b2c
commit b8f703b889
3 changed files with 14 additions and 31 deletions

View file

@ -1,31 +0,0 @@
{ 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
];
};
}

View file

@ -0,0 +1,13 @@
{ flake, ... }:
let
inherit (flake) inputs;
inherit (inputs) self;
in
{
imports = [
self.homeModules.default
self.homeModules.darwin-only
];
home.username = "srid";
}

View file

@ -2,6 +2,7 @@
{
imports = [
./all/zsh.nix
./all/bash.nix
./all/nushell
# ./all/emacs.nix
];