{ description = "A flake for the dotfiles shared between my PC and my server (usually some common tools that I'd want on both)"; inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { nixpkgs, home-manager, ... }: let lib = nixpkgs.lib; forAllSystems = function: lib.genAttrs [ "aarch64-darwin" "aarch64-linux" "x86_64-darwin" "x86_64-linux" ] (system: function nixpkgs.legacyPackages.${system}); in { nixosModules.default = _: { imports = [./kernel.nix]; }; homeManagerModules.default = _: { imports = [./helix.nix]; }; formatter = forAllSystems (pkgs: pkgs.alejandra); }; }