| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- {
- inputs = {
- nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05?shallow=true";
- nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-25.05-darwin?shallow=true";
- nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable?shallow=true";
- nixos-facter-modules.url = "github:nix-community/nixos-facter-modules?shallow=true";
- # nixos-facter-modules.inputs.nixpkgs.follows = "nixpkgs";
- darwin.url = "github:lnl7/nix-darwin/nix-darwin-25.05?shallow=true";
- darwin.inputs.nixpkgs.follows = "nixpkgs-darwin";
- devenv.url = "github:cachix/devenv?shallow=true";
- devenv.inputs.nixpkgs.follows = "nixpkgs-unstable";
- home-manager.url = "github:nix-community/home-manager/master?shallow=true";
- home-manager.inputs.nixpkgs.follows = "nixpkgs";
- nixvim.url = "github:nix-community/nixvim/nixos-25.05?shallow=true";
- nixvim.inputs.nixpkgs.follows = "nixpkgs";
- impermanence.url = "github:nix-community/impermanence?shallow=true";
- # impermanence.inputs.nixpkgs.follows = "nixpkgs";
- agenix.url = "github:ryantm/agenix?shallow=true";
- agenix.inputs.nixpkgs.follows = "nixpkgs";
- secrets.url = "git+ssh://[email protected]/control/secrets.git";
- # secrets.url = "path:/Users/thomas/workspace/control/secrets";
- disko.url = "github:nix-community/disko?shallow=true";
- disko.inputs.nixpkgs.follows = "nixpkgs";
- };
- outputs =
- { self, ... }@inputs:
- let
- inherit (self) outputs;
- in
- rec {
- lib = import ./lib { inherit inputs outputs; };
- modules = import ./modules { inherit inputs outputs; };
- overlays = import ./overlays { inherit inputs outputs; };
- formatter = lib.eachSystem (pkgs: pkgs.nixfmt-tree);
- packages = lib.eachSystem (pkgs: import ./packages { inherit pkgs; });
- devShells = lib.eachSystem (pkgs: import ./shell.nix { inherit pkgs; });
- templates = {
- devenv = {
- path = ./templates/devenv;
- description = "A template for a devenv environment";
- };
- };
- homeConfigurations = {
- "thomas@meili" = lib.mkHome {
- system = "aarch64-darwin";
- modules = [ ./home/meili.nix ];
- };
- "thomas@modgud" = lib.mkHome {
- system = "x86_64-linux";
- modules = [ ./home/modgud.nix ];
- };
- "thomas@fedora" = lib.mkHome {
- system = "aarch64-linux";
- modules = [ ./home/fedora.nix ];
- };
- "thomas@odin" = lib.mkHome {
- system = "x86_64-linux";
- modules = [ ./home/odin.nix ];
- };
- };
- nixosConfigurations = {
- # modgud = lib.mkSystem {
- # system = "x86_64-linux";
- # modules = [ ./hosts/modgud ];
- # };
- odin = lib.mkSystem {
- system = "x86_64-linux";
- modules = [ ./hosts/odin ];
- };
- };
- darwinConfigurations = {
- meili = lib.mkDarwin {
- system = "aarch64-darwin";
- modules = [ ./hosts/meili ];
- };
- };
- };
- }
|