This commit is contained in:
2026-05-29 20:54:22 -05:00
parent 5cd20d6a35
commit 5f994ccf0a
9 changed files with 378 additions and 23 deletions
+11 -1
View File
@@ -25,6 +25,16 @@ ga() {
rerice() {
local flake_dir="/etc/rice-flakes"
host="${1:-$(hostname -s)}"
local host="$(hostname -s)"
local OPTIND=1
while getopts ":h:" opt; do
case $opt in
h) host="$OPTARG" ;;
:) echo "Option -$OPTARG requires an argument." >&2; return 1 ;;
\?) echo "Unknown option: -$OPTARG" >&2; return 1 ;;
esac
done
sudo nixos-rebuild switch --flake "${flake_dir}#${host}"
}
+6
View File
@@ -0,0 +1,6 @@
{
imports = [
./sudo.nix
./hermes.nix
];
}
+12
View File
@@ -0,0 +1,12 @@
{
services.hermes-agent = {
enable = true;
addToSystemPackages = true;
container = {
enable = true;
hostUsers = [ "poslop" ];
};
settings.model.base_url = "http://10.0.1.139:5000/v1";
};
}
+13
View File
@@ -0,0 +1,13 @@
{
security.sudo.extraRules = [
{
users = [ "poslop" ];
commands = [
{
command = "/run/current-system/sw/bin/docker";
options = [ "NOPASSWD" ];
}
];
}
];
}