Skip to content

Commit

Permalink
[formatting] remove unnecessary indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
osnyx committed Aug 22, 2024
1 parent eee1ace commit f5c854e
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions nixos/platform/full-disk-encryption.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,35 +60,35 @@ in
# FIXME: isolate fc-luks tooling into separate package
flyingcircus.services.ceph.fc-ceph.enable = true;

flyingcircus.services.sensu-client.checks = {
keystickMounted = {
notification = "USB stick with disk encryption keys is mounted and keyfile is readable.";
interval = 60;
command = "sudo ${check_key_file}";
};
noSwap = {
notification = "Machine does not use swap to arbitrarily persist memory pages with sensitive data.";
interval = 60;
command = toString (pkgs.writeShellScript "noSwapCheck" ''
# /proc/swaps always has a header line
if [ $(${pkgs.coreutils}/bin/cat /proc/swaps | ${pkgs.coreutils}/bin/wc -l) -ne 1 ]; then
exit 1
fi
'');
};
luksParams = {
notification = "LUKS Volumes use expected parameters.";
interval = 3600;
command = "test ! -d ${keysMountDir} || sudo ${check_luks_cmd} '*'";
};
flyingcircus.services.sensu-client.checks = {
keystickMounted = {
notification = "USB stick with disk encryption keys is mounted and keyfile is readable.";
interval = 60;
command = "sudo ${check_key_file}";
};
noSwap = {
notification = "Machine does not use swap to arbitrarily persist memory pages with sensitive data.";
interval = 60;
command = toString (pkgs.writeShellScript "noSwapCheck" ''
# /proc/swaps always has a header line
if [ $(${pkgs.coreutils}/bin/cat /proc/swaps | ${pkgs.coreutils}/bin/wc -l) -ne 1 ]; then
exit 1
fi
'');
};
luksParams = {
notification = "LUKS Volumes use expected parameters.";
interval = 3600;
command = "test ! -d ${keysMountDir} || sudo ${check_luks_cmd} '*'";
};
};

flyingcircus.passwordlessSudoRules = [{
commands = [(toString check_key_file) "${check_luks_cmd} *"];
groups = ["sensuclient"];
}];
flyingcircus.passwordlessSudoRules = [{
commands = [(toString check_key_file) "${check_luks_cmd} *"];
groups = ["sensuclient"];
}];

fileSystems.${keysMountDir} = config.flyingcircus.infrastructure.fullDiskEncryption.fsOptions;
fileSystems.${keysMountDir} = config.flyingcircus.infrastructure.fullDiskEncryption.fsOptions;
};

}

0 comments on commit f5c854e

Please sign in to comment.