Skip to content

Commit

Permalink
userborn: enable by default
Browse files Browse the repository at this point in the history
I have tested this for a wile without any issues.
If it works find in srvos, we can propose this to nixos itself.
  • Loading branch information
Mic92 committed Dec 2, 2024
1 parent 239c82e commit 645f812
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nixos/common/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# A default configuration that applies to all servers.
# Common configuration across *all* the machines
{ config, lib, ... }:
{ config, lib, options, ... }:
{

imports = [
Expand All @@ -15,6 +15,10 @@
./zfs.nix
];

# Create users with https://github.com/nikstur/userborn rather than our perl script.
# Don't enable if we detect impermanence, which is not compatible with it: https://github.com/nix-community/impermanence/pull/223
services.userborn.enable = lib.mkIf (options.environment ? persistence) (lib.mkDefault true);

# Use systemd during boot as well except:
# - systems with raids as this currently require manual configuration: https://github.com/NixOS/nixpkgs/issues/210210
# - for containers we currently rely on the `stage-2` init script that sets up our /etc
Expand Down

0 comments on commit 645f812

Please sign in to comment.