machines: use allowDiscards with disko

This commit is contained in:
Felix Buehler 2023-11-04 13:05:05 +01:00
parent 507f53fe3c
commit 4070248fea
4 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@
content = { content = {
type = "luks"; type = "luks";
name = "encrypted"; name = "encrypted";
extraOpenArgs = [ "--allow-discards" ]; settings.allowDiscards = true;
passwordFile = "/tmp/disk.key"; passwordFile = "/tmp/disk.key";
content = { content = {
type = "lvm_pv"; type = "lvm_pv";

View file

@ -28,7 +28,7 @@
content = { content = {
type = "luks"; type = "luks";
name = "encrypted"; name = "encrypted";
extraOpenArgs = [ "--allow-discards" ]; settings.allowDiscards = true;
passwordFile = "/tmp/disk.key"; passwordFile = "/tmp/disk.key";
content = { content = {
type = "lvm_pv"; type = "lvm_pv";

View file

@ -2,12 +2,12 @@
{ {
imports = [ imports = [
./boot.nix ./boot.nix
./disko-config.nix
./hardware-configuration.nix ./hardware-configuration.nix
./network.nix ./network.nix
./profiles.nix ./profiles.nix
./services.nix ./services.nix
./system.nix ./system.nix
./disko-config.nix
]; ];
networking.hostName = "thinkman"; networking.hostName = "thinkman";

View file

@ -28,7 +28,7 @@
content = { content = {
type = "luks"; type = "luks";
name = "encrypted"; name = "encrypted";
extraOpenArgs = [ "--allow-discards" ]; settings.allowDiscards = true;
passwordFile = "/tmp/disk.key"; passwordFile = "/tmp/disk.key";
content = { content = {
type = "lvm_pv"; type = "lvm_pv";