This commit is contained in:
Xory 2025-11-11 15:38:51 +02:00
parent 9c9d53c299
commit 2cc3c91941
5 changed files with 31 additions and 3 deletions

View file

@ -2,12 +2,13 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, inputs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
(inputs.nixos-hardware.nixosModules.framework-16-7040-amd)
];
# Bootloader.
@ -17,6 +18,8 @@
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
systemd.services.home-manager-xory.enable = false;
environment.persistence."/persistent" = {
enable = true;
hideMounts = true;
@ -24,6 +27,7 @@
"/var/log"
"/var/lib/bluetooth"
"/var/lib/nixos"
"/var/lib/ollama-models"
"/etc/NetworkManager/system-connections"
];
files = [
@ -31,6 +35,8 @@
];
};
services.fwupd.enable = true;
networking.hostName = "nullstar"; # Define your hostname.
# Enable networking
@ -157,7 +163,8 @@
hardware.keyboard.qmk.enable = true;
services.ollama.enable = true;
services.ollama.acceleration = "cuda";
services.ollama.acceleration = "rocm";
services.ollama.models = "/var/lib/ollama-models";
# Enable automatic login for the user.
services.displayManager.autoLogin.enable = true;
@ -190,6 +197,8 @@
programs.virt-manager.enable = true;
virtualisation.libvirtd.enable = true;
virtualisation.libvirtd.qemu.swtpm.enable = true;
virtualisation.libvirtd.qemu.vhostUserPackages = [ pkgs.virtiofsd ];
virtualisation.spiceUSBRedirection.enable = true;
virtualisation.docker.enable = true;

View file

@ -89,6 +89,7 @@
programs.waybar.enable = true;
programs.wofi.enable = true;
services.dunst.enable = true;
services.hyprpolkitagent.enable = true;
home.stateVersion = "25.05";