flake.nix 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. zen-browser.url = "github:0xc000022070/zen-browser-flake/main?shallow=true";
  15. zen-browser.inputs.nixpkgs.follows = "nixpkgs-unstable";
  16. sessionx.url = "github:tstachl/tmux-sessionx/feature-speed-up-find";
  17. # sessionx.url = "path:/Users/thomas/workspace/tstachl/tmux-sessionx";
  18. sessionx.inputs.nixpkgs.follows = "nixpkgs-unstable";
  19. };
  20. outputs = { self, ... } @ inputs: rec {
  21. lib = import ./lib {
  22. inherit inputs;
  23. inherit (self) outputs;
  24. };
  25. homeConfigurations = {
  26. "thomas@meili" = lib.mkHome {
  27. system = "aarch64-darwin";
  28. modules = [ ./home/meili.nix ];
  29. };
  30. "thomas@modgud" = lib.mkHome {
  31. system = "x86_64-linux";
  32. modules = [ ./home/modgud.nix ];
  33. };
  34. "thomas@fedora" = lib.mkHome {
  35. system = "aarch64-linux";
  36. modules = [ ./home/fedora.nix ];
  37. };
  38. };
  39. nixosConfigurations = {
  40. # modgud = lib.mkSystem {
  41. # system = "x86_64-linux";
  42. # modules = [ ./hosts/modgud ];
  43. # };
  44. # odin = lib.mkSystem {
  45. # system = "x86_64-linux";
  46. # modules = [ ./hosts/odin ];
  47. # };
  48. };
  49. darwinConfigurations = {
  50. meili = lib.mkDarwin {
  51. system = "aarch64-darwin";
  52. modules = [ ./hosts/meili ];
  53. };
  54. };
  55. devShells = lib.mkDevenvShell {
  56. default = import ./devenv.nix;
  57. };
  58. modules = import ./modules;
  59. overlays = import ./overlays { inherit inputs; };
  60. packages = lib.eachSystem (system: {
  61. devenv-up = self.devShells.${system}.default.config.procfileScript;
  62. devenv-test = self.devShells.${system}.default.config.test;
  63. } // import ./packages { });
  64. templates = {
  65. devenv = {
  66. path = ./templates/devenv;
  67. description = "A template for a devenv environment";
  68. };
  69. };
  70. };
  71. }