lots of stuff idk
This commit is contained in:
parent
a18ceb4f2e
commit
4e5f0a6e0b
39 changed files with 439 additions and 81 deletions
|
@ -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;
|
||||
|
|
10
system/services/ollama.nix
Normal file
10
system/services/ollama.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
3
system/services/virt/distrobox.nix
Normal file
3
system/services/virt/distrobox.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [distrobox];
|
||||
}
|
6
system/services/virt/docker.nix
Normal file
6
system/services/virt/docker.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [docker-compose];
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
7
system/services/virt/podman.nix
Normal file
7
system/services/virt/podman.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
autoPrune.enable = true;
|
||||
dockerSocket.enable = true;
|
||||
};
|
||||
}
|
3
system/services/virt/waydroid.nix
Normal file
3
system/services/virt/waydroid.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
virtualisation.waydroid.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue