Skip to content

Commit

Permalink
2024/05/28-01:39:58
Browse files Browse the repository at this point in the history
  • Loading branch information
1nv0k32 committed May 27, 2024
1 parent 79794c6 commit 65194df
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions system/z13.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@
inputs,
system,
options,
config,
pkgs,
lib,
...
}:
let
addCrypttabExtraOpts = dev: devAttr: devAttr // { crypttabExtraOpts = [ "tpm2-device=auto" ]; };
in
with lib;
{
imports = [
(import ../src/extra.nix)
(import ../pkgs/extra.nix)
];
# boot.kernelParams = options.boot.kernelParams.default ++ [
# "amd_pstate=passive"
# "amd_iommu=on"
# ];
boot.initrd.luks.devices."root".crypttabExtraOpts = [ "tpm2-device=auto" ];

boot.initrd.luks.devices = builtins.mapAttrs addCrypttabExtraOpts options.boot.initrd.luks.devices;

services = {
tlp = {
Expand Down

0 comments on commit 65194df

Please sign in to comment.