added podman and shortcut for nixos rebuilds

This commit is contained in:
2026-08-16 11:16:11 -07:00
parent da513216a3
commit 8f61297dcb
8 changed files with 186 additions and 31 deletions

View File

@@ -1,10 +1,11 @@
{ ... }:
{
imports = [
./terminal.nix
./browser.nix
./communication.nix
./dev.nix
];
imports = [
./terminal.nix
./browser.nix
./communication.nix
./dev.nix
./virt.nix
];
}

View File

@@ -1,25 +1,48 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
neovim
uv
rustup
ghidra
antigravity-cli
pi-coding-agent
environment.systemPackages = with pkgs; [
# Core Editors & AI Agents
neovim
antigravity-cli
pi-coding-agent
# Clang & LLVM Toolchain
llvmPackages_latest.clang
llvmPackages_latest.lld
llvmPackages_latest.lldb
llvmPackages_latest.llvm
llvmPackages_latest.clang-tools
llvmPackages_latest.libcxx
# Languages & Toolchains
uv
rustup
# Nix Tools
nil
nixfmt
statix
];
# Clang & LLVM Toolchain
llvmPackages_latest.clang
llvmPackages_latest.lld
llvmPackages_latest.lldb
llvmPackages_latest.llvm
llvmPackages_latest.clang-tools
llvmPackages_latest.libcxx
# Debuggers, Tracing & Profiling
gdb
rr
strace
ltrace
lsof
valgrind
heaptrack
linuxPackages.perf
flamegraph
# Decompilers, Disassemblers & Binary Analysis
ghidra
cutter
binwalk
binutils
elfutils
pahole
hexyl
imhex
# Nix Tooling
nil
nixfmt
statix
];
}

View File

@@ -20,7 +20,7 @@
ollama = {
enable = true;
package = pkgs.ollama-cuda;
package = pkgs.unstable.ollama-cuda;
host = "0.0.0.0";
port = 11434;
user = "ollama";
@@ -33,6 +33,6 @@
environment.systemPackages = with pkgs; [
comfy-ui-cuda
ollama-cuda
unstable.ollama-cuda
];
}

64
modules/apps/virt.nix Normal file
View File

@@ -0,0 +1,64 @@
{ pkgs, ... }:
{
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
};
};
incus = {
enable = true;
ui.enable = true;
};
spiceUSBRedirection.enable = true;
};
networking.nftables.enable = true;
programs.virt-manager.enable = true;
users.users.anish.extraGroups = [
"libvirtd"
"kvm"
"incus-admin"
];
environment.systemPackages = with pkgs; [
# Container management & inspection
dive
podman-tui
docker-compose
podman-compose
lazydocker
ctop
skopeo
buildah
# Distro isolation & integration
distrobox
boxbuddy
# Virtual machines & tools
qemu_kvm
virt-manager
virt-viewer
spice
spice-gtk
spice-protocol
virtio-win
win-spice
quickemu
quickgui
vagrant
];
}

View File

@@ -1,4 +1,4 @@
{ ... }:
{ inputs, ... }:
{
nix = {
@@ -20,4 +20,13 @@
};
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [
(final: prev: {
unstable = import inputs.nixpkgs-unstable {
inherit (prev) system;
inherit (prev) config;
};
})
];
}