various fixes

This commit is contained in:
Dmitriy Kholkin 2023-07-26 21:21:48 +03:00
parent 1d13913c7b
commit d9b315aabf
7 changed files with 21 additions and 5 deletions

View File

@ -1,6 +1,8 @@
{
dns-mapping = [
{ name = "ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "api.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "auth.ataraxiadev.com"; type = "A"; value = "100.64.0.1"; }
{ name = "bathist.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "browser.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "cache.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
@ -42,7 +44,9 @@
{ name = "vw.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "webmail.ataraxiadev.com"; type = "A"; value = "100.64.0.3"; }
{ name = "ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "api.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "auth.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::1"; }
{ name = "bathist.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "browser.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }
{ name = "cache.ataraxiadev.com"; type = "AAAA"; value = "fd7a:115c:a1e0::3"; }

View File

@ -19,8 +19,7 @@ let
inherit (builtins) concatMap;
inherit (lib) mkIf;
homeDirectory = config.home-manager.users.${config.mainuser}.home.homeDirectory;
homeDirectory = config.home-manager.users.${config.mainuser}.home.homeDirectory or /home/${config.mainuser};
in {
options = let
inherit (lib) mkOption mkEnableOption;

View File

@ -16,6 +16,8 @@ with config.deviceSpecific; {
pkgs.intel-media-driver
] else if devInfo.gpu.vendor == "amd" then [
# pkgs.amdvlk
pkgs.rocm-opencl-icd
pkgs.rocm-opencl-runtime
] else [ ];
extraPackages32 = lib.mkIf (devInfo.gpu.vendor == "amd") [
# pkgs.driversi686Linux.amdvlk

View File

@ -9,7 +9,10 @@
sockets = 1; cores = 1; threads = 2;
};
devices = {
disks = [ { diskFile = "/media/nas/libvirt/images/fedora-synapse.img"; type = "raw"; } ];
disks = [
{ diskFile = "/media/nas/libvirt/images/fedora-matrix-root.img"; type = "raw"; targetName = "vda"; }
{ diskFile = "/media/nas/libvirt/images/fedora-matrix-synapse.img"; type = "raw"; targetName = "vdb"; }
];
network = {
macAddress = "00:16:3e:5b:49:bf";
interfaceType = "bridge";

View File

@ -6,7 +6,9 @@ in {
virtualisation.oci-containers.containers.openbooks = {
autoStart = true;
image = "docker.io/evanbuss/openbooks:4.5.0";
cmd = [ "--name" "AtaraxiaDev" "--persist" "--searchbot" "searchook" ];
cmd = [
"--name" "AtaraxiaDev" "--persist" "--searchbot" "searchook" "--tls"
];
ports = [ "127.0.0.1:8097:80/tcp" ];
volumes = [
"${nas-path}/media/books/openbooks:/books"

View File

@ -35,7 +35,7 @@ with config.deviceSpecific; {
};
"hypervisor" = {
hostname = "192.168.0.10";
user = "ataraxia";
user = config.mainuser;
};
"matrix.pve" = {
hostname = "192.168.0.11";

View File

@ -26,4 +26,10 @@ dd if=$1 of=$2 iflag=direct oflag=direct bs=64K conv=sparse
```bash
zfs create -V 2G -b $(getconf PAGESIZE) -o logbias=throughput -o sync=always -o primarycache=metadata -o secondarycache=none -o com.sun:auto-snapshot=false -o compression=zle zroot/enc/swap
```
* disable offloading
```bash
ethtool --offload eth0 rx off tx off
```