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

16
flake.lock generated
View file

@ -35,6 +35,21 @@
"type": "github"
}
},
"nixos-hardware": {
"locked": {
"lastModified": 1762463231,
"narHash": "sha256-hv1mG5j5PTbnWbtHHomzTus77pIxsc4x8VrMjc7+/YE=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "52113c4f5cfd1e823001310e56d9c8d0699a6226",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1761114652,
@ -55,6 +70,7 @@
"inputs": {
"home-manager": "home-manager",
"impermanence": "impermanence",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs"
}
}

View file

@ -3,6 +3,7 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable/";
nixos-hardware.url = "github:NixOS/nixos-hardware/";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
impermanence.url = "github:nix-community/impermanence";

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";

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.