2024-08-21 11:20:30 +03:00
|
|
|
{ config, globalData, pkgs, ... }:
|
2024-04-16 02:51:46 +03:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration
|
|
|
|
./configs
|
|
|
|
./users
|
|
|
|
];
|
|
|
|
|
2024-06-17 15:08:19 +03:00
|
|
|
# local.yubikey.enable = true;
|
2024-05-20 18:47:21 +03:00
|
|
|
|
2024-04-16 02:51:46 +03:00
|
|
|
################################################################################
|
|
|
|
# Programs
|
|
|
|
################################################################################
|
|
|
|
local.programs.browsers.tor-browser = {
|
|
|
|
enable = true;
|
|
|
|
container = {
|
|
|
|
enable = true;
|
|
|
|
externalInterface = "wg0";
|
|
|
|
sshAuthorizedKeys = globalData.publicKeys.users.jan;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Services
|
|
|
|
################################################################################
|
|
|
|
local.services.i2pd.enable = true;
|
2024-07-31 16:30:02 +03:00
|
|
|
local.services.kubo.enable = true;
|
2024-04-16 02:51:46 +03:00
|
|
|
|
|
|
|
local.services.octoprint.enable = true;
|
|
|
|
|
|
|
|
virtualisation.docker.enable = true;
|
|
|
|
# Torrent client
|
|
|
|
services.transmission.enable = true;
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
containers.games = {
|
|
|
|
autoStart = true;
|
|
|
|
bindMounts = {
|
|
|
|
"${config.services.transmission.settings.download-dir}" = { };
|
|
|
|
"/tmp/.X11-unix" = { };
|
|
|
|
};
|
|
|
|
config = { pkgs, ... }: {
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
users.users.john = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/john";
|
|
|
|
password = "hello";
|
|
|
|
extraGroups = [ "pulse-access" ];
|
|
|
|
packages = with pkgs; [
|
|
|
|
wineWowPackages.stable
|
|
|
|
winetricks
|
|
|
|
gnome.nautilus
|
|
|
|
apulse
|
|
|
|
];
|
|
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
|
|
DISPLAY = ":0";
|
|
|
|
WINEPREFIX = "/home/john/.wine";
|
|
|
|
WINEARCH = "win32";
|
|
|
|
PULSE_SERVER = "tcp:127.0.0.1:4713";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-16 02:51:46 +03:00
|
|
|
}
|