{ description = "A SecureBoot-enabled NixOS configurations"; inputs = { nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*"; lanzaboote.url = "github:nix-community/lanzaboote/v1.0.0"; lanzaboote.inputs.nixpkgs.follows = "nixpkgs"; apple-fonts.url = "github:Lyndeno/apple-fonts.nix"; apple-fonts.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, ... }@inputs: let supportedSystems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" ]; forEachSupportedSystem = f: inputs.nixpkgs.lib.genAttrs supportedSystems ( system: f { inherit system; pkgs = import inputs.nixpkgs { inherit system; config.allowUnfree = true; }; } ); in { nixosConfigurations.hermes = inputs.nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ { nixpkgs.overlays = [ self.overlays.default ]; } ./machines/hermes ./users/pml.nix ]; }; overlays.default = import ./overlays; devShells = forEachSupportedSystem ( { pkgs, system }: { default = pkgs.mkShellNoCC { packages = with pkgs; [ self.formatter.${system} nixd ]; }; } ); # Nix formatter # This applies the formatter that follows RFC 166, which defines a standard format: # https://github.com/NixOS/rfcs/pull/166 # To format all Nix files: # git ls-files -z '*.nix' | xargs -0 -r nix fmt # To check formatting: # git ls-files -z '*.nix' | xargs -0 -r nix develop --command nixfmt --check formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixfmt-rfc-style); }; }