flake.nix
1 { 2 description = "Kubernetes + Argo CD"; 3 inputs = { 4 nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; 5 flake-utils.url = "github:numtide/flake-utils"; 6 nixidy = { 7 url = "github:arnarg/nixidy"; 8 inputs.nixpkgs.follows = "nixpkgs"; 9 }; 10 }; 11 12 outputs = 13 { 14 self, 15 nixpkgs, 16 flake-utils, 17 nixidy, 18 }: 19 (flake-utils.lib.eachDefaultSystem ( 20 system: 21 let 22 pkgs = import nixpkgs { 23 inherit system; 24 }; 25 in 26 { 27 # This declares the available nixidy envs. 28 nixidyEnvs = nixidy.lib.mkEnvs { 29 inherit pkgs; 30 31 envs = { 32 # Currently we only have the one dev env. 33 dev.modules = [ ./env/dev.nix ]; 34 }; 35 }; 36 37 # Handy to have nixidy cli available in the local 38 # flake too. 39 packages.nixidy = nixidy.packages.${system}.default; 40 41 # Useful development shell with nixidy in path. 42 # Run `nix develop` to enter. 43 devShells.default = pkgs.mkShell { 44 buildInputs = [ nixidy.packages.${system}.default ]; 45 }; 46 } 47 )); 48 }