summaryrefslogtreecommitdiffstats
path: root/makefu/1systems/nextgum/hardware-config.nix
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-09-29 19:06:15 +0200
committerlassulus <lass@blue.r>2018-09-29 19:06:15 +0200
commitd04fa5351158f91f8c38f1b0cc072def3f357e05 (patch)
treefbdb852412c80a17f4d726062c224a55b928b672 /makefu/1systems/nextgum/hardware-config.nix
parentb024b2e1ee80d8104f94d75360882bf340af4468 (diff)
parentd7ecf1abdcc52e82af8ea17e4fc8d4be8fc41822 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/1systems/nextgum/hardware-config.nix')
-rw-r--r--makefu/1systems/nextgum/hardware-config.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/makefu/1systems/nextgum/hardware-config.nix b/makefu/1systems/nextgum/hardware-config.nix
index 944210701..bfe29b46c 100644
--- a/makefu/1systems/nextgum/hardware-config.nix
+++ b/makefu/1systems/nextgum/hardware-config.nix
@@ -41,11 +41,12 @@ in {
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.devices = [ main-disk ];
+ boot.initrd.kernelModules = [ "dm-raid" ];
boot.initrd.availableKernelModules = [
"ata_piix" "vmw_pvscsi" "virtio_pci" "sd_mod" "ahci"
"xhci_pci" "ehci_pci" "ahci" "sd_mod"
];
- boot.kernelModules = [ "kvm-intel" "dm-raid" "dm_thin_pool" ];
+ boot.kernelModules = [ "kvm-intel" ];
hardware.enableRedistributableFirmware = true;
fileSystems."/" = {
device = "/dev/mapper/nixos-root";
@@ -59,6 +60,10 @@ in {
device = "/dev/mapper/nixos-download";
fsType = "ext4";
};
+ fileSystems."/var/lib/borgbackup" = {
+ device = "/dev/mapper/nixos-backup";
+ fsType = "ext4";
+ };
fileSystems."/boot" = {
device = "/dev/sda2";
fsType = "vfat";
@@ -79,8 +84,12 @@ in {
#vgcreate nixos /dev/sda3 /dev/sdb1
#lvcreate -L 120G -m 1 -n root nixos
#lvcreate -L 50G -m 1 -n lib nixos
- #lvcreate -L 50G -n download nixos
+ #lvcreate -L 100G -n download nixos
+ #lvcreate -L 100G -n backup nixos
#mkfs.ext4 /dev/mapper/nixos-root
+ #mkfs.ext4 /dev/mapper/nixos-lib
+ #mkfs.ext4 /dev/mapper/nixos-download
+ #mkfs.ext4 /dev/mapper/nixos-borgbackup
#mount /dev/mapper/nixos-root /mnt
#mkdir /mnt/boot
#mount /dev/sda2 /mnt/boot