darwin compatible commit, touching up on modules, common system ietms

This commit is contained in:
Wyatt J. Miller 2024-12-18 20:09:08 -05:00
parent 1e3ffdf0a3
commit b6653cee0b
5 changed files with 39 additions and 47 deletions

View File

@ -1,4 +1,8 @@
{...}: { {
pkgs,
lib,
...
}: {
imports = [ imports = [
./core.nix ./core.nix
./fonts.nix ./fonts.nix

View File

@ -1,14 +1,14 @@
{ {
pkgs, pkgs,
lib, lib,
...
}: { }: {
fonts.packages = with pkgs; fonts.packages = with pkgs; [
[ nerdfonts
noto-fonts noto-fonts
noto-fonts-emoji noto-fonts-emoji
liberation_ttf liberation_ttf
noto-fonts-cjk noto-fonts-cjk-sans
monaspace monaspace
] ];
++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts);
} }

View File

@ -44,7 +44,6 @@
firefox firefox
wttrbar wttrbar
cliphist cliphist
xivlauncher
patchelf patchelf
]; ];
@ -108,18 +107,16 @@
powertop.enable = false; powertop.enable = false;
}; };
podman = { containers.podman = {
podman = { enable = true;
enable = true; extraPackages = with pkgs; [
extraPackages = with pkgs; [ docker-credential-helpers
docker-credential-helpers toolbox
toolbox cosign
cosign crane
crane podman-tui
podman-tui podman-desktop
podman-desktop ];
];
};
}; };
customNetworking = { customNetworking = {

View File

@ -168,9 +168,8 @@
system.stateVersion = 5; system.stateVersion = 5;
containers.podman = { containers.podman = {
enable = false; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
podman
docker-credential-helpers docker-credential-helpers
cosign cosign
crane crane

View File

@ -4,37 +4,29 @@
pkgs, pkgs,
... ...
}: let }: let
cfg = config.containers; cfg = config.containers.podman;
in { in {
options.containers = { options.containers = {
podman = { podman = {
enable = lib.mkEnableOption "Podman container runtime"; enable = lib.mkEnableOption "Podman container runtime";
dockerCompat = lib.mkEnableOption "Enable Docker compatibility";
extraPackages = lib.mkOption { extraPackages = lib.mkOption {
type = lib.types.listOf lib.types.package; type = lib.types.listOf lib.types.package;
default = []; default = [];
description = "Additional packages to install when Podman is enabled"; description = "Additional container-related packages to install";
}; };
}; };
}; };
config = lib.mkIf cfg.enable (lib.attrsets.optionalAttrs (config.nixpkgs.hostPlatform.isLinux) { config = lib.mkIf cfg.enable {
virtualisation.podman = { environment.systemPackages =
enable = true; [
dockerCompat = cfg.dockerCompat; pkgs.podman
enableOnBoot = true; pkgs.podman-compose
defaultNetwork.settings.dns_enabled = true; pkgs.buildah
}; pkgs.skopeo
} pkgs.dive
// { ]
environment.systemPackages = ++ cfg.extraPackages;
[ };
pkgs.podman-compose
pkgs.buildah
pkgs.skopeo
pkgs.dive
pkgs.container-diff
]
++ cfg.extraPackages;
});
} }