aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-06-11 19:25:19 +1200
committerArslaan Pathan <[email protected]>2026-06-11 19:25:19 +1200
commit673f2563e48a4e1e37af6985d4d18f56bff741ea (patch)
tree7b3aadf32be6f18de9ddf617605352ea78486323 /flake.nix
parent3b00ff6e47d219276459fdb66e8497b0d3cd5249 (diff)
downloadyerbalinux-673f2563e48a4e1e37af6985d4d18f56bff741ea.tar.xz
yerbalinux-673f2563e48a4e1e37af6985d4d18f56bff741ea.zip
Another clean slate. I cannot continue to fight Nix and try to make it do what it was never meant to do.
Yocto time!
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix44
1 files changed, 0 insertions, 44 deletions
diff --git a/flake.nix b/flake.nix
deleted file mode 100644
index 0a62d14..0000000
--- a/flake.nix
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- description = "Yerba Linux";
-
- inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
-
- outputs = { self, nixpkgs }: let
- system = "x86_64-linux";
- pkgs = nixpkgs.legacyPackages.${system};
- pkgsStatic = nixpkgs.legacyPackages.${system}.pkgsStatic;
- pkgsMusl = nixpkgs.legacyPackages.${system}.pkgsMusl;
- actuallyGoodPkgsMuslThatDoesntMakeMeWantToSmashMyHeadAgainstAWall = import nixpkgs {
- localSystem = {
- system = "x86_64-linux";
- config = "x86_64-unknown-linux-musl";
- };
- };
- reallyActuallyGoodPkgsMuslBecauseTheOtherOneThatIThoughtWasActuallyGoodAlsoMadeMeWantToSmashMyHeadAgainstAWall = nixpkgs.legacyPackages.${system}.pkgsCross.musl64;
- in {
- devShells.${system}.default = pkgs.mkShell {
- buildInputs = with pkgs; [ gcc clang gnumake xorriso cpio ];
- };
-
- packages.${system} = {
- kernel = pkgs.callPackage ./nix/kernel.nix {};
- busybox = pkgs.callPackage ./nix/busybox.nix {
- inherit (pkgs) pkgsStatic;
- };
- runit = pkgsStatic.runit;
- zsh = reallyActuallyGoodPkgsMuslBecauseTheOtherOneThatIThoughtWasActuallyGoodAlsoMadeMeWantToSmashMyHeadAgainstAWall.callPackage ./nix/zsh.nix {};
- limine = pkgs.callPackage ./nix/limine.nix {};
- initramfs = pkgs.callPackage ./nix/initramfs.nix {
- inherit (self.packages.${system}) kernel busybox;
- };
- rootfs = pkgs.callPackage ./nix/rootfs.nix {
- inherit (self.packages.${system}) busybox runit;
- inherit (pkgsMusl) musl;
- };
- iso = pkgs.callPackage ./nix/iso.nix {
- inherit (self.packages.${system}) kernel limine initramfs rootfs;
- };
- default = self.packages.${system}.iso;
- };
- };
-}