Skip to content

Commit

Permalink
Merge pull request #2 from dogeorg/dev-env-updates
Browse files Browse the repository at this point in the history
Developer Env - Configuration.nix updates
  • Loading branch information
blendtwenty authored Feb 21, 2025
2 parents 75a7ecb + 43bd2ea commit 99e0a9a
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions src/development_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,63 @@ security.wrappers._dbxroot = {
**Please note:** Please fix these paths, they assume you have cloned `dogeboxd` into the users home directory. If you cloned them elsewhere, update the paths.
**Please note:** There are multiple instances of `$USER` that need replacing, please update all of them.

#### Additionally, enable these necessary experimental features:

```
nix.settings.experimental-features = [ "nix-command" "flakes" ];
```

#### Example modified configuration file (specific to Macos+Orbstack users)

This is how a configuration.nix file appears for a developer running Orbstack on Macos.

```
{ config, pkgs, modulesPath, ... }:
{
imports =
[
# Include the default lxd configuration.
"${modulesPath}/virtualisation/lxc-container.nix"
# Include the container-specific autogenerated configuration.
./incus.nix
# Include the OrbStack-specific configuration.
./orbstack.nix
# Include the Dogebox specific configuration
"/home/pat/data/nix/dogebox.nix"
];
# Enable these necessary experimental features
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# Add Vim (optional)
environment.systemPackages = [ pkgs.git pkgs.vim ];
security.wrappers.dbx = {
source = "/Users/pat/dev/dogeboxd/build/dbx";
owner = "pat";
group = "users";
};
security.wrappers.dogeboxd = {
source = "/Users/pat/dev/dogeboxd/build/dogeboxd";
capabilities = "cap_net_bind_service=+ep";
owner = "pat";
group = "users";
};
security.wrappers._dbxroot = {
source = "/Users/pat/dev/dogeboxd/build/_dbxroot";
owner = "root";
group = "root";
setuid = true;
};
users.users.pat = {
... // unchanged
}
```

#### Rebuild

Once you've added the above, you can rebuild your VM to ensure it's in a proper state to execute everything.
Expand Down

0 comments on commit 99e0a9a

Please sign in to comment.