ninurta: Add storage

This commit is contained in:
Tim Schubert 2023-06-17 21:35:06 +02:00
parent 0c9c4ef704
commit d8f717cf23
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 16 additions and 16 deletions

View file

@ -70,13 +70,6 @@ in
}; };
}; };
fileSystems."/mnt/storage" = {
device = "/dev/disk/by-uuid/a34e36fc-d7dd-4ceb-93c4-48f9c2727cb7";
mountPoint = "/mnt/storage";
neededForBoot = false;
options = [ "nofail" ];
};
# TODO enable # TODO enable
# dadada.borgServer = { # dadada.borgServer = {
# enable = true; # enable = true;
@ -91,7 +84,7 @@ in
}; };
services.hydra = { services.hydra = {
enable = true; enable = false;
package = pkgs.hydra-unstable; package = pkgs.hydra-unstable;
hydraURL = "https://hydra.dadada.li"; hydraURL = "https://hydra.dadada.li";
notificationSender = "hydra@localhost"; notificationSender = "hydra@localhost";

View file

@ -69,14 +69,21 @@
size = 32 * 1024; # 32 GByte size = 32 * 1024; # 32 GByte
}]; }];
# TODO systemd networkd
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking fileSystems."/mnt/storage" =
# (the default) this is the recommended approach. When using systemd-networkd it's {
# still possible to use this option, but it's recommended to use it in conjunction device = "/dev/disk/by-uuid/ce483e75-5886-4b03-a3f9-675b80560ac9";
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. fsType = "btrfs";
networking.useDHCP = lib.mkDefault true; options = [ "subvol=root" "compress=zstd" ];
# networking.interfaces.enp86s0.useDHCP = lib.mkDefault true; };
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
fileSystems."/mnt/storage/backup" =
{
device = "/dev/disk/by-uuid/ce483e75-5886-4b03-a3f9-675b80560ac9";
fsType = "btrfs";
options = [ "subvol=backups" "noatime" ];
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";