This commit is contained in:
2025-08-25 09:24:08 +02:00
parent 3489b7fe17
commit e36fae4051
5 changed files with 52 additions and 0 deletions

View File

@@ -23,6 +23,7 @@
#applications
./mako.nix
./foot.nix
./zed.nix
#./fcitx5.nix
#secrets

11
home/zed.nix Normal file
View File

@@ -0,0 +1,11 @@
{
pkgs,
lib,
config,
...
}:
{
programs.zed-editor = {
enable = true;
};
}

View File

@@ -23,6 +23,7 @@
../../modules/gunalx.nix
../../modules/pam.nix
../../modules/tailscale.nix
../../modules/podman.nix
];
networking.hostName = "legolas";
@@ -47,6 +48,7 @@
# You can use https://search.nixos.org/ to find more packages (and options).
environment.systemPackages = with pkgs; [
vim
git
alacritty
foot
firefox
@@ -55,6 +57,15 @@
nixfmt-rfc-style
nixfmt-tree
distrobox
distrobox-tui
boxbuddy
gcc
cargo
rustup
cmake
];
# Some programs need SUID wrappers, can be configured further or are

View File

@@ -13,6 +13,7 @@
"wheel"
"tss"
"networking"
"podman"
]; # Enable sudo for the user.
packages = with pkgs; [
];

28
modules/podman.nix Normal file
View File

@@ -0,0 +1,28 @@
{
config,
pkgs,
lib,
...
}:
{
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true; # Required for containers under podman-compose to be able to talk to each other.
};
};
virtualisation.oci-containers.backend = lib.mkDefault "podman";
# Useful other development tools
environment.systemPackages = with pkgs; [
dive # look into docker image layers
podman-tui # status of containers in the terminal
podman-compose # start group of containers for dev
];
}