Deployment tool #5
Labels
No labels
affects/hardware
affects/legal
affects/reproducibility
affects/security
affects/style
affects/usability
blocked by/release 21.05
blocked by/release 21.11
blocked by/release 22.05
blocked by/testing needed
blocked by/testing needed/fuuko
blocked by/testing needed/sayuri
blocked by/upstream
resolution
deferred
resolution
permanent workaround
resolution
upstream wontfix
resolution
wontfix
type
bug
type
chore
type
feature
type
new machine
type
question
type
regression
type
tracking
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: simon/nixos-config#5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To address #4 (and to some extent #2), I should use a deployment tool.
It has to support the following:
pass
(place them under/var/secrets
with configurable permissions; see #4)nixpkgs
(ideally with flakes (see #3))system.autoUpgrade
(optional since this breaks reproducibility)Possible deployment tools
NixOps
Advantages
pass
branch)localhost
as hostDisadvantages
/etc/nixos/configuration.nix
(e.g.system.autoUpgrade
) not workKrops
Advantages
rsync
,ssh
andnixos-rebuild
)pass
(no need for hacks)Disadvantages
^C
ing scriptconfiguration.nix
and not dependent files)Morph
Advantages
Disadvantages
pass
configuration.nix
(alternative: Create file that builds nixpkgs with all overlays and specific config)Plan
Krops looks most promising (supports secrets with
pass
, pinning nixpkgs, activation on every ssh enabled host and optionallysystem.autoUpgrade
). The only caveat is, that it has no interal ability to set the permissions of secrets. This, however can be circumvented by usingsystem.activationScripts
or a systemd unit (see https://github.com/krebs/krops/issues/4 for more examples).Even without permissions, krops is better than the current situation, since that means every machine knows every secret.
Fixed in
f53b777a7e