SV-268087r1130972_rule
V-268087
SRG-OS-000030-GPOS-00011
ANIX-00-000120
CAT II
10
Configure NixOS to have a package that allows user to lock session.
Update the NixOS config, typically stored either in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
environment.systemPackages = [
pkgs.vlock
];
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify the NixOS operating system has the "vlock" package installed by running the following command:
$ which vlock
/run/current-system/sw/bin/vlock
If the "vlock" package is not installed, this is a finding.
V-268087
False
ANIX-00-000120
Verify the NixOS operating system has the "vlock" package installed by running the following command:
$ which vlock
/run/current-system/sw/bin/vlock
If the "vlock" package is not installed, this is a finding.
M
5658