lots of stuff idk

This commit is contained in:
xunuwu 2024-04-04 19:43:43 +02:00
parent a18ceb4f2e
commit 4e5f0a6e0b
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
39 changed files with 439 additions and 81 deletions

View file

@ -6,6 +6,34 @@
imports = [
#./statistics
];
services.samba = {
enable = true;
package = pkgs.samba4Full;
openFirewall = true;
shares."torrent-downloads" = {
path = "/media/downloads/complete";
browseable = "yes";
"read only" = "yes";
"guest ok" = "no";
};
#shares."decky-cloud-save" = {
# path = "/media/gamesaves";
# browseable = "yes";
# "read only" = "no";
# "guest ok" = "no";
#};
extraConfig = ''
server smb encrypt = required
server min protocol = SMB3_00
'';
};
services.samba-wsdd = {
# This enables autodiscovery on windows since SMB1 (and thus netbios) support was discontinued
enable = true;
openFirewall = true;
};
#virtualisation.docker = {
# enable = true;
# enableOnBoot = true;

View file

@ -0,0 +1,10 @@
{
services.ollama = {
enable = true;
environmentVariables = {
HSA_OVERRIDE_GFX_VERSION = "10.3.0";
};
acceleration = "rocm";
listenAddress = "127.0.0.1:11434";
};
}

View file

@ -1,4 +1,4 @@
{
{config, ...}: {
services.syncthing = {
enable = true;
openDefaultPorts = true;
@ -11,11 +11,11 @@
settings = {
devices = {
"nixdesk" = {
id = "2WCEQPF-2J4U7IK-XRT25FV-NFT2JEM-AVOMDEK-FIJNZ24-7WCBZC2-57CX2AP";
id = "DZEIXRH-WBIEUUW-FFP2SLJ-BTIUPBE-YURLPN7-MUFOR6L-HS27D6G-I25XHQ3";
autoAcceptFolders = true;
};
"redmi-note-10-pro" = {
id = "U6YYTHR-2ZXIEXQ-RNDERSF-CTVSP67-W24VK4Y-5EQRIV5-T7JJW2N-33L7XQV";
id = "MRAHIKH-TNHAKEG-OHMEFXI-BO54SXR-6IL2Y3B-3HVOWZF-ZGTS2OX-YSWTPQF";
autoAcceptFolders = true;
};
"hopper" = {
@ -25,13 +25,13 @@
};
folders = {
"~/secrets" = {
devices = [
"nixdesk"
"redmi-note-10-pro"
"hopper"
];
devices = builtins.attrNames config.services.syncthing.settings.devices;
id = "sfw9y-yusup";
};
"~/docs/xun-megavault" = {
devices = builtins.attrNames config.services.syncthing.settings.devices;
id = "1zkf-wf5r";
};
};
};

View file

@ -0,0 +1,3 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [distrobox];
}

View file

@ -0,0 +1,6 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [docker-compose];
virtualisation.docker = {
enable = true;
};
}

View file

@ -0,0 +1,7 @@
{
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
dockerSocket.enable = true;
};
}

View file

@ -0,0 +1,3 @@
{
virtualisation.waydroid.enable = true;
}