format files

This commit is contained in:
chaos 2024-08-12 16:54:39 +01:00
parent 46b00a1ac8
commit 09e2e74d59
No known key found for this signature in database
6 changed files with 5 additions and 34 deletions

View file

@ -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}";

View file

@ -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
[ [

View file

@ -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";

View file

@ -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 {

View file

@ -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";

View file

@ -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
]; ];