Skip to content

Commit 0afc4f1

Browse files
authored
chore: fix nix flake (#3259)
1 parent 80ce284 commit 0afc4f1

File tree

3 files changed

+89
-18
lines changed

3 files changed

+89
-18
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.DS_Store
44
.python-version
55
.idea/
6-
flake.lock
6+
.direnv/
77

88
# ignore roles pulled by ansible-galaxy
99
/roles/galaxy/*

flake.lock

+60
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+28-17
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
{
2-
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
3-
4-
outputs = { self, nixpkgs, ... }:
5-
let
6-
pkgs = import nixpkgs { system = "x86_64-linux"; };
7-
in
8-
{
9-
devShell.x86_64-linux = pkgs.mkShell {
10-
buildInputs = with pkgs; [
11-
just
12-
python311Packages.ansible-core
13-
python311Packages.passlib
14-
];
15-
LC_ALL = "C.UTF-8";
16-
LC_CTYPE = "C.UTF-8";
17-
};
18-
};
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
outputs = {
7+
self,
8+
nixpkgs,
9+
flake-utils,
10+
}:
11+
flake-utils.lib.eachDefaultSystem
12+
(
13+
system: let
14+
pkgs = import nixpkgs {
15+
inherit system;
16+
};
17+
in
18+
with pkgs; {
19+
devShells.default = mkShell {
20+
buildInputs = [
21+
just
22+
ansible
23+
];
24+
shellHook = ''
25+
echo "$(ansible --version)"
26+
'';
27+
};
28+
}
29+
);
1930
}

0 commit comments

Comments
 (0)