2024-12-15 16:44:09 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
2024-04-16 02:51:46 +03:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration
|
|
|
|
./configs
|
|
|
|
./users
|
|
|
|
];
|
|
|
|
|
2024-12-15 15:47:54 +03:00
|
|
|
|
2024-04-16 02:51:46 +03:00
|
|
|
################################################################################
|
|
|
|
# Programs
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Services
|
|
|
|
################################################################################
|
2024-12-15 15:47:54 +03:00
|
|
|
local.services.byedpi = {
|
|
|
|
enable = true;
|
2024-12-15 16:44:09 +03:00
|
|
|
enableProxy = true;
|
2024-12-15 15:47:54 +03:00
|
|
|
settings = {
|
|
|
|
port = 1081;
|
|
|
|
fake = 1;
|
|
|
|
ttl = 8;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-28 16:50:02 +03:00
|
|
|
# local.services.i2pd.enable = true;
|
|
|
|
# local.services.kubo.enable = true;
|
2024-04-16 02:51:46 +03:00
|
|
|
|
|
|
|
local.services.octoprint.enable = true;
|
|
|
|
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
# Torrent client
|
2024-11-28 16:50:02 +03:00
|
|
|
/*
|
2024-09-02 12:33:36 +03:00
|
|
|
services.transmission = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
rpc-bind-address = "192.168.7.10";
|
|
|
|
rpc-port = 9091;
|
|
|
|
rpc-whitelist = "192.168.7.*";
|
|
|
|
};
|
|
|
|
};
|
2024-11-28 16:50:02 +03:00
|
|
|
*/
|
2024-06-18 15:03:22 +03:00
|
|
|
|
|
|
|
services.ollama = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.unstable.ollama;
|
2024-08-21 14:43:58 +03:00
|
|
|
acceleration = "rocm";
|
2024-06-18 15:03:22 +03:00
|
|
|
};
|
2024-08-07 12:55:03 +03:00
|
|
|
|
|
|
|
programs.sniffnet.enable = true;
|
2024-08-21 11:20:30 +03:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Containers
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
environment.shellInit = ''
|
|
|
|
[ -n "$DISPLAY" ] && ${pkgs.xorg.xhost}/bin/xhost +local: > /dev/null || true
|
|
|
|
'';
|
|
|
|
|
2024-09-05 18:45:09 +03:00
|
|
|
local.programs.communication = {
|
|
|
|
telegram = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.unstable.tdesktop;
|
|
|
|
};
|
2024-09-06 03:12:54 +03:00
|
|
|
simplex-chat = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.unstable.simplex-chat-desktop;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
2024-09-05 18:45:09 +03:00
|
|
|
};
|
|
|
|
|
2024-11-28 16:50:02 +03:00
|
|
|
/*
|
2024-08-21 11:20:30 +03:00
|
|
|
containers.games = {
|
|
|
|
autoStart = true;
|
|
|
|
bindMounts = {
|
|
|
|
"${config.services.transmission.settings.download-dir}" = { };
|
|
|
|
"/tmp/.X11-unix" = { };
|
2024-09-02 12:30:53 +03:00
|
|
|
"/run/opengl-driver/lib" = { };
|
|
|
|
"/run/opengl-driver-32/lib" = { };
|
2024-08-21 11:20:30 +03:00
|
|
|
};
|
2024-09-27 23:13:34 +03:00
|
|
|
allowedDevices = [
|
|
|
|
{
|
|
|
|
modifier = "r";
|
|
|
|
node = "/dev/kfd";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
modifier = "r";
|
|
|
|
node = "/dev/dri";
|
|
|
|
}
|
|
|
|
];
|
2024-08-21 11:20:30 +03:00
|
|
|
config = { pkgs, ... }: {
|
2024-08-22 20:30:00 +03:00
|
|
|
nixpkgs.config.allowUnfree = true;
|
2024-08-21 11:20:30 +03:00
|
|
|
system.stateVersion = "23.11";
|
2024-08-22 20:30:00 +03:00
|
|
|
|
|
|
|
users.groups.transmission = config.users.groups.transmission;
|
2024-08-21 11:20:30 +03:00
|
|
|
users.users.john = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/john";
|
|
|
|
password = "hello";
|
2024-08-22 20:30:00 +03:00
|
|
|
extraGroups = [ "pulse-access" "transmission" ];
|
2024-08-21 11:20:30 +03:00
|
|
|
packages = with pkgs; [
|
2024-08-22 20:30:00 +03:00
|
|
|
# wine
|
2024-08-21 11:20:30 +03:00
|
|
|
wineWowPackages.stable
|
|
|
|
winetricks
|
2024-08-22 20:30:00 +03:00
|
|
|
# community edition
|
|
|
|
fallout-ce
|
|
|
|
fallout2-ce
|
|
|
|
openmw
|
2024-08-27 22:53:54 +03:00
|
|
|
openxcom
|
2024-08-22 20:30:00 +03:00
|
|
|
# tools
|
2024-09-09 02:15:22 +03:00
|
|
|
innoextract
|
2024-08-22 20:30:00 +03:00
|
|
|
vim
|
|
|
|
unzip
|
2024-09-27 23:13:34 +03:00
|
|
|
p7zip
|
|
|
|
unrar-wrapper
|
2024-08-22 20:30:00 +03:00
|
|
|
wget
|
2024-08-21 11:20:30 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
|
|
DISPLAY = ":0";
|
2024-08-22 20:30:00 +03:00
|
|
|
PULSE_SERVER = "tcp:127.0.0.1:4713";
|
2024-08-22 22:27:39 +03:00
|
|
|
XAUTHORITY = "/home/john/.Xauthority";
|
2024-08-22 20:30:00 +03:00
|
|
|
|
2024-08-21 11:20:30 +03:00
|
|
|
WINEPREFIX = "/home/john/.wine";
|
|
|
|
WINEARCH = "win32";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-11-28 16:50:02 +03:00
|
|
|
*/
|
2024-04-16 02:51:46 +03:00
|
|
|
}
|