diff --git a/modules/hardware/homelab.nix b/modules/hardware/homelab.nix index 85545a9..1840222 100644 --- a/modules/hardware/homelab.nix +++ b/modules/hardware/homelab.nix @@ -3,6 +3,7 @@ ./core/firmware.nix ./core/igpu.nix ./core/tpm.nix + ./misc/disks.nix ]; boot.initrd.availableKernelModules = [ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "virtio_console" ]; diff --git a/modules/hardware/misc/disks.nix b/modules/hardware/misc/disks.nix new file mode 100644 index 0000000..7d55f71 --- /dev/null +++ b/modules/hardware/misc/disks.nix @@ -0,0 +1,12 @@ +{ homelab, ... }: { + fileSystems = { + "/mnt/share" = { + device = homelab.disks.share; + fsType = "ext4"; + }; + "/mnt/data" = { + device = homelab.disks.data; + fsType = "ext4"; + }; + }; +} \ No newline at end of file diff --git a/modules/home/core/cli.nix b/modules/home/core/cli.nix index 6dc7b7c..d53655c 100644 --- a/modules/home/core/cli.nix +++ b/modules/home/core/cli.nix @@ -92,6 +92,7 @@ enable = true; settings = { pull.rebase = "true"; + credential.helper = "cache --timeout=3600"; user = { name = git.user; email = git.email;