cleanup files and add AIO image
This commit is contained in:
parent
c436983153
commit
022ceeb8aa
9 changed files with 90 additions and 114 deletions
28
flake.nix
28
flake.nix
|
@ -19,8 +19,8 @@
|
|||
super.makeModulesClosure (x // { allowMissing = true; });
|
||||
})
|
||||
]; })
|
||||
./aeolia-config.nix
|
||||
./config.nix
|
||||
./nixos
|
||||
./installer.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -28,17 +28,23 @@
|
|||
usb.aeolia = nixpkgs.legacyPackages.x86_64-linux.stdenvNoCC.mkDerivation {
|
||||
name = "nixos-ps4-usb-aeolia";
|
||||
|
||||
kernel = self.nixosConfigurations.aeolia.config.system.build.kernel;
|
||||
initrd = self.nixosConfigurations.aeolia.config.system.build.initialRamdisk;
|
||||
rootfs = self.nixosConfigurations.aeolia.config.system.build.rootFileSystem;
|
||||
# kernel = self.nixosConfigurations.aeolia.config.system.build.kernel;
|
||||
# initrd = self.nixosConfigurations.aeolia.config.system.build.initialRamdisk;
|
||||
# rootfs = self.nixosConfigurations.aeolia.config.system.build.rootFileSystem;
|
||||
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/boot $out/root
|
||||
cp $kernel/bzImage $out/boot/bzImage
|
||||
cp $initrd/initrd.gz $out/boot/initramfs.cpio.gz
|
||||
cp $rootfs $out/root/rootfs.img
|
||||
img = self.nixosConfigurations.aeolia.config.system.build.usbImage;
|
||||
|
||||
buildCommand = ''
|
||||
cp $img $out
|
||||
'';
|
||||
|
||||
# dontUnpack = true;
|
||||
# installPhase = ''
|
||||
# mkdir -p $out/boot $out/root
|
||||
# cp $kernel/bzImage $out/boot/bzImage
|
||||
# cp $initrd/initrd.gz $out/boot/initramfs.cpio.gz
|
||||
# cp $rootfs $out/root/rootfs.img
|
||||
# '';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue