2023-11-08 11:12:45 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
2023-09-20 22:17:52 +02:00
|
|
|
{
|
|
|
|
# Looks as if TrueCrypt is unfree software
|
|
|
|
# https://github.com/NixOS/nixpkgs/blob/5d017a8822e0907fb96f7700a319f9fe2434de02/pkgs/applications/misc/veracrypt/default.nix#L59
|
2023-11-08 11:12:45 +01:00
|
|
|
|
|
|
|
# Allow installation of unfree software Veracrypt.
|
|
|
|
# Alternatively, run Veracrypt with
|
|
|
|
# NIXPKGS_ALLOW_UNFREE=1 nix-shell -p veracrypt
|
|
|
|
# https://nixos.wiki/wiki/Unfree_Software
|
2023-09-20 22:17:52 +02:00
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
|
|
|
"veracrypt"
|
|
|
|
];
|
|
|
|
|
|
|
|
users.users.yoda = {
|
|
|
|
packages = with pkgs; [
|
|
|
|
veracrypt # Encrypted filesystem
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|