Use new hard disk on sisko

This commit is contained in:
Andrea Ciceri 2024-10-10 17:05:46 +02:00
parent 34b7c07297
commit 180e5743cc
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
2 changed files with 60 additions and 9 deletions

View file

@ -28,6 +28,8 @@
"garmin-collector"
"restic"
"atuin"
"rock5b-fan-control"
"immich"
]
++ [
./disko.nix
@ -94,12 +96,6 @@
fileSystems."/persist".neededForBoot = true;
boot.tmp.cleanOnBoot = true;
fileSystems."/mnt/hd" = {
device = "/dev/disk/by-id/ata-WDC_WD5000AAKX-08U6AA0_WD-WCC2E5TR40FU-part1";
fsType = "ext4";
options = [ "nofail" ];
};
environment.systemPackages = with pkgs; [
cifs-utils
];

View file

@ -1,9 +1,7 @@
let
ssd = "/dev/disk/by-id/ata-CT240BX300SSD1_1739E1042F3C";
hd = "/dev/disk/by-id/ata-ST12000NM0558_ZHZ6006Q";
in
# hd1 = "/dev/disk/by-id/ata-WDC_WD10EADS-22M2B0_WD-WCAV52709550";
# hd2 = "/dev/disk/by-id/ata-WDC_WD10EADX-22TDHB0_WD-WCAV5V359530";
# old_hd = "/dev/disk/by-id/ata-WDC_WD5000AAKX-08U6AA0_WD-WCC2E5TR40FU";
{
disko.devices = {
nodev."/" = {
@ -58,6 +56,63 @@ in
};
};
};
hd = {
device = hd;
type = "disk";
content = {
type = "gpt";
partitions = {
root = {
size = "100%";
content = {
type = "filesystem";
format = "bcachefs";
mountpoint = "/mnt/hd";
};
};
};
};
};
# hd = {
# type = "disk";
# device = hd;
# content = {
# type = "gpt";
# partitions = {
# zfs = {
# size = "100%";
# content = {
# type = "zfs";
# pool = "zroot";
# };
# };
# };
# };
# };
# };
# zpool = {
# zroot = {
# type = "zpool";
# rootFsOptions = {
# compression = "lz4";
# acltype = "posixacl";
# xattr = "sa";
# "com.sun:auto-snapshot" = "true";
# mountpoint = "none";
# };
# datasets = {
# "root" = {
# type = "zfs_fs";
# options.mountpoint = "/mnt/hd";
# mountpoint = "/mnt/hd";
# };
# "root/torrent" = {
# type = "zfs_fs";
# options.mountpoint = "/mnt/hd/torrent";
# mountpoint = "/mnt/hd/torrent";
# };
# };
# };
};
};
}