58 lines
1.3 KiB
Nix
58 lines
1.3 KiB
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration
|
|
./configs
|
|
./users
|
|
];
|
|
|
|
local.yubikey = {
|
|
enable = true;
|
|
serial = "28058247";
|
|
unplug.enable = true;
|
|
};
|
|
|
|
################################################################################
|
|
# Services
|
|
################################################################################
|
|
|
|
# Enable the Docker
|
|
virtualisation.docker.enable = true;
|
|
|
|
# Torrent
|
|
# services.transmission.enable = true;
|
|
|
|
################################################################################
|
|
# Programs
|
|
################################################################################
|
|
services.ollama = {
|
|
enable = true;
|
|
package = pkgs.unstable.ollama;
|
|
};
|
|
|
|
services.plantuml-server = {
|
|
enable = true;
|
|
package = pkgs.unstable.plantuml-server;
|
|
listenPort = 33050;
|
|
};
|
|
|
|
# Fix boot issue
|
|
containers.telegram.bindMounts."/dev/dri/card1" = { };
|
|
|
|
local.programs.communication = {
|
|
telegram = {
|
|
enable = true;
|
|
package = pkgs.unstable.tdesktop;
|
|
};
|
|
simplex-chat = {
|
|
enable = true;
|
|
package = pkgs.unstable.simplex-chat-desktop;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
|
|
environment.shellInit = ''
|
|
[ -n "$DISPLAY" ] && ${pkgs.xorg.xhost}/bin/xhost +local: > /dev/null || true
|
|
'';
|
|
}
|