Something went wrong. Try again.
my over complex system configurations
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869inputs:
let
inherit (inputs) nixpkgs self; inherit (nixpkgs) lib;
systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = fn: lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
mkHosts = lib.mapAttrs self.lib.mkHost;in
{ # a raw unfilted scope of packages legacyPackages = forAllSystems (pkgs: import ./packages { inherit pkgs inputs; });
devShells = forAllSystems (pkgs: { default = pkgs.callPackage ./programs/shell.nix { treefmt-wrapped = self.formatter.${pkgs.stdenv.hostPlatform.system}; }; });
lib = import ./lib { inherit lib inputs; };
checks = forAllSystems (pkgs: import ./checks { inherit pkgs inputs; });
formatter = forAllSystems (pkgs: pkgs.callPackage ./programs/formatter.nix { });
# This is the list of system configuration # # the defaults consists of the following: # arch = "x86_64"; # class = "nixos"; nixosConfigurations = mkHosts { # keep-sorted start block=yes newline_separated=yes amaterasu = { };
freyja = { };
isis = { };
lilith = { class = "iso"; };
minerva = { };
skadi = { arch = "aarch64"; }; # keep-sorted end };
darwinConfigurations = mkHosts { # keep-sorted start block=yes newline_separated=yes tatsumaki = { arch = "aarch64"; class = "darwin"; }; #keep-sorted end };}