Skip to content

Commit 3b0458d

Browse files
committed
fix devbox user
1 parent 64f6ecd commit 3b0458d

File tree

4 files changed

+19
-8
lines changed

4 files changed

+19
-8
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# renovate: datasource=github-tags depName=devbox packageName=jetify-com/devbox
22
ARG DEVBOX_VERSION=0.16.0
33
FROM jetpackio/devbox:${DEVBOX_VERSION}
4-
ENV DEVBOX_USER=vscode
4+
ENV DEVBOX_USER=devbox
55
ENV HM_FLAKE_URI=github:Ramblurr/nix-agent-dev
66
WORKDIR /home/${DEVBOX_USER}
77

.devcontainer/devcontainer.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
1-
// The Dev Container format allows you to configure your environment. At the heart of it
2-
// is a Docker image or Dockerfile which controls the tools available in your environment.
3-
//
4-
// See https://aka.ms/devcontainer.json for more information.
51
{
6-
"name": "Ona",
72
"build": {
83
"context": "..",
94
"dockerfile": ".devcontainer/Dockerfile"
105
},
116
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
12-
"remoteUser": "vscode",
7+
"remoteUser": "devbox",
138
"containerEnv": {
149
"HM_FLAKE_URI": "github:Ramblurr/nix-agent-dev"
1510
},
16-
"postCreateCommand": "nix run github:nix-community/home-manager -- switch --impure --flake github:Ramblurr/nix-agent-dev#vscode"
11+
"postCreateCommand": "nix run github:nix-community/home-manager -- switch --impure --flake github:Ramblurr/nix-agent-dev#devbox"
1712
}

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
inherit inputs;
1313
homeConfigurations.root = import ./users/root.nix inputs;
1414
homeConfigurations.vscode = import ./users/vscode.nix inputs;
15+
homeConfigurations.devbox = import ./users/devbox.nix inputs;
1516
});
1617
}

users/devbox.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This returns homeManagerConfiguration args for flakelight
2+
# Note: flakelight passes inputs to the home-manager configuration via extraSpecialArgs
3+
_: {
4+
system = "x86_64-linux";
5+
modules = [
6+
({ pkgs, lib, inputs, ... }: {
7+
imports = [
8+
../config/home.nix
9+
];
10+
11+
home.username = "devbox";
12+
home.homeDirectory = "/home/devbox";
13+
})
14+
];
15+
}

0 commit comments

Comments
 (0)