Add direnv support

This commit is contained in:
Julian Mutter 2023-03-11 15:13:19 +01:00
parent 02c12576f7
commit 84dde05100
4 changed files with 16 additions and 13 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ tmp/
/transcoder/transcode.log /transcoder/transcode.log
/.env /.env
video_transcoder.service video_transcoder.service
/.direnv/

23
flake.lock generated
View File

@ -10,8 +10,9 @@
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "flake-utils", "owner": "numtide",
"type": "indirect" "repo": "flake-utils",
"type": "github"
} }
}, },
"flake-utils_2": { "flake-utils_2": {
@ -36,16 +37,15 @@
"pypi-deps-db": "pypi-deps-db" "pypi-deps-db": "pypi-deps-db"
}, },
"locked": { "locked": {
"lastModified": 1654084003, "lastModified": 1678343959,
"narHash": "sha256-j/XrVVistvM+Ua+0tNFvO5z83isL+LBgmBi9XppxuKA=", "narHash": "sha256-LGFLMTf9gEPYzLuny3idKQOGiZFVhmjR2VGvio4chMI=",
"owner": "DavHau", "owner": "DavHau",
"repo": "mach-nix", "repo": "mach-nix",
"rev": "7e14360bde07dcae32e5e24f366c83272f52923f", "rev": "f60b9833469adb18e57b4c9e8fc4804fce82e3da",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "mach-nix", "id": "mach-nix",
"ref": "3.5.0",
"type": "indirect" "type": "indirect"
} }
}, },
@ -66,16 +66,17 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1678298120, "lastModified": 1678519861,
"narHash": "sha256-iaV5xqgn29xy765Js3EoZePQyZIlLZA3pTYtTnKkejg=", "narHash": "sha256-jo1swATOxWxZU5gnuOEnazr5680o97xlkL6qAHv6Hew=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1e383aada51b416c6c27d4884d2e258df201bc11", "rev": "20e0820a5ff2c3dc76114368a94c9a1c11bb6cdc",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "owner": "NixOS",
"type": "indirect" "repo": "nixpkgs",
"type": "github"
} }
}, },
"pypi-deps-db": { "pypi-deps-db": {

View File

@ -3,9 +3,9 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs"; inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils"; inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.mach-nix.url = "github:mach-nix/3.5.0"; # inputs.mach-nix.url = "github:mach-nix/3.5.0";
outputs = { self, nixpkgs, flake-utils, mach-nix }: outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system: flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let pkgs = nixpkgs.legacyPackages.${system}; let pkgs = nixpkgs.legacyPackages.${system};
in { in {