Compare commits

...

6 Commits

Author SHA1 Message Date
2011068784 obs 2026-04-13 22:51:14 -04:00
fb8e597a43 fix: ollama defined twice different version bug 2026-04-13 12:00:50 -04:00
4c525f9335 fix: home-manager build bug 2026-04-13 11:33:41 -04:00
d834b0be80 fix: home manager flake requirement 2026-04-13 11:25:31 -04:00
848323bb4a flake 2026-04-13 11:10:47 -04:00
ce420d867c ollama 2026-04-13 10:52:34 -04:00
3 changed files with 119 additions and 24 deletions

View File

@@ -1,14 +1,14 @@
# Edit this configuration file to define what should be installed on your system. Help is available in the configuration.nix(5) man page, on https://search.nixos.org/options and in the NixOS manual (`nixos-help`). # Edit this configuration file to define what should be installed on your system. Help is available in the configuration.nix(5) man page, on https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }: { config, lib, pkgs, inputs, ... }:
{ {
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
<home-manager/nixos>
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
programs.hyprland.enable = true; programs.hyprland.enable = true;
programs.steam = { programs.steam = {
@@ -200,7 +200,8 @@
packages = with pkgs; [ packages = with pkgs; [
prismlauncher # minecraft launcher prismlauncher # minecraft launcher
discord-canary discord-canary
godot # 4.5.1 for now # godot # 4.5.1 for now
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.godot_4
nextcloud-client nextcloud-client
steam steam
signal-desktop signal-desktop
@@ -213,8 +214,6 @@
gcc gcc
xauth xauth
burpsuite burpsuite
ollama
ollama-rocm
python3 python3
direnv # develop projects in custom environments direnv # develop projects in custom environments
# hyprshot # screenshots # hyprshot # screenshots
@@ -228,6 +227,7 @@
qbittorrent # arrr qbittorrent # arrr
mpv # arrr mpv # arrr
wireshark wireshark
obs-studio
]; ];
}; };
@@ -271,14 +271,10 @@
}; };
services.ollama = { services.ollama = {
enable = false; enable = true;
package = pkgs.ollama;
acceleration = "rocm"; acceleration = "rocm";
environmentVariables = { host = "0.0.0.0";
# Force Ollama to only see the dedicated GPU
HIP_VISIBLE_DEVICES = "0";
# Optional: Force the GPU architecture if discovery still fails
HSA_OVERRIDE_GFX_VERSION = "10.3.0";
};
}; };
services.pulseaudio.enable = false; # Use Pipewire services.pulseaudio.enable = false; # Use Pipewire
@@ -337,18 +333,6 @@
}; };
networking.firewall.allowedTCPPorts = [2121]; networking.firewall.allowedTCPPorts = [2121];
# MatLab
nixpkgs.overlays = let
nix-matlab = import (builtins.fetchTarball "https://gitlab.com/doronbehar/nix-matlab/-/archive/master/nix-matlab-master.tar.gz");
in [
nix-matlab.overlay
(
final: prev: {
# Your own overlays...
}
)
];
# Binaries auto linked # Binaries auto linked
programs.nix-ld.enable = true; programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [ programs.nix-ld.libraries = with pkgs; [
@@ -360,6 +344,18 @@
openssl openssl
curl curl
expat expat
wayland
libxkbcommon
libGL
gtk3
glib
pango
harfbuzz
cairo
gdk-pixbuf
webkitgtk_4_1
libsoup_3
gobject-introspection
]; ];

66
flake.lock generated Normal file
View File

@@ -0,0 +1,66 @@
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1775425411,
"narHash": "sha256-KY6HsebJHEe5nHOWP7ur09mb0drGxYSzE3rQxy62rJo=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0d02ec1d0a05f88ef9e74b516842900c41f0f2fe",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.11",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1776067740,
"narHash": "sha256-B35lpsqnSZwn1Lmz06BpwF7atPgFmUgw1l8KAV3zpVQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "7e495b747b51f95ae15e74377c5ce1fe69c1765f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1775710090,
"narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "4c1018dae018162ec878d42fec712642d214fdfa",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable"
}
}
},
"root": "root",
"version": 7
}

33
flake.nix Normal file
View File

@@ -0,0 +1,33 @@
{
description = "Default NixOS Flake Configuration";
inputs = {
# The primary source for packages
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
# Optional: Unstable branch for things like Ollama or Hyprland
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, ... }@inputs: {
nixosConfigurations."alien" = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
home-manager.nixosModules.home-manager
{
nixpkgs.overlays = [
(final: prev: {
ollama = nixpkgs-unstable.legacyPackages.${prev.system}.ollama;
})
];
}
];
};
};
}