Compare commits
19
Commits
106cf13597
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
434e6dfb97 | ||
|
|
dac900756c | ||
|
|
765be54fb5 | ||
|
|
8b65c53a11 | ||
|
|
eadba798ea | ||
|
|
942d9e2350 | ||
|
|
10637d950f | ||
|
|
f9289fa766 | ||
|
|
5b62e26752 | ||
|
|
9698a57aa0 | ||
|
|
6ab209cd5e | ||
|
|
9a0e03657a | ||
|
|
fcaa023730 | ||
|
|
f42fd8684e | ||
|
|
2e30fec972 | ||
|
|
7af7864701 | ||
|
|
40a82aad64 | ||
|
|
d2a6887834 | ||
|
|
9b5af62a47 |
@@ -4,6 +4,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules
|
../../modules
|
||||||
|
../../modules/k3s/k3s.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
neovim
|
neovim
|
||||||
git
|
git
|
||||||
tree-sitter
|
tree-sitter
|
||||||
|
yamlfmt
|
||||||
gcc
|
gcc
|
||||||
|
|
||||||
# lua
|
# lua
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ alias gs='git status'
|
|||||||
|
|
||||||
alias hermes='docker exec -it -u hermes hermes-agent /data/current-package/bin/hermes'
|
alias hermes='docker exec -it -u hermes hermes-agent /data/current-package/bin/hermes'
|
||||||
|
|
||||||
alias hermes-age='cd /etc/rice-flakes/modules/hermes/secrets && sudo EDITOR=nvim agenix -e ./hermes-env.age -i /etc/ssh/ssh_host_ed25519_key'
|
alias hermes-age='cd /etc/rice-flakes/modules/hermes/secrets && sudo EDITOR=nvim agenix -e hermes-env.age -i /etc/ssh/ssh_host_ed25519_key'
|
||||||
|
|
||||||
ga() {
|
ga() {
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
inputs,
|
inputs,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@@ -45,8 +44,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
delegation = {
|
delegation = {
|
||||||
model = "openai/gpt-5.6-luna";
|
model = "us.anthropic.claude-sonnet-5";
|
||||||
provider = "nous";
|
provider = "bedrock";
|
||||||
};
|
};
|
||||||
|
|
||||||
discord = {
|
discord = {
|
||||||
@@ -61,24 +60,4 @@
|
|||||||
9119
|
9119
|
||||||
8642
|
8642
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd = {
|
|
||||||
timers.hermes-perms-maintenance = {
|
|
||||||
description = "Periodically fix hermes file permissions";
|
|
||||||
wantedBy = [ "timers.target" ];
|
|
||||||
timerConfig = {
|
|
||||||
OnBootSec = "10s";
|
|
||||||
OnUnitActiveSec = "30s";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.hermes-perms-maintenance = {
|
|
||||||
description = "Fix hermes file permissions for gateway access";
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
ExecStartPre = "${pkgs.findutils}/bin/find /var/lib/hermes/.hermes/ -type d -not -perm -2770 -exec ${pkgs.coreutils}/bin/chmod 2770 {} +";
|
|
||||||
ExecStart = "${pkgs.findutils}/bin/find /var/lib/hermes/.hermes/ -type f -not -perm -0660 -exec ${pkgs.coreutils}/bin/chmod 660 {} +";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
6443
|
||||||
|
80
|
||||||
|
443
|
||||||
|
8969
|
||||||
|
33073
|
||||||
|
];
|
||||||
|
networking.firewall.allowedUDPPorts = [ 3479 ];
|
||||||
|
|
||||||
|
services.k3s = {
|
||||||
|
enable = true;
|
||||||
|
role = "server";
|
||||||
|
extraFlags = "--write-kubeconfig-mode 644";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/var/lib/rancher/k3s/server/manifests/apps" = {
|
||||||
|
device = "/home/poslop/k3s/apps";
|
||||||
|
fsType = "none";
|
||||||
|
options = [
|
||||||
|
"bind"
|
||||||
|
"ro"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user