tangled
alpha
login
or
join now
tjh.dev
/
core
forked from
tangled.org/core
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
login with app password
oppi.li
1 year ago
4abdd6a9
3d7bc5eb
+32
-30
2 changed files
expand all
collapse all
unified
split
flake.nix
legit
templates
login.html
+26
-30
flake.nix
···
15
15
};
16
16
};
17
17
18
18
-
outputs =
19
19
-
{ self
20
20
-
, nixpkgs
21
21
-
, gitignore
22
22
-
, rust-overlay
23
23
-
,
24
24
-
}:
25
25
-
let
26
26
-
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
27
27
-
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
28
28
-
nixpkgsFor = forAllSystems (system:
29
29
-
import nixpkgs {
30
30
-
inherit system;
31
31
-
overlays = [ (import rust-overlay) ];
32
32
-
});
33
33
-
in
34
34
-
{
35
35
-
defaultPackage = forAllSystems (system: self.packages.${system}.legit);
36
36
-
formatter = forAllSystems (system: nixpkgsFor."${system}".alejandra);
37
37
-
devShells = forAllSystems (system:
38
38
-
let
39
39
-
pkgs = nixpkgsFor.${system};
40
40
-
rust-bin = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
41
41
-
in
42
42
-
{
43
43
-
default = pkgs.mkShell {
44
44
-
nativeBuildInputs = [
45
45
-
pkgs.go
46
46
-
pkgs.air
47
47
-
pkgs.templ
18
18
+
outputs = {
19
19
+
self,
20
20
+
nixpkgs,
21
21
+
gitignore,
22
22
+
rust-overlay,
23
23
+
}: let
24
24
+
supportedSystems = ["x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
25
25
+
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
26
26
+
nixpkgsFor = forAllSystems (system:
27
27
+
import nixpkgs {
28
28
+
inherit system;
29
29
+
overlays = [(import rust-overlay)];
30
30
+
});
31
31
+
in {
32
32
+
defaultPackage = forAllSystems (system: self.packages.${system}.legit);
33
33
+
formatter = forAllSystems (system: nixpkgsFor."${system}".alejandra);
34
34
+
devShells = forAllSystems (system: let
35
35
+
pkgs = nixpkgsFor.${system};
36
36
+
rust-bin = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
37
37
+
in {
38
38
+
default = pkgs.mkShell {
39
39
+
nativeBuildInputs = [
40
40
+
pkgs.go
41
41
+
pkgs.air
42
42
+
pkgs.templ
43
43
+
pkgs.gopls
48
44
49
45
pkgs.httpie
50
46
pkgs.bacon
+6
legit/templates/login.html
···
20
20
name="handle"
21
21
placeholder="@username.bsky.social"
22
22
/>
23
23
+
<input
24
24
+
type="password"
25
25
+
id="app_password"
26
26
+
name="app_password"
27
27
+
placeholder="app password"
28
28
+
/>
23
29
</div>
24
30
<button type="submit">Login</button>
25
31
</form>