distrobox support
This commit is contained in:
parent
fe5ec84f14
commit
b4fcd36bed
3 changed files with 53 additions and 16 deletions
|
|
@ -7,18 +7,39 @@
|
|||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
programs = {
|
||||
distrobox = {
|
||||
enable = true;
|
||||
settings = {
|
||||
container_always_pull = "1";
|
||||
container_generate_entry = "1";
|
||||
container_manager = "podman";
|
||||
container_name_default = "ubuntu";
|
||||
container_image_default = "ghcr.io/ublue-os/ubuntu-toolbox:latest";
|
||||
non_interactive = "1";
|
||||
skip_workdir = "1";
|
||||
};
|
||||
containers = {
|
||||
ubuntu = {
|
||||
image = "ubuntu:latest";
|
||||
entry = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
home-manager.enable = true;
|
||||
vscode = {
|
||||
enable = true;
|
||||
|
||||
# Choose between VS Code and Codium:
|
||||
# package = pkgs.vscode;
|
||||
package = pkgs.vscodium;
|
||||
# Choose between VS Code and Codium:
|
||||
# package = pkgs.vscode;
|
||||
package = pkgs.vscodium;
|
||||
|
||||
# You can declaratively enable extensions here:
|
||||
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
dracula-theme.theme-dracula
|
||||
yzhang.markdown-all-in-one
|
||||
];
|
||||
# You can declaratively enable extensions here:
|
||||
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||
dracula-theme.theme-dracula
|
||||
yzhang.markdown-all-in-one
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# programs.emacs.enable = true
|
||||
|
|
@ -48,7 +69,7 @@
|
|||
jetbrains-toolbox # fresh versions of Android Studio and other tools
|
||||
# devpod # open-source code spaces
|
||||
|
||||
pods # Podman desktop application
|
||||
pods # Podman desktop application
|
||||
|
||||
];
|
||||
|
||||
|
|
@ -77,7 +98,7 @@
|
|||
TERMINAL = "${pkgs.ghostty}/bin/ghostty";
|
||||
DEFAULT_TERMINAL = "${pkgs.ghostty}/bin/ghostty";
|
||||
EDITOR = "${pkgs.micro}/bin/micro";
|
||||
DBX_CONTAINER_HOME_PREFIX = "$HOME/distrobox";
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue