mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-29 01:32:37 +01:00
refactor: host profiles; give ruby, kana and aquamarine the TUI home (#512)
- Add the agent profile (modules/nixos/agent.nix: rootless Podman, linger, nix-ld) with home/linux/tui.nix as its home role; ruby, kana and aquamarine use it, so hosts no longer import from hosts/idols-ruby. - Gate nushell's ~/.secrets source behind modules.shell.secrets.enable, off on agent hosts. - Persist the TUI home state on aquamarine's tmpfs root. - Document host profiles in hosts/README.md; add tests/agent-profile and drop the x86_64 colmena-parity test, which needs mysecrets. Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
1 parent
eb6f6c34f0
commit
9a307b313d
31 files changed
+301
-147
No files matched your search
@@ -1,17 +1,26 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
nu_scripts,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.nushell = {
|
||||
options.modules.shell.secrets.enable = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "Source ~/.secrets/nushell-secrets.nu, which only the desktops sync.";
|
||||
};
|
||||
|
||||
config.programs.nushell = {
|
||||
# the file must exist, otherwise nushell will complain about it!
|
||||
#
|
||||
# currently, nushell does not support conditional sourcing of files
|
||||
# https://github.com/nushell/nushell/issues/8214
|
||||
extraConfig = ''
|
||||
# decrypted secret: AI agents must not read it
|
||||
source ${config.home.homeDirectory}/.secrets/nushell-secrets.nu
|
||||
${lib.optionalString config.modules.shell.secrets.enable ''
|
||||
# decrypted secret: AI agents must not read it
|
||||
source ${config.home.homeDirectory}/.secrets/nushell-secrets.nu
|
||||
''}
|
||||
|
||||
# Directories in this constant are searched by the
|
||||
# `use` and `source` commands.
|
||||
|
||||
Reference in new issue
Block a user