Mount boot partition on startup

master
coolneng 2020-12-28 18:42:46 +01:00
parent 0011955907
commit ddfc988cc5
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 21 additions and 18 deletions

3
.gitignore vendored
View File

@ -1,2 +1 @@
secrets
Timeline.org
Timeline.org

View File

@ -50,7 +50,7 @@
services.timesyncd.enable = true;
# Enable ZFS support
networking.hostId = "dca632d297f1";
networking.hostId = "4e74ea68";
boot = {
supportedFilesystems = [ "zfs" ];
zfs.extraPools = [ "vault" ];

View File

@ -1,12 +1,12 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, ... }:
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = [ "usb_storage" ];
boot.initrd.availableKernelModules = [ ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
@ -16,13 +16,13 @@
fsType = "ext4";
};
fileSystems."/vault" = {
device = "vault";
fsType = "zfs";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/2178-694E";
fsType = "vfat";
};
fileSystems."/vault/backups" = {
device = "vault/backups";
fileSystems."/vault" = {
device = "vault";
fsType = "zfs";
};
@ -31,13 +31,18 @@
fsType = "zfs";
};
fileSystems."/vault/nextcloud" = {
device = "vault/nextcloud";
fsType = "zfs";
};
fileSystems."/vault/syncthing" = {
device = "vault/syncthing";
fsType = "zfs";
};
fileSystems."/vault/nextcloud" = {
device = "vault/nextcloud";
fileSystems."/vault/backups" = {
device = "vault/backups";
fsType = "zfs";
};
@ -46,13 +51,13 @@
fsType = "zfs";
};
fileSystems."/vault/backups/monolith" = {
device = "vault/backups/monolith";
fileSystems."/vault/backups/zion/databases" = {
device = "vault/backups/zion/databases";
fsType = "zfs";
};
fileSystems."/vault/backups/zion/databases" = {
device = "vault/backups/zion/databases";
fileSystems."/vault/backups/monolith" = {
device = "vault/backups/monolith";
fsType = "zfs";
};
@ -63,6 +68,5 @@
swapDevices = [ ];
nix.maxJobs = lib.mkDefault 4;
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}