Skip to content

Commit

Permalink
✨ add sakamoto
Browse files Browse the repository at this point in the history
  • Loading branch information
shelken committed Nov 16, 2024
1 parent c20cce2 commit 9b08fe5
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@
"hosts/yuuko/home.nix"
];
};
sakamotoModules = {
darwin-modules = map mylib.relativeToRoot [
"modules/darwin"
"hosts/sakamoto"
];
home-modules = map mylib.relativeToRoot [
"home/darwin"
"secrets/home.nix"
"hosts/sakamoto/home.nix"
];
};
mioModules = {
darwin-modules = map mylib.relativeToRoot [
"modules/darwin"
Expand Down Expand Up @@ -129,6 +140,7 @@
darwinConfigurations = {
# mac mini
yuuko = mylib.macosSystem (yuukoModules // args // {system = "aarch64-darwin";});
sakamoto = mylib.macosSystem (sakamotoModules // args // {system = "aarch64-darwin";});
# macbook air
mio = mylib.macosSystem (mioModules // args // {system = "aarch64-darwin";});
nano = mylib.macosSystem (nanoModules // args // {system = "x86_64-darwin";});
Expand Down
37 changes: 37 additions & 0 deletions hosts/sakamoto/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
_: let
hostname = "sakamoto";
in {
networking.hostName = hostname;
networking.computerName = hostname;
system.defaults.smb.NetBIOSName = hostname;
shelken = {
wm = {
aerospace.enable = true;
iceBar.enable = true;
};
suites = {
write.enable = false;
dev.enable = true;
tools.enable = false;
desktop.enable = true;
homelab.enable = true;
work.enable = true;
};

tools.main.enable = true;
tools.rclone.enable = true;
# tools.music.enable = true; # 音乐刮削相关
# tools.image.enable = true; # 图片处理
# tools.virts.enable = true; # 虚拟机
# tools.others.enable = true; # 其他:altserver,备份

social.personal.enable = false;
};
homebrew = {
onActivation = {
# autoUpdate = true;
# 'zap': uninstalls all formulae(and related files) not listed in the generated Brewfile
cleanup = "uninstall";
};
};
}
15 changes: 15 additions & 0 deletions hosts/sakamoto/home.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{...}: {
# programs.ssh = {
# inherit (myvars.networking.ssh) extraConfig;
# };
shelken = {
wm = {
aerospace.enable = true;
iceBar.enable = true;
};
dev = {
minikube.enable = true;
};
secrets.enable = true;
};
}
1 change: 1 addition & 0 deletions vars/networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
pve155 = "192.168.6.155";
pve156 = "192.168.6.156";
yuuko = "192.168.6.245";
sakamoto = "192.168.6.144";
mio = "192.168.6.244";
nano-zt = "192.168.168.7";
})
Expand Down

0 comments on commit 9b08fe5

Please sign in to comment.