Migrate config (frues-pc machine for now) from https://git.peprolinbot.com/peprolinbot/nixos-config, with improvements
This commit is contained in:
parent
ebd178b0a5
commit
7606f9e051
66 changed files with 9465 additions and 73 deletions
37
users/pedro/home-configuration/distrobox.nix
Normal file
37
users/pedro/home-configuration/distrobox.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
osConfig,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
hasDE = osConfig.hm-pedro.de != "none";
|
||||
in {
|
||||
programs.distrobox = {
|
||||
enable = true;
|
||||
enableSystemdUnit = true;
|
||||
containers = {
|
||||
debian13 = {
|
||||
image = "debian:13";
|
||||
entry = false;
|
||||
additional_packages = "git";
|
||||
init_hooks = [
|
||||
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker"
|
||||
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker-compose"
|
||||
];
|
||||
};
|
||||
|
||||
kali = {
|
||||
image = "docker.io/kalilinux/kali-rolling:latest";
|
||||
entry = false;
|
||||
init_hooks = [
|
||||
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker"
|
||||
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker-compose"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs;
|
||||
if hasDE
|
||||
then [boxbuddy]
|
||||
else [];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue