fix: Don't user system-level names
This commit is contained in:
12
shell.nix
12
shell.nix
@@ -3,22 +3,22 @@
|
|||||||
pkgs ? import sources.nixpkgs { },
|
pkgs ? import sources.nixpkgs { },
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
addUser = pkgs.writeShellApplication rec {
|
addUser = pkgs.writeShellApplication {
|
||||||
name = "adduser";
|
name = "addUser";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
pkgs.openfga-cli
|
pkgs.openfga-cli
|
||||||
pkgs.ripgrep
|
pkgs.ripgrep
|
||||||
];
|
];
|
||||||
text = builtins.readFile ./scripts/${name}.sh;
|
text = builtins.readFile ./scripts/adduser.sh;
|
||||||
};
|
};
|
||||||
delUser = pkgs.writeShellApplication rec {
|
delUser = pkgs.writeShellApplication {
|
||||||
name = "deluser";
|
name = "delUser";
|
||||||
runtimeInputs = [
|
runtimeInputs = [
|
||||||
pkgs.openfga-cli
|
pkgs.openfga-cli
|
||||||
pkgs.ripgrep
|
pkgs.ripgrep
|
||||||
pkgs.sedutil
|
pkgs.sedutil
|
||||||
];
|
];
|
||||||
text = builtins.readFile ./scripts/${name}.sh;
|
text = builtins.readFile ./scripts/deluser.sh;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
pkgs.mkShellNoCC {
|
pkgs.mkShellNoCC {
|
||||||
|
|||||||
Reference in New Issue
Block a user