{ description = "Dekker1's home manager configuation"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin"; home-manager = { url = "github:nix-community/home-manager/release-24.05"; inputs.nixpkgs.follows = "nixpkgs"; }; darwin = { url = "github:LnL7/nix-darwin/master"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self , darwin , home-manager , nixpkgs } @inputs: let user = "dekker1"; linuxSystems = [ "x86_64-linux" "aarch64-linux" ]; darwinSystems = [ "aarch64-darwin" ]; forAllLinuxSystems = f: nixpkgs.lib.genAttrs linuxSystems (system: f system); forAllDarwinSystems = f: nixpkgs.lib.genAttrs darwinSystems (system: f system); forAllSystems = f: nixpkgs.lib.genAttrs (linuxSystems ++ darwinSystems) (system: f system); devShell = system: let pkgs = nixpkgs.legacyPackages.${system}; in { default = with pkgs; mkShell { nativeBuildInputs = with pkgs; [ bashInteractive git ]; shellHook = with pkgs; '' ''; }; }; in { devShells = forAllSystems devShell; darwinConfigurations = let user = "dekker1"; in { macos = darwin.lib.darwinSystem { system = "aarch64-darwin"; specialArgs = inputs; modules = [ home-manager.darwinModules.home-manager ./darwin ]; }; }; nixosConfigurations = nixpkgs.lib.genAttrs linuxSystems (system: nixpkgs.lib.nixosSystem { system = system; specialArgs = inputs; modules = [ home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.${user} = import ./nixos/home-manager.nix; } ./nixos ]; }); }; }