Compare commits
4 commits
4dca932223
...
2a3784696b
Author | SHA1 | Date | |
---|---|---|---|
2a3784696b | |||
ebffa75c63 | |||
f5ca68b55c | |||
5ec1de397e |
3 changed files with 48 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ globalData, pkgs, ... }:
|
{ config, globalData, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -36,7 +36,45 @@
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.ollama;
|
package = pkgs.unstable.ollama;
|
||||||
|
acceleration = "rocm";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.sniffnet.enable = true;
|
programs.sniffnet.enable = true;
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
# 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,11 @@
|
||||||
# extra configs
|
# extra configs
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
hardware.graphics = {
|
||||||
|
enable = true;
|
||||||
|
enable32Bit = true;
|
||||||
|
};
|
||||||
|
|
||||||
# All monitors in the right order
|
# All monitors in the right order
|
||||||
# Source: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L83
|
# Source: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/x11/xserver.nix#L83
|
||||||
services.xserver.xrandrHeads = [
|
services.xserver.xrandrHeads = [
|
||||||
|
|
|
@ -88,6 +88,10 @@ in
|
||||||
]
|
]
|
||||||
))
|
))
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs.zsh.initExtra = ''
|
||||||
|
source <(kubectl completion zsh)
|
||||||
|
'';
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.mkIf cfg.psql.enable {
|
(lib.mkIf cfg.psql.enable {
|
||||||
|
|
Loading…
Reference in a new issue