disabled incus
This commit is contained in:
parent
f0a93f457e
commit
add2152e3a
6 changed files with 42 additions and 21 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -70,11 +70,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1751211869,
|
||||
"narHash": "sha256-1Cu92i1KSPbhPCKxoiVG5qnoRiKTgR5CcGSRyLpOd7Y=",
|
||||
"lastModified": 1751479989,
|
||||
"narHash": "sha256-M5KgdpVBVcW4HRVq9/OSRbrxlwsQ1ogEKqnvzsClDqU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "b43c397f6c213918d6cfe6e3550abfe79b5d1c51",
|
||||
"rev": "34627c90f062da515ea358360f448da57769236e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
../../modules/users/sma.nix
|
||||
|
||||
# Virtualization configuration
|
||||
../../modules/virtualization/incus.nix
|
||||
# ../../modules/virtualization/incus.nix # Disabled: cowsql build issue
|
||||
../../modules/virtualization/libvirt.nix
|
||||
../../modules/virtualization/podman.nix
|
||||
];
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ];
|
||||
|
|
|
@ -114,15 +114,7 @@ Home lab root: ~a
|
|||
|
||||
(define (cmd-deploy machine-name . args)
|
||||
"Deploy configuration to machine using deploy-rs"
|
||||
(let* ((base-options (parse-deploy-options args))
|
||||
;; Auto-skip checks for local machines to speed up deployment
|
||||
(local-machines '("little-rascal"))
|
||||
(should-skip-checks (member machine-name local-machines))
|
||||
(options (if should-skip-checks
|
||||
(cons '(skip-checks . #t) base-options)
|
||||
base-options)))
|
||||
(when should-skip-checks
|
||||
(log-info "Auto-skipping checks for local machine: ~a" machine-name))
|
||||
(let* ((options (parse-deploy-options args)))
|
||||
(log-info "Deploying to machine: ~a using deploy-rs" machine-name)
|
||||
(if (validate-machine-name machine-name)
|
||||
(let ((result (deploy-machine machine-name "default" options)))
|
||||
|
|
|
@ -20,8 +20,9 @@
|
|||
(define default-config
|
||||
`((homelab-root . "/home/geir/Home-lab")
|
||||
(machines . ((congenital-optimist
|
||||
(type . local)
|
||||
(hostname . "localhost")
|
||||
(type . remote)
|
||||
(hostname . "congenital-optimist.tail807ea.ts.net")
|
||||
(ssh-alias . "congenital-optimist.tail807ea.ts.net")
|
||||
(ssh-user . "sma")
|
||||
(services . (workstation development)))
|
||||
(sleeper-service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue