1
0

flake.nix 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. inputs = {
  3. nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05?shallow=true";
  4. nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-25.05-darwin?shallow=true";
  5. nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable?shallow=true";
  6. darwin.url = "github:lnl7/nix-darwin/nix-darwin-25.05?shallow=true";
  7. darwin.inputs.nixpkgs.follows = "nixpkgs-darwin";
  8. devenv.url = "github:cachix/devenv?shallow=true";
  9. devenv.inputs.nixpkgs.follows = "nixpkgs-unstable";
  10. home-manager.url = "github:nix-community/home-manager/master?shallow=true";
  11. home-manager.inputs.nixpkgs.follows = "nixpkgs";
  12. nixvim.url = "github:nix-community/nixvim/nixos-25.05?shallow=true";
  13. nixvim.inputs.nixpkgs.follows = "nixpkgs";
  14. };
  15. outputs = { self, ... }@inputs:
  16. rec {
  17. lib = import ./lib {
  18. inherit inputs;
  19. inherit (self) outputs;
  20. };
  21. homeConfigurations = {
  22. "thomas@meili" = lib.mkHome {
  23. system = "aarch64-darwin";
  24. modules = [ ./home/meili.nix ];
  25. };
  26. "thomas@modgud" = lib.mkHome {
  27. system = "x86_64-linux";
  28. modules = [ ./home/modgud.nix ];
  29. };
  30. };
  31. nixosConfigurations = {
  32. # modgud = lib.mkSystem {
  33. # system = "x86_64-linux";
  34. # modules = [ ./hosts/modgud ];
  35. # };
  36. # odin = lib.mkSystem {
  37. # system = "x86_64-linux";
  38. # modules = [ ./hosts/odin ];
  39. # };
  40. };
  41. darwinConfigurations = {
  42. meili = lib.mkDarwin {
  43. system = "aarch64-darwin";
  44. modules = [ ./hosts/meili ];
  45. };
  46. };
  47. devShells = lib.mkDevenvShell {
  48. git-hooks.hooks = {
  49. deadnix.enable = true;
  50. nixpkgs-fmt.enable = true;
  51. };
  52. scripts.update.exec = "nix flake update";
  53. };
  54. modules = import ./modules;
  55. overlays = import ./overlays { inherit inputs; };
  56. packages = lib.eachSystem (import ./packages) // lib.eachSystem (system: {
  57. devenv-up = self.devShells.${system}.default.config.procfileScript;
  58. devenv-test = self.devShells.${system}.default.config.test;
  59. });
  60. };
  61. }