chore: pretty up with alejandra

This commit is contained in:
Peritia 2025-09-22 16:16:02 +02:00
parent 7bbda6140f
commit 37b85877bb
75 changed files with 584 additions and 452 deletions

View file

@ -13,13 +13,14 @@
# - Adds podman + podman-compose to system packages
# - Enables D-Bus socket activation for Podman
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.podman;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.podman;
in {
options.nyx-module.system.podman = {
enable = lib.mkEnableOption "Enable Podman (system module)";
@ -33,7 +34,7 @@ in
config = lib.mkIf cfg.enable {
virtualisation.podman.enable = true;
users.users.${cfg.username}.extraGroups = [ "podman" ];
users.users.${cfg.username}.extraGroups = ["podman"];
environment.systemPackages = with pkgs; [
podman
@ -41,8 +42,8 @@ in
];
# Optional: enable Podman socket activation
services.dbus.packages = [ pkgs.podman ];
services.dbus.packages = [pkgs.podman];
assertions = [
{
assertion = cfg.username != "";