use distrobox4nix

This commit is contained in:
EdenQwQ 2025-03-12 06:05:31 +00:00
parent 26124a0e4d
commit 42447b4e74
7 changed files with 30 additions and 16 deletions

16
flake.lock generated
View file

@ -110,6 +110,21 @@
"type": "github"
}
},
"distrobox4nix": {
"locked": {
"lastModified": 1741561924,
"narHash": "sha256-eJuZoG+vBTt6t0bjTvZRcQW2eAgD5tCIW/CkPnkbA0k=",
"owner": "aguirre-matteo",
"repo": "distrobox4nix",
"rev": "fc6578785ece239f64c4ab5f50a7c1f06e3880ad",
"type": "github"
},
"original": {
"owner": "aguirre-matteo",
"repo": "distrobox4nix",
"type": "github"
}
},
"firefox-gnome-theme": {
"flake": false,
"locked": {
@ -834,6 +849,7 @@
"root": {
"inputs": {
"agenix": "agenix",
"distrobox4nix": "distrobox4nix",
"flake-parts": "flake-parts",
"home-manager": "home-manager_2",
"nh": "nh",

View file

@ -67,5 +67,6 @@
nh.url = "github:viperML/nh";
treefmt-nix.url = "github:numtide/treefmt-nix";
agenix.url = "github:ryantm/agenix";
distrobox4nix.url = "github:aguirre-matteo/distrobox4nix";
};
}

View file

@ -7,5 +7,6 @@
./zed.nix
./nixvim
./R.nix
./distrobox.nix
];
}

View file

@ -0,0 +1,11 @@
{
programs.distrobox = {
enable = true;
containers = {
python-project = {
image = "fedora:latest";
additional_packages = "python3 python3-pip git python3-numpy python3-scipy python3-matplotlib python3-pandas";
};
};
};
}

View file

@ -30,19 +30,6 @@
];
functions = {
fish_greeting = "";
# fish_command_not_found =
# /*
# fish
# */
# ''
# function fish_command_not_found
# if test -e /run/.containerenv -o -e /.dockerenv
# distrobox-host-exec $argv
# else
# __fish_default_command_not_found_handler $argv
# end
# end
# '';
};
};
};

View file

@ -23,6 +23,7 @@ let
inputs.nixvim.homeManagerModules.nixvim
inputs.agenix.homeManagerModules.default
../secrets/age.nix
inputs.distrobox4nix.homeManagerModule
];
in
{

View file

@ -88,8 +88,6 @@
printing.enable = true;
flatpak.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
@ -155,7 +153,6 @@
curl
gnumake
cmake
distrobox
ntfs3g
base16-schemes
home-manager