Make the two servers work together better and move things around
This commit is contained in:
parent
dbecb3e57e
commit
dad0e0deb4
5 changed files with 23 additions and 15 deletions
|
@ -7,7 +7,7 @@
|
|||
options = [ "nosuid" "nodev" "nofail" "x-gvfs-show" ];
|
||||
};
|
||||
"/home/${config.sysusers.main}/Midas" = {
|
||||
device = "10.2.0.1:/";
|
||||
device = "10.2.0.1:/storage";
|
||||
fsType = "nfs4";
|
||||
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
|
||||
};
|
||||
|
|
|
@ -1,9 +1,16 @@
|
|||
{ ... }:
|
||||
{
|
||||
fileSystems."/persist" = {
|
||||
fileSystems = {
|
||||
"/persist" = {
|
||||
device = "/dev/disk/by-uuid/acf95700-8669-45c7-9a72-bf3215b3c325";
|
||||
fsType = "btrfs";
|
||||
neededForBoot = true;
|
||||
options = [ "subvol=persist" "compress=zstd" "noatime" ];
|
||||
};
|
||||
"/kitty" = {
|
||||
device = "10.2.0.2:/storage/BunStore";
|
||||
fsType = "nfs4";
|
||||
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31,13 +31,13 @@
|
|||
};
|
||||
|
||||
# Network mounts
|
||||
"/home/${config.sysusers.main}/Midas" = {
|
||||
device = "10.2.0.1:/";
|
||||
"/home/${config.sysusers.main}/Network/Midas" = {
|
||||
device = "10.2.0.1:/storage";
|
||||
fsType = "nfs4";
|
||||
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
|
||||
};
|
||||
"/home/${config.sysusers.main}/Kitty" = {
|
||||
device = "10.2.0.2:/";
|
||||
"/home/${config.sysusers.main}/Network/Kitty" = {
|
||||
device = "10.2.0.2:/storage/BunStore";
|
||||
fsType = "nfs4";
|
||||
options = [ "x-systemd.automount" "noauto" "soft" "_netdev" ];
|
||||
};
|
||||
|
|
|
@ -107,10 +107,11 @@
|
|||
n:/etc/nixos
|
||||
|
||||
# Remote files
|
||||
H:/home/${config.home.username}/Midas/storage
|
||||
K:/home/${config.home.username}/Midas/storage/Files
|
||||
V:/home/${config.home.username}/Midas/storage/Media
|
||||
M:/home/${config.home.username}/Midas/storage/Music
|
||||
H:/home/${config.home.username}/Network/Midas/
|
||||
K:/home/${config.home.username}/Network/Midas/Files
|
||||
M:/home/${config.home.username}/Network/Midas/Music
|
||||
V:/home/${config.home.username}/Network/Midas/Videos
|
||||
V:/home/${config.home.username}/Network/Midas/Photos
|
||||
'';
|
||||
};
|
||||
packages = with pkgs; [
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
mpd = {
|
||||
enable = true;
|
||||
network.startWhenNeeded = true;
|
||||
musicDirectory = "${config.home.homeDirectory}/Midas/storage/Music/NixBops";
|
||||
musicDirectory = "${config.home.homeDirectory}/Network/Midas/Music/NixBops";
|
||||
playlistDirectory = "${config.services.mpd.musicDirectory}/Playlists";
|
||||
extraConfig = ''
|
||||
audio_output {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue