tangled
alpha
login
or
join now
dunkirk.sh
/
dots
3
fork
atom
Kieran's opinionated (and probably slightly dumb) nix config
3
fork
atom
overview
issues
pulls
pipelines
feat: add wut
dunkirk.sh
1 month ago
5b91fe39
9e3ffdc6
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+60
5 changed files
expand all
collapse all
unified
split
flake.nix
machines
atalanta
default.nix
modules
home
apps
wut.nix
system
shell.nix
packages
wut.nix
+1
flake.nix
···
161
161
162
162
zmx-binary = prev.callPackage ./packages/zmx.nix { };
163
163
bore-auth = prev.callPackage ./packages/bore-auth.nix { };
164
164
+
wut = prev.callPackage ./packages/wut.nix { };
164
165
herald = inputs.herald.packages.${prev.system}.default;
165
166
})
166
167
];
+1
machines/atalanta/default.nix
···
22
22
};
23
23
24
24
zmx-binary = prev.callPackage ../../packages/zmx.nix { };
25
25
+
wut = prev.callPackage ../../packages/wut.nix { };
25
26
})
26
27
];
27
28
};
+25
modules/home/apps/wut.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
config,
4
4
+
pkgs,
5
5
+
...
6
6
+
}:
7
7
+
let
8
8
+
cfg = config.atelier.shell.wut;
9
9
+
in
10
10
+
{
11
11
+
options.atelier.shell.wut = {
12
12
+
enable = lib.mkEnableOption "wut - ephemeral Git worktree management";
13
13
+
};
14
14
+
15
15
+
config = lib.mkIf cfg.enable {
16
16
+
home.packages = [
17
17
+
pkgs.wut
18
18
+
];
19
19
+
20
20
+
programs.zsh.initContent = ''
21
21
+
# wut - Git worktree management shell integration
22
22
+
eval "$(wut init)"
23
23
+
'';
24
24
+
};
25
25
+
}
+1
modules/home/system/shell.nix
···
1269
1269
];
1270
1270
1271
1271
atelier.shell.git.enable = lib.mkDefault true;
1272
1272
+
atelier.shell.wut.enable = lib.mkDefault true;
1272
1273
};
1273
1274
}
+32
packages/wut.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildGoModule,
4
4
+
fetchFromGitHub,
5
5
+
}:
6
6
+
7
7
+
buildGoModule rec {
8
8
+
pname = "wut";
9
9
+
version = "0.1.2";
10
10
+
11
11
+
src = fetchFromGitHub {
12
12
+
owner = "simonbs";
13
13
+
repo = "wut";
14
14
+
rev = "v${version}";
15
15
+
hash = "sha256-PEUHjiLA9d0xOoOepIlpCoDhIdLvYhC1WId878pLd6Q=";
16
16
+
};
17
17
+
18
18
+
vendorHash = "sha256-lIRqcB0iEgzx+yLLy1i4T1s1w6AV4lTjW+b9sJKCr5s=";
19
19
+
20
20
+
ldflags = [
21
21
+
"-s"
22
22
+
"-w"
23
23
+
];
24
24
+
25
25
+
meta = with lib; {
26
26
+
description = "Worktrees Unexpectedly Tolerable - ephemeral Git worktrees without the ceremony";
27
27
+
homepage = "https://github.com/simonbs/wut";
28
28
+
license = licenses.mit;
29
29
+
maintainers = [ ];
30
30
+
mainProgram = "wut";
31
31
+
};
32
32
+
}