First attempts on using distrobox

This commit is contained in:
Nina Chlóe Kassandra Reiß
2026-04-08 21:55:18 +02:00
parent e474979699
commit 36585f4206
10 changed files with 139 additions and 62 deletions

View File

@@ -4,30 +4,28 @@
{ config, pkgs, ... }:
let
profile = import ./profile.nix;
profile = import ./profile.nix;
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
./cron-schedule.nix
./home-manager.nix
];
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
./cron-schedule.nix
./home-manager.nix
];
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModprobeConfig = ''
options v4l2loopback video_nr=10 card_label=snapcam exclusive_caps=1
'';
boot.extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModprobeConfig = ''
options v4l2loopback video_nr=10 card_label=snapcam exclusive_caps=1
'';
networking.hostName = profile.hostname; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@@ -36,9 +34,9 @@ boot.extraModprobeConfig = ''
networking.networkmanager = {
enable = true;
plugins = with pkgs; [
networkmanager-ssh
networkmanager-openvpn
networkmanager-strongswan
networkmanager-ssh
networkmanager-openvpn
networkmanager-strongswan
];
};
@@ -85,33 +83,32 @@ boot.extraModprobeConfig = ''
console.keyMap = "de-latin1";
environment.systemPackages = with pkgs; [
wget
strongswan
epiphany
nodejs_24
dive
podman-tui
podman-compose
gmp
gmp.dev
pkg-config
wget
strongswan
nodejs_24
dive
podman-tui
podman-compose
gmp
gmp.dev
pkg-config
];
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
stdenv.cc.cc
zlib
gmp
openssl
curl
glib
gtk3
libGL
xorg.libX11
appimage-run
libgcrypt
libxcrypt
stdenv.cc.cc
zlib
gmp
openssl
curl
glib
gtk3
libGL
xorg.libX11
appimage-run
libgcrypt
libxcrypt
];
};
@@ -140,7 +137,10 @@ boot.extraModprobeConfig = ''
# Enable the OpenSSH daemon.
services.openssh.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
nixpkgs.config.allowUnfree = true;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions