Skip to content

Commit

Permalink
Fix things
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Nov 2, 2024
1 parent 3ee500b commit 027aa3d
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 8 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ Shell scripts are built from the flake at <https://github.com/joinemm/bin>
- `athens` - Thinkpad X1 Carbon gen11 (work laptop)
- `byzantium` - Hetzner box running grafana and prometheus for monitoring
- `alexandria` - Hetzner box acting as syncthing node and hosting web services
- `kyoto` - Raspberry Pi 4B, mainly for blocky DNS server
- `kyoto` - Raspberry Pi 4B, mainly used as a DNS server
- `thebes` - Aoostar WTR PRO, my NAS and home server

## Installing a configuration

Expand Down
2 changes: 1 addition & 1 deletion hosts/alexandria/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ in
};
dns = {
override_local_dns = true;
base_domain = "portal.joinemm.dev";
base_domain = "t.s";
magic_dns = true;
nameservers.global = [ "100.64.0.3" ];
};
Expand Down
2 changes: 2 additions & 0 deletions hosts/kyoto/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
./monitoring.nix
];

boot.kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;

hardware = {
raspberry-pi."4" = {
apply-overlays-dtmerge.enable = true;
Expand Down
15 changes: 12 additions & 3 deletions hosts/thebes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
])
inputs.disko.nixosModules.disko
inputs.sops-nix.nixosModules.sops
./disk-config.nix
];

networking.hostName = "thebes";
Expand Down Expand Up @@ -49,6 +50,11 @@

# MOUNTS

systemd.tmpfiles.rules = [
"d /data 0755 root root"
"d /srv/nfs 0775 nfs users"
];

fileSystems = {

# Storage drives are formatted by hand
Expand Down Expand Up @@ -88,7 +94,7 @@
uid = 1001;
};

services.nfs = {
services.nfs.server = {
enable = true;
exports = ''
/srv/nfs 192.168.1.0/24(rw,sync,no_subtree_check,root_squash,all_squash,anonuid=1001,anongid=100,fsid=0)
Expand All @@ -104,11 +110,11 @@
111
2049
]
++ builtins.attrVals [
++ lib.attrVals [
"statdPort"
"lockdPort"
"mountdPort"
] config.services.nfs;
] config.services.nfs.server;

allowedUDPPorts = allowedTCPPorts;
};
Expand All @@ -118,5 +124,8 @@
services.scrutiny = {
enable = true;
openFirewall = true;
collector.enable = true;
};

services.vnstat.enable = true;
}
7 changes: 7 additions & 0 deletions nix/deployments.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ let
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.byzantium;
};
};
thebes = {
hostname = "192.168.1.4";
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.thebes;
};
};
};

aarch64 = {
Expand Down
7 changes: 4 additions & 3 deletions nix/devshell.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{ self, ... }:
{
perSystem =
{ pkgs, ... }:
Expand All @@ -11,9 +12,9 @@
deploy-rs

# add scripts to path
(pkgs.writeScriptBin "list-nodes" ../scripts/list-nodes.sh)
(pkgs.writeScriptBin "install" ../scripts/install.sh)
(pkgs.writeScriptBin "init-secrets" ../scripts/init-secrets.sh)
(pkgs.writeScriptBin "node-list" (builtins.readFile (self + /scripts/list.sh)))
(pkgs.writeScriptBin "node-install" (builtins.readFile (self + /scripts/install.sh)))
(pkgs.writeScriptBin "node-init-secrets" (builtins.readFile (self + /scripts/init-secrets.sh)))
];
};
};
Expand Down
File renamed without changes.

0 comments on commit 027aa3d

Please sign in to comment.