Files
dotfiles/hosts/dia/nixos.nix
T
2026-06-29 18:15:38 +00:00

86 lines
1.6 KiB
Nix

{
pkgs,
identities,
primaryUser,
jail-nix,
...
}:
let
jail = jail-nix.lib.init pkgs;
in
{
users.users.${primaryUser} = {
uid = 1000;
isNormalUser = true;
extraGroups = [
"wheel"
"docker"
"kvm"
];
openssh.authorizedKeys.keys = identities.getAccessKeys { user = primaryUser; };
shell = pkgs.zsh;
};
virtualisation.docker.enable = true;
nixpkgs.config.allowUnfree = true; # for agy
environment.systemPackages = with pkgs; [
(jail "jailed-agy" pkgs.antigravity-cli (
with jail.combinators;
[
network
time-zone
no-new-session
mount-cwd
(readwrite (noescape "~/.gemini"))
# The above is a stow-controlled symlink to the following.
(readwrite (noescape "~/dotfiles/legacy/.gemini"))
(add-pkg-deps (
with pkgs;
[
bashInteractive
curl
wget
jq
git
which
ripgrep
gnugrep
gnused
gawkInteractive
ps
findutils
gzip
unzip
gnutar
diffutils
coreutils
procps
python3
]
))
]
))
];
networking = {
hostName = "dia";
domain = "home.arpa";
};
services.open-webui = {
enable = true;
host = "0.0.0.0";
port = 8081;
openFirewall = true;
environment = {
OLLAMA_BASE_URL = "http://10.26.140.44:11434";
WEBUI_AUTH = "False";
# OFFLINE_MODE = "True";
};
};
}