[READ-ONLY] Mirror of https://github.com/trueberryless/nix. My nix config
github.com/clemensschlipfinger/general-grievous-nix/
1{
2 description = "Felix's nix-darwin system flake";
3
4 inputs = {
5 nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6 nix-darwin = {
7 url = "github:nix-darwin/nix-darwin/master";
8 inputs.nixpkgs.follows = "nixpkgs";
9 };
10 home-manager = {
11 url = "github:nix-community/home-manager/master";
12 inputs.nixpkgs.follows = "nixpkgs";
13 };
14 };
15
16 outputs = inputs @ { self, nixpkgs, nix-darwin, home-manager }:
17 let
18 system = "aarch64-darwin";
19 username = "trueberryless";
20 hostname = "shai-hulud";
21
22 specialArgs =
23 inputs
24 // {
25 inherit username hostname system;
26 };
27 in
28 {
29 darwinConfigurations.${hostname} = nix-darwin.lib.darwinSystem {
30 inherit system specialArgs;
31 modules = [
32 ./modules/apps.nix
33 ./modules/fonts.nix
34 ./modules/homebrew.nix
35 ./modules/host-users.nix
36 ./modules/launchd.nix
37 ./modules/nix-core.nix
38 ./modules/system.nix
39 ./modules/wallpapers.nix
40 home-manager.darwinModules.home-manager
41 {
42 home-manager.useGlobalPkgs = true;
43 home-manager.useUserPackages = true;
44 home-manager.extraSpecialArgs = {
45 inherit username hostname;
46 };
47 home-manager.users.${username} = import ./modules/home-manager.nix;
48 }
49 ];
50 };
51
52 formatter.${system} = nixpkgs.legacyPackages.${system}.alejandra;
53 };
54}