Merge pull request #2646 from Naalunth/nix-flake

Added a nix flake
This commit is contained in:
Slavi Pantaleev 2023-04-17 09:15:52 +03:00 committed by GitHub
commit dbfc054304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View file

@ -5,6 +5,7 @@
/roles/**/files/scratchpad
.DS_Store
.python-version
flake.lock
# ignore roles pulled by ansible-galaxy
/roles/galaxy/*

19
flake.nix Normal file
View file

@ -0,0 +1,19 @@
{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs, ... }:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in
{
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = with pkgs; [
just
python311Packages.ansible-core
python311Packages.passlib
];
LC_ALL = "C.UTF-8";
LC_CTYPE = "C.UTF-8";
};
};
}