llama.cpp installed, games in progress

This commit is contained in:
bogale 2026-10-11 20:14:58 +09:00
commit 6fc02cb1e1
9 changed files with 41 additions and 16 deletions

View file

@ -7,7 +7,7 @@
swapDevices = [ { device = "/var/swapfile"; } ]; swapDevices = [ { device = "/var/swapfile"; } ];
users.users.root.hashedPasswordFile = "/secrets/user/root-pw"; users.users.root.hashedPasswordFile = "/secrets/user/root-pw";
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
environment.systemPackages = with pkgs; [ jq _7zz sbctl openssl python314 ]; environment.systemPackages = with pkgs; [ jq _7zz sbctl openssl python314 speedtest-go ];
fileSystems = { fileSystems = {
"/".options = [ "noatime" ]; "/".options = [ "noatime" ];
"/boot".options = [ "noatime" ]; "/boot".options = [ "noatime" ];

View file

@ -1,8 +1,10 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
programs.niri.enable = true; programs.niri.enable = true;
security.apparmor.enable = true;
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
imports = [ ../common.nix ./hardware.nix ]; imports = [ ../common.nix ./hardware.nix ];
boot.kernelParams = [ "hibernate.compressor=lz4" ];
users.users.bogale = { users.users.bogale = {
uid = 1551; uid = 1551;
isNormalUser = true; isNormalUser = true;
@ -25,6 +27,7 @@
}; };
services = { services = {
tuned.enable = true; tuned.enable = true;
flatpak.enable = true;
pipewire = { pipewire = {
enable = true; enable = true;
pulse.enable = true; pulse.enable = true;

View file

@ -5,6 +5,7 @@
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
boot = { boot = {
kernelModules = [ "kvm-amd" ]; kernelModules = [ "kvm-amd" ];
kernelParams = [ "ttm.pages_limit=3014656" ];
initrd = { initrd = {
luks.devices.root.device = "/dev/disk/by-uuid/70ac6613-2e6c-4817-a0ce-43a97efb8bab"; luks.devices.root.device = "/dev/disk/by-uuid/70ac6613-2e6c-4817-a0ce-43a97efb8bab";
availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ]; availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ];

View file

@ -3,13 +3,10 @@
imports = [ ./common.nix ]; imports = [ ./common.nix ];
wayland.windowManager.niri.enable = true; wayland.windowManager.niri.enable = true;
xdg.configFile."niri/config.kdl".source = ./mods/niri.kdl; xdg.configFile."niri/config.kdl".source = ./mods/niri.kdl;
home = {
username = "bogale";
homeDirectory = "/home/bogale";
packages = with pkgs; [ bluez brave-origin libqalculate bibata-cursors ];
};
programs = { programs = {
mpv.enable = true;
alacritty.enable = true; alacritty.enable = true;
bash.sessionVariables.TTS_MODEL = "ggml-org/Qwen3-TTS-12Hz-1.7B-Base-GGUF";
noctalia = { noctalia = {
enable = true; enable = true;
systemd.enable = true; systemd.enable = true;
@ -29,4 +26,21 @@
brightness-night = 0.6; brightness-night = 0.6;
}; };
}; };
home = {
username = "bogale";
homeDirectory = "/home/bogale";
packages = with pkgs; [
bluez
heroic
qbittorrent
thunderbird
brave-origin
libqalculate
bibata-cursors
ffmpeg-headless
llama-cpp-vulkan
telegram-desktop
nvtopPackages.amd
];
};
} }

View file

@ -6,7 +6,6 @@
packages = with pkgs; [ ncdu yt-dlp ]; packages = with pkgs; [ ncdu yt-dlp ];
}; };
programs = { programs = {
home-manager.enable = true;
ssh = { ssh = {
enable = true; enable = true;
enableDefaultConfig = false; enableDefaultConfig = false;

View file

@ -1,7 +1,12 @@
include "./noctalia.kdl"; include "./noctalia.kdl";
gestures { hot-corners { off; }; }; gestures { hot-corners { off; }; };
hotkey-overlay { skip-at-startup; }; hotkey-overlay { skip-at-startup; };
environment { QT_QPA_PLATFORMTHEME "qt6ct"; };
screenshot-path "~/Multimedia/Screenshots/%Y-%m-%d_%H-%M-%S.png"; screenshot-path "~/Multimedia/Screenshots/%Y-%m-%d_%H-%M-%S.png";
window-rule {
match app-id="mpv";
open-fullscreen true;
};
cursor { cursor {
xcursor-size 24; xcursor-size 24;
xcursor-theme "Bibata-Modern-Amber"; xcursor-theme "Bibata-Modern-Amber";
@ -13,7 +18,7 @@ layout {
window-rule { window-rule {
open-floating false; open-floating false;
clip-to-geometry true; clip-to-geometry true;
geometry-corner-radius 24; geometry-corner-radius 8;
}; };
input { input {
touchpad { touchpad {

View file

@ -3,7 +3,7 @@ order = [ "default" ]
[bar.default] [bar.default]
center = [ "workspaces" ] center = [ "workspaces" ]
end = [ "tray", "notifications", "battery", "keyboard_layout" ] end = [ "tray", "keyboard_layout", "battery", "notifications" ]
margin_ends = 0 margin_ends = 0
start = [ "date", "clock", "sysmon" ] start = [ "date", "clock", "sysmon" ]
widget_spacing = 12 widget_spacing = 12

View file

@ -5,9 +5,12 @@
username = "root"; username = "root";
homeDirectory = "/root"; homeDirectory = "/root";
}; };
programs.bash.initExtra = '' programs.bash = {
session() { shellAliases.dd = "dd bs=1M conv=fsync status=progress";
initExtra = ''
user-session() {
systemd-run -tGM $1@ --user --wait $SHELL systemd-run -tGM $1@ --user --wait $SHELL
} }
''; '';
};
} }

View file

@ -60,13 +60,12 @@
tmpfiles.rules = [ "d /srv/tftp" ]; tmpfiles.rules = [ "d /srv/tftp" ];
services.pxeboot = { services.pxeboot = {
before = [ "nfs-server.service" ]; before = [ "nfs-server.service" ];
after = [ "wg-quick-awg0.service" ];
requiredBy = [ "nfs-server.service" ]; requiredBy = [ "nfs-server.service" ];
requires = [ "wg-quick-awg0.service" ];
path = with pkgs; [ xz curl e2fsprogs grub2_efi util-linux ]; path = with pkgs; [ xz curl e2fsprogs grub2_efi util-linux ];
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;
TimeoutStartSec = "infinity";
ExecStop = pkgs.writeShellScript "stop.sh" '' ExecStop = pkgs.writeShellScript "stop.sh" ''
set -e set -e
for distro in arch fedora; do for distro in arch fedora; do
@ -130,6 +129,7 @@
mkdir -p /srv/nfs/$distro mkdir -p /srv/nfs/$distro
cd /srv/nfs/$distro cd /srv/nfs/$distro
if [ ! -e $distro.iso ]; then if [ ! -e $distro.iso ]; then
until curl --head --max-time 3 https://www.google.com; do sleep 5; done
curl -C - "$url" -Lo $distro.iso.tmp curl -C - "$url" -Lo $distro.iso.tmp
mv $distro.iso{.tmp,} mv $distro.iso{.tmp,}
sha256sum $distro.iso | grep $hash sha256sum $distro.iso | grep $hash