mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
Refactors, konawall-py for darwin, sumireko update to Sonoma
This commit is contained in:
parent
091ddb5b91
commit
bc61d82487
151 changed files with 691 additions and 792 deletions
|
|
@ -4,14 +4,16 @@
|
|||
};
|
||||
|
||||
launchd.daemons.start_nixos_native = {
|
||||
serviceConfig.ProgramArguments = [
|
||||
"/bin/sh"
|
||||
"-c"
|
||||
"/bin/wait4path /nix/store && ${pkgs.writeScript "start_nixos_native" ''
|
||||
/usr/bin/open "utm://start?name=NixOS Native"
|
||||
''}"
|
||||
];
|
||||
serviceConfig.Label = "org.kittywitch.start_nixos_native";
|
||||
serviceConfig.RunAtLoad = true;
|
||||
serviceConfig = {
|
||||
ProgramArguments = [
|
||||
"/bin/sh"
|
||||
"-c"
|
||||
"/bin/wait4path /nix/store && ${pkgs.writeScript "start_nixos_native" ''
|
||||
/usr/bin/open "utm://start?name=NixOS Native"
|
||||
''}"
|
||||
];
|
||||
Label = "org.kittywitch.start_nixos_native";
|
||||
RunAtLoad = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
71
darwin/orbstack.nix
Normal file
71
darwin/orbstack.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
tree,
|
||||
std,
|
||||
...
|
||||
}: let
|
||||
inherit (std) string;
|
||||
in {
|
||||
home-manager.users.root.programs.ssh = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
Host orb
|
||||
HostName 127.0.0.1
|
||||
Port 32222
|
||||
User default
|
||||
IdentityFile /Users/kat/.orbstack/ssh/id_ed25519
|
||||
ProxyCommand env HOME=/Users/kat '/Applications/OrbStack.app/Contents/Frameworks/OrbStack Helper (VM).app/Contents/MacOS/OrbStack Helper (VM)' ssh-proxy-fdpass
|
||||
ProxyUseFdpass yes
|
||||
'';
|
||||
};
|
||||
|
||||
home-manager.users.kat = {
|
||||
home.file = {
|
||||
".orbstack/ssh/authorized_keys".text =
|
||||
(string.concatSep "\n" tree.home.user.data.keys)
|
||||
+ ''
|
||||
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILW2V8yL2vC/KDmIQdxhEeevKo1vGG18bvMNj9mLL/On
|
||||
'';
|
||||
".ssh/authorized_keys".text = ''
|
||||
${string.concatSep "\n" tree.home.user.data.keys}
|
||||
'';
|
||||
};
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
Host orb
|
||||
HostName 127.0.0.1
|
||||
Port 32222
|
||||
User default
|
||||
IdentityFile /Users/kat/.orbstack/ssh/id_ed25519
|
||||
ProxyCommand env HOME=/Users/kat '/Applications/OrbStack.app/Contents/Frameworks/OrbStack Helper (VM).app/Contents/MacOS/OrbStack Helper (VM)' ssh-proxy-fdpass
|
||||
ProxyUseFdpass yes
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
nix = {
|
||||
buildMachines = [
|
||||
{
|
||||
hostName = "nixos@orb";
|
||||
system = "aarch64-linux";
|
||||
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
||||
}
|
||||
{
|
||||
hostName = "nixos@orb";
|
||||
system = "x86_64-linux";
|
||||
supportedFeatures = ["nixos-test" "benchmark" "big-parallel" "kvm"];
|
||||
}
|
||||
];
|
||||
distributedBuilds = true;
|
||||
extraOptions = ''
|
||||
builders-use-substitutes = true
|
||||
'';
|
||||
};
|
||||
|
||||
homebrew = {
|
||||
casks = [
|
||||
"orbstack"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue