Something went wrong. Try again.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152{ description = "A flake to provision ucpr environment";
inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
home-manager = { url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; };
nix-darwin = { url = "github:LnL7/nix-darwin"; inputs.nixpkgs.follows = "nixpkgs"; }; };
outputs = { self, nixpkgs, home-manager, nix-darwin, ... }@inputs: let system = "aarch64-darwin"; user = let u = builtins.getEnv "NIX_USER"; in if u != "" then u else "ucpr"; pkgs = nixpkgs.legacyPackages.${system}; in { darwinConfigurations = { mac = nix-darwin.lib.darwinSystem { inherit system; specialArgs = { inherit inputs user system; };
modules = [ ./nix/nix-darwin/default.nix home-manager.darwinModules.home-manager ./nix/home-manager/default.nix ]; }; };
homeConfigurations = { mac = home-manager.lib.homeManagerConfiguration { inherit pkgs; extraSpecialArgs = { inherit inputs user system; }; modules = [ ./nix/home-manager/home.nix ]; }; }; };}