nixbook: nixvim fixes, add devcontainer script
This commit is contained in:
parent
8964da1663
commit
24de630982
5 changed files with 44 additions and 26 deletions
|
|
@ -19,7 +19,6 @@ in {
|
|||
home.packages = [
|
||||
pkgs.thunderbird
|
||||
pkgs.remmina
|
||||
pkgs.devcontainer
|
||||
(import ../../lib/mkapp.nix "slack" {
|
||||
inherit pkgs browser;
|
||||
desktopName = "Slack";
|
||||
|
|
@ -30,6 +29,19 @@ in {
|
|||
app-id = pwa.teams;
|
||||
desktopName = "Microsoft Teams";
|
||||
})
|
||||
pkgs.devcontainer
|
||||
(pkgs.writeShellScriptBin "devcontainer-open" (let
|
||||
jq = "${pkgs.jq}/bin/jq";
|
||||
devcontainer = "${pkgs.devcontainer}/bin/devcontainer";
|
||||
in ''
|
||||
res=$(${devcontainer} up --workspace-folder .)
|
||||
outcome=$(echo $res | ${jq} -r '.outcome')
|
||||
[[ $outcome = "success" ]] || exit 1
|
||||
containerId=$(echo $res | ${jq} -r '.containerId')
|
||||
remoteWorkspaceFolder=$(echo $res | ${jq} -r '.remoteWorkspaceFolder')
|
||||
docker exec -it --workdir=$remoteWorkspaceFolder $containerId bash
|
||||
''))
|
||||
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue