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;
in {
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
boot.initrd.luks.devices = {
"${driveData.mapperName}" = {
device = "${driveData.encryptedPath}";

View file

@ -9,7 +9,7 @@
cfg = config.boot.encryptedDrive;
in {
config = mkIf (cfg.enable) {
config = mkIf cfg.enable {
boot.initrd.availableKernelModules =
flatten
[

View file

@ -1,18 +1,6 @@
{
self,
config,
lib,
...
}: let
inherit (lib.modules) mkIf mkBefore;
{lib, ...}: let
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;
in {
options.boot.encryptedDrive = {
enable = mkEnableOption "encrypted drive support for servers and other devices";

View file

@ -1,17 +1,9 @@
{
config,
lib,
self,
tree,
...
}: let
inherit (lib.modules) mkIf mkBefore mkDefault mkOverride 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";
inherit (lib.modules) mkIf mkForce;
cfg = config.boot.encryptedDrive;
in {

View file

@ -5,9 +5,6 @@
...
}: let
inherit (lib.modules) mkIf mkBefore;
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";

View file

@ -1,10 +1,4 @@
{
self,
tree,
...
}: let
driveData = import "${self}/data/drives/encryptedDrive.nix";
in {
{tree, ...}: {
imports = with tree; [
profiles.nixos.sshd
];