diff --git a/docker_swarm/.envrc b/docker_swarm/.envrc new file mode 100644 index 0000000..c4b17d7 --- /dev/null +++ b/docker_swarm/.envrc @@ -0,0 +1 @@ +use_flake diff --git a/docker_swarm/flake.lock b/docker_swarm/flake.lock new file mode 100644 index 0000000..8823bd7 --- /dev/null +++ b/docker_swarm/flake.lock @@ -0,0 +1,61 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1709126324, + "narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "d465f4819400de7c8d874d50b982301f28a84605", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1709309926, + "narHash": "sha256-VZFBtXGVD9LWTecGi6eXrE0hJ/mVB3zGUlHImUs2Qak=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "79baff8812a0d68e24a836df0a364c678089e2c7", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-23.11", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/docker_swarm/flake.nix b/docker_swarm/flake.nix new file mode 100644 index 0000000..3885d48 --- /dev/null +++ b/docker_swarm/flake.nix @@ -0,0 +1,16 @@ +{ + description = "Ansible development shell"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; + flake-utils.url = "github:numtide/flake-utils"; + }; + + outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: + let pkgs = import nixpkgs { inherit system; }; in + { + devShells.default = pkgs.mkShell { + packages = [ pkgs.ansible ]; + }; + }); +} diff --git a/flake.nix b/flake.nix index dc8375b..742b33c 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "NixOS definitions for our physical servers"; + description = "NixOS definitions for our home servers"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";