Files

59 lines
1.3 KiB
Nix

{ config, lib, pkgs, ... }:
{
systemd.services.zfs-mount.enable = false;
networking.hostId = "07019099";
boot.supportedFilesystems = [ "zfs" ];
boot.zfs.devNodes = "/dev/disk/by-id/ata-WDC_WD30EZRZ-00Z5HB0_WD-WCC4N7LL2J1S-part1";
fileSystems."/bfds-nix" =
{ device = "bfds-nix";
fsType = "zfs";
};
fileSystems."/bfds-nix/music" =
{ device = "bfds-nix/music";
fsType = "zfs";
};
fileSystems."/bfds-nix/rob" =
{ device = "bfds-nix/rob";
fsType = "zfs";
};
fileSystems."/bfds-nix/hoerbuecher" =
{ device = "bfds-nix/hoerbuecher";
fsType = "zfs";
};
fileSystems."/bfds-nix/movies" =
{ device = "bfds-nix/movies";
fsType = "zfs";
};
fileSystems."/bfds-nix/peggy" =
{ device = "bfds-nix/peggy";
fsType = "zfs";
};
fileSystems."/bfds-nix/ebooks" =
{ device = "bfds-nix/ebooks";
fsType = "zfs";
};
systemd.services.hdparm = {
description = "Set hdparm energy settings at boot";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "oneshot";
ExecStart = ''
/run/current-system/sw/bin/hdparm -B 72 /dev/sda
/run/current-system/sw/bin/hdparm -B 72 /dev/sdb
/run/current-system/sw/bin/hdparm -B 72 /dev/sdc
'';
User = "root";
};
};
}