Skip to content

Commit 738f275

Browse files
committed
chore(hosts/disko): remove unnescessary hostname labels
1 parent a8a3ef5 commit 738f275

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

hosts/maia/hardware-configuration.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{config, inputs, pkgs, ...}: {
1+
{inputs, pkgs, ...}: {
22
imports = [
33
inputs.disko.nixosModules.disko
44
../common/optional/ephemeral-btrfs.nix
@@ -32,9 +32,7 @@
3232
};
3333
};
3434

35-
disko.devices.disk.main = let
36-
inherit (config.networking) hostName;
37-
in {
35+
disko.devices.disk.main = {
3836
device = "/dev/nvme0n1";
3937
type = "disk";
4038
content = {
@@ -62,7 +60,6 @@
6260
settings.allowDiscards = true;
6361
content = {
6462
type = "btrfs";
65-
extraArgs = [ "-L${hostName}" ];
6663
postCreateHook = ''
6764
MNTPOINT=$(mktemp -d)
6865
mount -t btrfs "$device" "$MNTPOINT"

hosts/pleione/hardware-configuration.nix

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{config, inputs, pkgs, lib, ...}: {
1+
{inputs, lib, ...}: {
22
imports = [
33
inputs.disko.nixosModules.disko
44
../common/optional/ephemeral-btrfs.nix
@@ -52,9 +52,7 @@
5252
};
5353
};
5454

55-
disko.devices.disk.main = let
56-
inherit (config.networking) hostName;
57-
in {
55+
disko.devices.disk.main = {
5856
device = "/dev/sda";
5957
type = "disk";
6058
content = {
@@ -82,7 +80,6 @@
8280
settings.allowDiscards = true;
8381
content = {
8482
type = "btrfs";
85-
extraArgs = [ "-L${hostName}" ];
8683
postCreateHook = ''
8784
MNTPOINT=$(mktemp -d)
8885
mount -t btrfs "$device" "$MNTPOINT"

hosts/taygeta/hardware-configuration.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{modulesPath, inputs, config, ...}: {
1+
{modulesPath, inputs, ...}: {
22
imports = [
33
(modulesPath + "/profiles/qemu-guest.nix")
44
inputs.disko.nixosModules.disko
@@ -40,7 +40,6 @@
4040
size = "100%";
4141
content = {
4242
type = "btrfs";
43-
extraArgs = [ "-L${config.networking.hostName}" ];
4443
postCreateHook = ''
4544
MNTPOINT=$(mktemp -d)
4645
mount -t btrfs "$device" "$MNTPOINT"

0 commit comments

Comments
 (0)