1
0

flake.nix 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. nixos-facter-modules.url = "github:nix-community/nixos-facter-modules?shallow=true";
  7. # nixos-facter-modules.inputs.nixpkgs.follows = "nixpkgs";
  8. darwin.url = "github:lnl7/nix-darwin/nix-darwin-25.05?shallow=true";
  9. darwin.inputs.nixpkgs.follows = "nixpkgs-darwin";
  10. devenv.url = "github:cachix/devenv?shallow=true";
  11. devenv.inputs.nixpkgs.follows = "nixpkgs-unstable";
  12. home-manager.url = "github:nix-community/home-manager/master?shallow=true";
  13. home-manager.inputs.nixpkgs.follows = "nixpkgs";
  14. nixvim.url = "github:nix-community/nixvim/nixos-25.05?shallow=true";
  15. nixvim.inputs.nixpkgs.follows = "nixpkgs";
  16. impermanence.url = "github:nix-community/impermanence?shallow=true";
  17. # impermanence.inputs.nixpkgs.follows = "nixpkgs";
  18. agenix.url = "github:ryantm/agenix?shallow=true";
  19. agenix.inputs.nixpkgs.follows = "nixpkgs";
  20. secrets.url = "git+ssh://[email protected]/control/secrets.git";
  21. # secrets.url = "path:/Users/thomas/workspace/control/secrets";
  22. disko.url = "github:nix-community/disko?shallow=true";
  23. disko.inputs.nixpkgs.follows = "nixpkgs";
  24. };
  25. outputs =
  26. { self, ... }@inputs:
  27. let
  28. inherit (self) outputs;
  29. in
  30. rec {
  31. lib = import ./lib { inherit inputs outputs; };
  32. modules = import ./modules { inherit inputs outputs; };
  33. overlays = import ./overlays { inherit inputs outputs; };
  34. formatter = lib.eachSystem (pkgs: pkgs.nixfmt-tree);
  35. packages = lib.eachSystem (pkgs: import ./packages { inherit pkgs; });
  36. devShells = lib.eachSystem (pkgs: import ./shell.nix { inherit pkgs; });
  37. templates = {
  38. devenv = {
  39. path = ./templates/devenv;
  40. description = "A template for a devenv environment";
  41. };
  42. };
  43. homeConfigurations = {
  44. "thomas@meili" = lib.mkHome {
  45. system = "aarch64-darwin";
  46. modules = [ ./home/meili.nix ];
  47. };
  48. "thomas@modgud" = lib.mkHome {
  49. system = "x86_64-linux";
  50. modules = [ ./home/modgud.nix ];
  51. };
  52. "thomas@fedora" = lib.mkHome {
  53. system = "aarch64-linux";
  54. modules = [ ./home/fedora.nix ];
  55. };
  56. "thomas@odin" = lib.mkHome {
  57. system = "x86_64-linux";
  58. modules = [ ./home/odin.nix ];
  59. };
  60. };
  61. nixosConfigurations = {
  62. # modgud = lib.mkSystem {
  63. # system = "x86_64-linux";
  64. # modules = [ ./hosts/modgud ];
  65. # };
  66. odin = lib.mkSystem {
  67. system = "x86_64-linux";
  68. modules = [ ./hosts/odin ];
  69. };
  70. };
  71. darwinConfigurations = {
  72. meili = lib.mkDarwin {
  73. system = "aarch64-darwin";
  74. modules = [ ./hosts/meili ];
  75. };
  76. };
  77. };
  78. }