Something went wrong. Try again.
~/ is where the heart is
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273{ description = "Patrick's multi-platform machine configuration";
inputs = { nixpkgs.url = "nixpkgs/nixos-unstable"; nixpkgs-stable.url = "nixpkgs/nixos-26.05";
flake-parts.url = "github:hercules-ci/flake-parts"; import-tree.url = "github:denful/import-tree";
home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; nix-darwin = { url = "github:nix-darwin/nix-darwin/master"; inputs.nixpkgs.follows = "nixpkgs"; }; sops-nix = { url = "github:Mic92/sops-nix"; inputs.nixpkgs.follows = "nixpkgs"; };
zen-browser.url = "github:0xc000022070/zen-browser-flake"; glide.url = "github:ptdewey/glide-browser-flake";
helium-browser = { url = "github:amaanq/helium-flake"; inputs.nixpkgs.follows = "nixpkgs"; };
hunk = { url = "github:modem-dev/hunk"; inputs.nixpkgs.follows = "nixpkgs-stable"; }; };
outputs = inputs@{ flake-parts, home-manager, ... }: flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "aarch64-darwin" "x86_64-linux" ]; imports = [ ./nix/hosts/darwin ./nix/hosts/nixos (inputs.import-tree.matchNot ".*/assets/.*" ./nix/config) (inputs.import-tree.matchNot ".*/assets/.*" ./nix/agent) home-manager.flakeModules.home-manager ]; perSystem = { system, ... }: let pkgs = import inputs.nixpkgs { inherit system; config.allowUnfree = true; }; in { _module.args.pkgs = pkgs; devShells.default = pkgs.mkShell { packages = [ home-manager.packages.${system}.home-manager pkgs.nixfmt pkgs.shellcheck ]; }; formatter = pkgs.nixfmt; }; };}