| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- {
- 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";
- # impermanence.inputs.nixpkgs.follows = "nixpkgs";
- sops-nix.url = "github:mic92/sops-nix?shallow=true";
- sops-nix.inputs.nixpkgs.follows = "nixpkgs";
- disko.url = "github:nix-community/disko?shallow=true";
- disko.inputs.nixpkgs.follows = "nixpkgs";
- };
- outputs = { self, ... } @ inputs: rec {
- lib = import ./lib {
- inherit inputs;
- inherit (self) outputs;
- };
- 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 ];
- };
- };
- devShells = lib.mkDevenvShell {
- default = import ./devenv.nix;
- };
- modules = import ./modules;
- overlays = import ./overlays { inherit inputs; };
- packages = lib.eachSystem (system: {
- devenv-up = self.devShells.${system}.default.config.procfileScript;
- devenv-test = self.devShells.${system}.default.config.test;
- } // import ./packages { });
- templates = {
- devenv = {
- path = ./templates/devenv;
- description = "A template for a devenv environment";
- };
- };
- };
- }
|