distrobox support
This commit is contained in:
parent
fe5ec84f14
commit
b4fcd36bed
3 changed files with 53 additions and 16 deletions
|
|
@ -3,8 +3,10 @@
|
||||||
{
|
{
|
||||||
# Baseline system tools available everywhere; users run Home Manager standalone.
|
# Baseline system tools available everywhere; users run Home Manager standalone.
|
||||||
config.environment.systemPackages = lib.mkAfter [
|
config.environment.systemPackages = lib.mkAfter [
|
||||||
pkgs.git
|
pkgs.distrobox
|
||||||
|
pkgs.distroshelf
|
||||||
pkgs.ghostty
|
pkgs.ghostty
|
||||||
|
pkgs.git
|
||||||
pkgs.home-manager
|
pkgs.home-manager
|
||||||
pkgs.just
|
pkgs.just
|
||||||
pkgs.libnotify
|
pkgs.libnotify
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
users.groups = {
|
users.groups = {
|
||||||
docker = {};
|
docker = { };
|
||||||
podman = {};
|
podman = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users.admin = {
|
users.users.admin = {
|
||||||
|
|
@ -15,6 +15,18 @@
|
||||||
"docker"
|
"docker"
|
||||||
];
|
];
|
||||||
hashedPassword = "$6$HrwFoHtYRwiTZsYo$gKNOvkQhjalczOLgoTXvVu1MaihYP4BdBnVpWkdoAf.5MAiV2mMPRibYyGv9ti1Q63AhGK7n4wOPjAU0O74mK0";
|
hashedPassword = "$6$HrwFoHtYRwiTZsYo$gKNOvkQhjalczOLgoTXvVu1MaihYP4BdBnVpWkdoAf.5MAiV2mMPRibYyGv9ti1Q63AhGK7n4wOPjAU0O74mK0";
|
||||||
|
subGidRanges = [
|
||||||
|
{
|
||||||
|
count = 65536;
|
||||||
|
startGid = 100000;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
subUidRanges = [
|
||||||
|
{
|
||||||
|
count = 65536;
|
||||||
|
startUid = 100000;
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
security.sudo.wheelNeedsPassword = lib.mkDefault true;
|
security.sudo.wheelNeedsPassword = lib.mkDefault true;
|
||||||
|
|
@ -34,7 +46,9 @@
|
||||||
Environment = [ "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/%u/bin" ];
|
Environment = [ "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/%u/bin" ];
|
||||||
StandardOutput = "journal";
|
StandardOutput = "journal";
|
||||||
StandardError = "journal";
|
StandardError = "journal";
|
||||||
ExecStart = pkgs.writeShellScript "hm-bootstrap.sh" (builtins.readFile ../../scripts/hm-bootstrap.sh);
|
ExecStart = pkgs.writeShellScript "hm-bootstrap.sh" (
|
||||||
|
builtins.readFile ../../scripts/hm-bootstrap.sh
|
||||||
|
);
|
||||||
};
|
};
|
||||||
wantedBy = [ "graphical-session.target" ];
|
wantedBy = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -7,18 +7,39 @@
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
programs.vscode = {
|
programs = {
|
||||||
enable = true;
|
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:
|
# Choose between VS Code and Codium:
|
||||||
# package = pkgs.vscode;
|
# package = pkgs.vscode;
|
||||||
package = pkgs.vscodium;
|
package = pkgs.vscodium;
|
||||||
|
|
||||||
# You can declaratively enable extensions here:
|
# You can declaratively enable extensions here:
|
||||||
profiles.default.extensions = with pkgs.vscode-extensions; [
|
profiles.default.extensions = with pkgs.vscode-extensions; [
|
||||||
dracula-theme.theme-dracula
|
dracula-theme.theme-dracula
|
||||||
yzhang.markdown-all-in-one
|
yzhang.markdown-all-in-one
|
||||||
];
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# programs.emacs.enable = true
|
# programs.emacs.enable = true
|
||||||
|
|
@ -48,7 +69,7 @@
|
||||||
jetbrains-toolbox # fresh versions of Android Studio and other tools
|
jetbrains-toolbox # fresh versions of Android Studio and other tools
|
||||||
# devpod # open-source code spaces
|
# devpod # open-source code spaces
|
||||||
|
|
||||||
pods # Podman desktop application
|
pods # Podman desktop application
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -77,7 +98,7 @@
|
||||||
TERMINAL = "${pkgs.ghostty}/bin/ghostty";
|
TERMINAL = "${pkgs.ghostty}/bin/ghostty";
|
||||||
DEFAULT_TERMINAL = "${pkgs.ghostty}/bin/ghostty";
|
DEFAULT_TERMINAL = "${pkgs.ghostty}/bin/ghostty";
|
||||||
EDITOR = "${pkgs.micro}/bin/micro";
|
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