feat: initial commit
This commit is contained in:
commit
46fad45295
5 changed files with 114 additions and 0 deletions
39
flake.nix
Normal file
39
flake.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
self,
|
||||
}: let
|
||||
pkgs = nixpkgs;
|
||||
|
||||
mkAllSystems = lib.genAttrs [
|
||||
"aarch64-darwin"
|
||||
"aarch64-linux"
|
||||
"i686-linux"
|
||||
"x86_64-darwin"
|
||||
"x86_64-linux"
|
||||
];
|
||||
|
||||
inherit (pkgs) lib;
|
||||
in {
|
||||
formatter = mkAllSystems (system: pkgs.legacyPackages.${system}.alejandra);
|
||||
|
||||
devShells = mkAllSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
inherit (pkgs) mkShell;
|
||||
in rec {
|
||||
default = mkShell {
|
||||
nativeBuildInputs = [pkgs.dnscontrol];
|
||||
|
||||
shellHook = ''
|
||||
echo "Bitte einen deSEC-Auth-Token eingeben:"
|
||||
read -rs DESEC_AUTH_TOKEN
|
||||
export DESEC_AUTH_TOKEN
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue