mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-08 19:46:03 +01:00
extraUtilsCommands
This commit is contained in:
parent
609fd99343
commit
e8fc02e3ef
1 changed files with 6 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ in
|
||||||
|
|
||||||
nfsRoot = mkOption {
|
nfsRoot = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "192.168.0.108:/mnt/nfsshare/${config.netImage.imageBaseName}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system},v3";
|
default = "192.168.0.108:/mnt/nfsshare/${config.netImage.imageBaseName}-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}";
|
||||||
description = ''
|
description = ''
|
||||||
cmdline.txt nfs parameter for the root filesystem.
|
cmdline.txt nfs parameter for the root filesystem.
|
||||||
'';
|
'';
|
||||||
|
|
@ -100,7 +100,10 @@ in
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
boot.initrd.network.enable = true;
|
boot.initrd.network.enable = true;
|
||||||
boot.initrd.postMountCommands = ''
|
# boot.initrd.postDeviceCommands = ''
|
||||||
|
# mkdir -p /mnt-root
|
||||||
|
# '';
|
||||||
|
boot.initrd.extraUtilsCommands = ''
|
||||||
mkdir -p /mnt-root
|
mkdir -p /mnt-root
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
@ -108,6 +111,7 @@ in
|
||||||
"/boot/firmware" = {
|
"/boot/firmware" = {
|
||||||
device = "${config.netImage.nfsRoot}/boot/firmware";
|
device = "${config.netImage.nfsRoot}/boot/firmware";
|
||||||
fsType = "nfs";
|
fsType = "nfs";
|
||||||
|
options = [ "vers=3" ];
|
||||||
};
|
};
|
||||||
"/" = {
|
"/" = {
|
||||||
device = "${config.netImage.nfsRoot}";
|
device = "${config.netImage.nfsRoot}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue