format files
This commit is contained in:
parent
46b00a1ac8
commit
09e2e74d59
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
cfg = config.boot.encryptedDrive;
|
cfg = config.boot.encryptedDrive;
|
||||||
in {
|
in {
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
boot.initrd.luks.devices = {
|
boot.initrd.luks.devices = {
|
||||||
"${driveData.mapperName}" = {
|
"${driveData.mapperName}" = {
|
||||||
device = "${driveData.encryptedPath}";
|
device = "${driveData.encryptedPath}";
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
cfg = config.boot.encryptedDrive;
|
cfg = config.boot.encryptedDrive;
|
||||||
in {
|
in {
|
||||||
config = mkIf (cfg.enable) {
|
config = mkIf cfg.enable {
|
||||||
boot.initrd.availableKernelModules =
|
boot.initrd.availableKernelModules =
|
||||||
flatten
|
flatten
|
||||||
[
|
[
|
||||||
|
|
|
@ -1,18 +1,6 @@
|
||||||
{
|
{lib, ...}: let
|
||||||
self,
|
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib.modules) mkIf mkBefore;
|
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
inherit (lib.options) mkOption mkEnableOption;
|
||||||
inherit (lib.lists) optionals;
|
|
||||||
inherit (lib) types;
|
inherit (lib) types;
|
||||||
|
|
||||||
encryptedUSB = import "${self}/data/drives/encryptedUSB.nix";
|
|
||||||
driveData = import "${self}/data/drives/encryptedDrive.nix";
|
|
||||||
|
|
||||||
cfg = config.boot.encryptedDrive;
|
|
||||||
in {
|
in {
|
||||||
options.boot.encryptedDrive = {
|
options.boot.encryptedDrive = {
|
||||||
enable = mkEnableOption "encrypted drive support for servers and other devices";
|
enable = mkEnableOption "encrypted drive support for servers and other devices";
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
self,
|
|
||||||
tree,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf mkBefore mkDefault mkOverride mkForce;
|
inherit (lib.modules) mkIf mkForce;
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
|
||||||
inherit (lib.lists) optionals;
|
|
||||||
inherit (lib) types;
|
|
||||||
|
|
||||||
encryptedUSB = import "${self}/data/drives/encryptedUSB.nix";
|
|
||||||
driveData = import "${self}/data/drives/encryptedDrive.nix";
|
|
||||||
|
|
||||||
cfg = config.boot.encryptedDrive;
|
cfg = config.boot.encryptedDrive;
|
||||||
in {
|
in {
|
||||||
|
|
|
@ -5,9 +5,6 @@
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf mkBefore;
|
inherit (lib.modules) mkIf mkBefore;
|
||||||
inherit (lib.options) mkOption mkEnableOption;
|
|
||||||
inherit (lib.lists) optionals;
|
|
||||||
inherit (lib) types;
|
|
||||||
|
|
||||||
encryptedUSB = import "${self}/data/drives/encryptedUSB.nix";
|
encryptedUSB = import "${self}/data/drives/encryptedUSB.nix";
|
||||||
driveData = import "${self}/data/drives/encryptedDrive.nix";
|
driveData = import "${self}/data/drives/encryptedDrive.nix";
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
{
|
{tree, ...}: {
|
||||||
self,
|
|
||||||
tree,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
driveData = import "${self}/data/drives/encryptedDrive.nix";
|
|
||||||
in {
|
|
||||||
imports = with tree; [
|
imports = with tree; [
|
||||||
profiles.nixos.sshd
|
profiles.nixos.sshd
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue