ps4nixos/flake.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }: {
2024-11-28 08:36:58 -07:00
nixosModules = rec {
ps4 = import ./nixos;
default = ps4;
};
nixosConfigurations = {
"aeolia" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ pkgs, ... }: { nixpkgs.overlays = [
(final: super: {
makeModulesClosure = x:
super.makeModulesClosure (x // { allowMissing = true; });
})
]; })
2024-11-29 06:19:46 -07:00
./nixos
./installer.nix
];
};
};
usb.aeolia = nixpkgs.legacyPackages.x86_64-linux.stdenvNoCC.mkDerivation {
name = "nixos-ps4-usb-aeolia";
2024-11-29 06:19:46 -07:00
# kernel = self.nixosConfigurations.aeolia.config.system.build.kernel;
# initrd = self.nixosConfigurations.aeolia.config.system.build.initialRamdisk;
# rootfs = self.nixosConfigurations.aeolia.config.system.build.rootFileSystem;
2024-11-29 06:19:46 -07:00
img = self.nixosConfigurations.aeolia.config.system.build.usbImage;
buildCommand = ''
cp $img $out
'';
2024-11-29 06:19:46 -07:00
# 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
# '';
};
};
}