From 1a2dacd753af5d74fbc845916fac6f804154ec40 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 7 Feb 2024 21:30:53 -0600 Subject: [PATCH] feat(hosts/luna): persist `bash_history` of users root & price --- hosts/luna/modules/users.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/luna/modules/users.nix b/hosts/luna/modules/users.nix index d897cd7..6650ce6 100755 --- a/hosts/luna/modules/users.nix +++ b/hosts/luna/modules/users.nix @@ -1,5 +1,4 @@ -{ pkgs, user, config, ... }: -{ +{ pkgs, user, config, ... }: { security.sudo.wheelNeedsPassword = false; users.users = { root.hashedPasswordFile = config.age.secrets.users-root-pw.path; @@ -13,4 +12,8 @@ ]; }; }; + environment.persistence.ephemeral.users = { + price = { files = [ ".bash_history" ]; }; + root = { home = "/root"; files = [ ".bash_history" ]; }; + }; } \ No newline at end of file