SV-268154r1131111_rule
V-268154
SRG-OS-000366-GPOS-00153
ANIX-00-001480
CAT I
10
Configure NixOS to require signatures.
Add the following Nix code to the NixOS Configuration, usually located in /etc/nixos/configuration.nix or /etc/nixos/flake.nix:
nix.settings.require-sigs = true;
Rebuild and switch to the new NixOS configuration:
$ sudo nixos-rebuild switch
Verify NixOS prevents installations that have not been digitally signed with the following command:
$ grep -R require-sigs /etc/nix/nix.conf
require-sigs = true
If "require-sigs" is not set to "true" or is missing, this is a finding.
V-268154
False
ANIX-00-001480
Verify NixOS prevents installations that have not been digitally signed with the following command:
$ grep -R require-sigs /etc/nix/nix.conf
require-sigs = true
If "require-sigs" is not set to "true" or is missing, this is a finding.
M
5658