nixfiles/systems/sumireko.nix
2023-07-17 15:07:23 -07:00

117 lines
2.3 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

_: let
hostConfig = {
tree,
pkgs,
...
}: {
imports = with tree; [
kat.work
];
security.pam.enableSudoTouchIdAuth = true;
home-manager.users.root.programs.ssh = {
enable = true;
extraConfig = ''
Host renko
HostName 192.168.64.5
User root
IdentityFile /Users/kat/.ssh/id_rsa
'';
};
nix.buildMachines = [
{
hostName = "renko";
system = "aarch64-linux";
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
}
{
hostName = "renko";
system = "x86_64-linux";
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
}
];
nix.distributedBuilds = true;
nix.extraOptions = ''
builders-use-substitutes = true
'';
environment.systemPackages = with pkgs; [
fd # fd, better fine!
ripgrep # rg, better grep!
deadnix # dead-code scanner
alejandra # code formatter
statix # anti-pattern finder
deploy-rs.deploy-rs # deployment system
rnix-lsp # vscode nix extensions
terraform # terraform
kubectl # kubernetes
k9s # cute k8s client, canines~
kubernetes-helm # helm
awscli
];
home-manager.users.kat = {
programs.zsh = {
initExtra = ''
source <(kubectl completion zsh)
'';
};
};
homebrew = {
brewPrefix = "/opt/homebrew/bin";
brews = [
"gnupg"
"pinentry-mac"
"awscurl"
"pandoc"
];
casks = [
"utm"
"barrier"
"bitwarden"
"firefox"
"disk-inventory-x"
"dozer"
"devtoys"
"cyberduck"
"docker"
"spotify"
"pycharm-ce"
"slack"
"boop"
"obsidian"
"contexts"
"rectangle"
"signal"
"telegram"
"discord"
"deluge"
"keybase"
"anki"
"firefox"
"google-chrome"
];
taps = [
"pulumi/tap"
];
masApps = {
Tailscale = 1475387142;
Dato = 1470584107;
Lungo = 1263070803;
"Battery Indicator" = 1206020918;
};
};
system.stateVersion = 4;
};
in {
arch = "aarch64";
type = "macOS";
modules = [
hostConfig
];
}