hosts: nas: move Mars to Jupiter
This commit is contained in:
parent
389d5d8daa
commit
cc62417941
@ -100,7 +100,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/Mars" =
|
fileSystems."/mnt/Mars" =
|
||||||
{ device = "nas:/Mars";
|
{ device = "jupiter:/Mars";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [ "noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2" ];
|
options = [ "noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2" ];
|
||||||
};
|
};
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
imports = # For now, if applying to other system, swap files
|
imports = # For now, if applying to other system, swap files
|
||||||
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
[(import ./hardware-configuration.nix)] ++ # Current system hardware config @ /etc/nixos/hardware-configuration.nix
|
||||||
(import ../../modules/desktop/virtualisation) ++ # Docker
|
(import ../../modules/desktop/virtualisation) ++ # Docker
|
||||||
# (import ../../modules/services/nas) ++ # Server Services
|
(import ../../modules/services/nas) ++ # Server Services
|
||||||
(import ../../modules/hardware); # Hardware devices
|
(import ../../modules/hardware); # Hardware devices
|
||||||
|
|
||||||
boot = { # Boot options
|
boot = { # Boot options
|
||||||
|
@ -66,7 +66,7 @@
|
|||||||
subvolume = {
|
subvolume = {
|
||||||
"@" = {};
|
"@" = {};
|
||||||
"@home" = {};
|
"@home" = {};
|
||||||
# "@nas/home" = {};
|
"@nas/Home" = {};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -132,12 +132,12 @@
|
|||||||
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# fileSystems."/mnt/snapshots/Mars" =
|
fileSystems."/mnt/snapshots/Mars" =
|
||||||
# { device = "/dev/disk/by-label/NIXROOT";
|
{ device = "/dev/disk/by-label/NIXROOT";
|
||||||
# fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
# options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ];
|
||||||
# };
|
};
|
||||||
#
|
|
||||||
# fileSystems."/mnt/snapshots/Pluto" =
|
# fileSystems."/mnt/snapshots/Pluto" =
|
||||||
# { device = "/dev/disk/by-label/NAS-RAID";
|
# { device = "/dev/disk/by-label/NAS-RAID";
|
||||||
# fsType = "btrfs";
|
# fsType = "btrfs";
|
||||||
@ -150,11 +150,11 @@
|
|||||||
# options = [ "compress=zstd,space_cache=v2,noatime,subvol=@" ];
|
# options = [ "compress=zstd,space_cache=v2,noatime,subvol=@" ];
|
||||||
# };
|
# };
|
||||||
#
|
#
|
||||||
# fileSystems."/mnt/Mars" =
|
fileSystems."/mnt/Mars" =
|
||||||
# { device = "/dev/disk/by-label/NIXROOT";
|
{ device = "/dev/disk/by-label/NIXROOT";
|
||||||
# fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
# options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@nas,discard=async" ];
|
options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@nas,discard=async" ];
|
||||||
# };
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" =
|
||||||
{ device = "/dev/disk/by-label/NIXBOOT";
|
{ device = "/dev/disk/by-label/NIXBOOT";
|
||||||
@ -165,11 +165,11 @@
|
|||||||
# { device = "/mnt/Pluto";
|
# { device = "/mnt/Pluto";
|
||||||
# options = [ "bind" ];
|
# options = [ "bind" ];
|
||||||
# };
|
# };
|
||||||
#
|
|
||||||
# fileSystems."/export/Mars" =
|
fileSystems."/export/Mars" =
|
||||||
# { device = "/mnt/Mars";
|
{ device = "/mnt/Mars";
|
||||||
# options = [ "bind" ];
|
options = [ "bind" ];
|
||||||
# };
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
@ -239,7 +239,8 @@
|
|||||||
powerManagement = {
|
powerManagement = {
|
||||||
cpuFreqGovernor = lib.mkDefault "powersave";
|
cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
powertop.enable = true;
|
powertop.enable = true;
|
||||||
# powerUpCommands = ''
|
scsiLinkPolicy = "med_power_with_dipm";
|
||||||
|
# powerUpCommands = ''
|
||||||
# ${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088
|
# ${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088
|
||||||
# ${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/b9edc489-ac37-4b28-981d-442722df7ae2
|
# ${pkgs.hdparm}/sbin/hdparm -S 150 /dev/disk/by-uuid/b9edc489-ac37-4b28-981d-442722df7ae2
|
||||||
# '';
|
# '';
|
||||||
|
@ -117,7 +117,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/Mars" =
|
fileSystems."/mnt/Mars" =
|
||||||
{ device = "nas:/Mars";
|
{ device = "jupiter:/Mars";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [ "noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2" ];
|
options = [ "noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2" ];
|
||||||
};
|
};
|
||||||
|
@ -113,7 +113,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/Mars" =
|
fileSystems."/mnt/Mars" =
|
||||||
{ device = "nas:/Mars";
|
{ device = "jupiter:/Mars";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
options = [ "nofail,noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2" ];
|
options = [ "nofail,noauto,users,x-systemd.automount,x-systemd.device-timeout=10,soft,timeo=14,x-systemd.idle-timeout=1min,sec=sys,exec,nfsvers=4.2" ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user