Skip to content

Commit

Permalink
nix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
go3ranh committed Sep 7, 2023
1 parent 3c80f2b commit 107a391
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 111 deletions.
4 changes: 2 additions & 2 deletions host/poweredge/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ in
prefixLength = 24;
}
];
defaultGateway = "192.168.178.1";
firewall.allowedTCPPorts = [ 22 ];
defaultGateway = "192.168.178.1";
firewall.allowedTCPPorts = [ 22 ];
};

time.timeZone = "Europe/Berlin";
Expand Down
216 changes: 108 additions & 108 deletions host/poweredge/disk-config.nix
Original file line number Diff line number Diff line change
@@ -1,140 +1,140 @@
{
disk = {
a = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
ESP = {
size = "64M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
disk = {
a = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
ESP = {
size = "64M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
};
};
b = {
type = "disk";
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
b = {
type = "disk";
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
};
};
c = {
type = "disk";
device = "/dev/sdc";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
c = {
type = "disk";
device = "/dev/sdc";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
};
};
d = {
type = "disk";
device = "/dev/sdd";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
d = {
type = "disk";
device = "/dev/sdd";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
};
};
e = {
type = "disk";
device = "/dev/sde";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
e = {
type = "disk";
device = "/dev/sde";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
};
};
f = {
type = "disk";
device = "/dev/sdf";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
f = {
type = "disk";
device = "/dev/sdf";
content = {
type = "gpt";
partitions = {
zfs = {
size = "100%";
content = {
type = "zfs";
pool = "zroot";
};
};
};
};
};
zpool = {
zroot = {
type = "zpool";
mode = "raid5";
rootFsOptions = {
compression = "lz4";
"com.sun:auto-snapshot" = "false";
};
mountpoint = "/";
postCreateHook = "zfs snapshot zroot@blank";
};
zpool = {
zroot = {
type = "zpool";
mode = "raid5";
rootFsOptions = {
compression = "lz4";
"com.sun:auto-snapshot" = "false";
};
mountpoint = "/";
postCreateHook = "zfs snapshot zroot@blank";

datasets = {
zfs_fs = {
type = "zfs_fs";
mountpoint = "/zfs_fs";
options."com.sun:auto-snapshot" = "true";
};
home = {
type = "zfs_fs";
mountpoint = "/home";
options."com.sun:auto-snapshot" = "true";
};
var = {
type = "zfs_fs";
mountpoint = "/var";
options."com.sun:auto-snapshot" = "true";
};
datasets = {
zfs_fs = {
type = "zfs_fs";
mountpoint = "/zfs_fs";
options."com.sun:auto-snapshot" = "true";
};
home = {
type = "zfs_fs";
mountpoint = "/home";
options."com.sun:auto-snapshot" = "true";
};
var = {
type = "zfs_fs";
mountpoint = "/var";
options."com.sun:auto-snapshot" = "true";
};
};
};
}
};
}

2 changes: 1 addition & 1 deletion modules/goeranh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ in
];
packages = builtins.concatLists [
(with pkgs; [
atuin
atuin
btrfs-progs
dig
rsync
Expand Down

0 comments on commit 107a391

Please sign in to comment.