This commit is contained in:
2026-06-08 20:35:21 +02:00
parent 95a19549db
commit b0290b45c3
6 changed files with 153 additions and 0 deletions

22
hosts/common/home.nix Normal file
View File

@@ -0,0 +1,22 @@
{
identities,
primaryUser,
...
}:
let
user = identities.users.${primaryUser};
in
{
programs.git = {
signing = {
# Will be available on remote machines via SSH agent (Secretive).
key = "key::" + user.sign."sign@jupiter".publicKey;
signByDefault = true;
};
settings.user = {
name = "Katarina Sheremet";
inherit (user) email;
};
};
}

5
hosts/dia/home.nix Normal file
View File

@@ -0,0 +1,5 @@
_: {
imports = [
../common/home.nix
];
}

72
hosts/dia/nixos.nix Normal file
View File

@@ -0,0 +1,72 @@
{
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;
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";
};
}

View File

@@ -1,5 +1,9 @@
{ pkgs, ... }:
{
imports = [
../common/home.nix
];
home.packages = with pkgs; [
google-chrome
@@ -11,6 +15,8 @@
zoom-us
chatgpt
antigravity-cli
];
programs.java = {