disabled incus

This commit is contained in:
Geir Okkenhaug Jerstad 2025-07-04 15:09:23 +02:00
parent f0a93f457e
commit add2152e3a
6 changed files with 42 additions and 21 deletions

View file

@ -12,8 +12,12 @@
# XDG Portal configuration for Wayland/X11 compatibility
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = [pkgs.xdg-desktop-portal-gtk];
extraPortals = [
pkgs.xdg-desktop-portal-wlr
pkgs.xdg-desktop-portal-gtk
];
config.common.default = "*";
config.niri.default = ["wlr" "gtk"];
};
# Display manager and session management

View file

@ -1,14 +1,38 @@
{ config, pkgs, ... }:
let
# Fix cowsql build issue with glibc 2.40
cowsql-fixed = pkgs.cowsql.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or []) ++ [
(pkgs.writeText "cowsql-float-t-fix.patch" ''
--- a/src/lib/serialize.h
+++ b/src/lib/serialize.h
@@ -37,7 +37,9 @@
#define SERIALIZE_H_
#include <uv.h>
+#ifndef _MATH_H
typedef double float_t;
+#endif
struct serialize;
'')
];
});
incus-fixed = pkgs.incus.override {
cowsql = cowsql-fixed;
};
in
{
virtualisation.incus = {
enable = true;
ui.enable = true;
package = pkgs.incus;
package = incus-fixed;
};
environment.systemPackages = with pkgs; [
incus
lxc
environment.systemPackages = [
incus-fixed
pkgs.lxc
];
networking.firewall.allowedTCPPorts = [ 8443 ];