feat(nixos/roles/workstation): wipe trash service
1 file changed, -1/+17
nixos/roles/workstation.nix
@@ -1,4 +1,4 @@-{ inputs, outputs, config, lib, ... }:+{ inputs, outputs, config, pkgs, lib, ... }: let roleName = "workstation";@@ -14,6 +14,22 @@ in { users.lostduk = outputs.homeConfigurations.${config.networking.hostName}; };++ systemd.services.wipe-trash = {+ restartIfChanged = false;+ wantedBy = [ "multi-user.target" ];+ serviceConfig = {+ Type = "oneshot";+ RemainAfterExit = true;+ ExecStart = pkgs.writeShellScript "" ''+ find '/home/lostduk' -mindepth 1 -maxdepth 1 \+ ! -name 'documents' \+ ! -name '.gnupg' \+ ! -name '.password-store' \+ -exec rm -r {} ++ '';+ };+ }; })]; }