desktop stuff

This commit is contained in:
Simon Gardling 2024-09-22 01:44:54 -04:00
parent effcf49fc5
commit d533653e97
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
8 changed files with 66 additions and 18 deletions

View File

@ -31,7 +31,10 @@
#kernel options
boot = {
kernelPackages = pkgs.linuxPackages_cachyos-lto;
# kernelPackages = pkgs.linuxPackages_cachyos-lto;
kernelPackages = pkgs.linuxPackages_6_10;
supportedFilesystems = [ "zfs" ];
kernel.sysctl = {
#for profiling

View File

@ -332,16 +332,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1726953717,
"narHash": "sha256-FwwoaRi8tatStzCkz7Wrdyv0XI+xKqPPc0iru1oNQCk=",
"lastModified": 1726755586,
"narHash": "sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK+Wk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b1b7d7f3c5d3f898ca9646593cdeb378a655b446",
"rev": "c04d5652cfa9742b1d519688f65d1bbccea9eb7e",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}

View File

@ -2,8 +2,7 @@
description = "A simple NixOS flake";
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs";

View File

@ -2,6 +2,8 @@
{
hostName = "${hostname}";
hostId = "cfe0ff46";
networkmanager = {
enable = true;
insertNameservers = [

View File

@ -99,6 +99,26 @@
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};
services.ollama = {
enable = true;
acceleration = "rocm";
environmentVariables = {
HCC_AMDGPU_TARGET = "gfx1031"; # used to be necessary, but doesn't seem to anymore
};
rocmOverrideGfx = "10.3.1";
};
services.open-webui = {
enable = true;
openFirewall = true;
port = 8082;
environment = {
# Disable authentication
WEBUI_AUTH = "False";
PYDANTIC_SKIP_VALIDATING_CORE_SCHEMAS = "True";
};
};
systemd.packages = with pkgs; [ lact ];
systemd.services.lactd.wantedBy = [ "multi-user.target" ];

View File

@ -201,16 +201,16 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1726953717,
"narHash": "sha256-FwwoaRi8tatStzCkz7Wrdyv0XI+xKqPPc0iru1oNQCk=",
"lastModified": 1726755586,
"narHash": "sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK+Wk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b1b7d7f3c5d3f898ca9646593cdeb378a655b446",
"rev": "c04d5652cfa9742b1d519688f65d1bbccea9eb7e",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
@ -281,11 +281,11 @@
]
},
"locked": {
"lastModified": 1726885519,
"narHash": "sha256-wrXknshJMRLv91KQD5d7ovUqJ70FlDM7XeG/upSsKgM=",
"lastModified": 1726972233,
"narHash": "sha256-FlL/bNESOtDQoczRhmPfReNAmLqVg+dAX4HectPOOf0=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "a66e16cb21e4428224925dbf1b66238c727dda0a",
"rev": "36d73192555e569d27579f6c486fea3ab768823c",
"type": "github"
},
"original": {

View File

@ -2,8 +2,7 @@
description = "My nixOS flake for home-manager";
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/master";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";

View File

@ -48,7 +48,7 @@ in
{
home.packages = with pkgs; [
(optimizeWithFlags
(gpt4all.overrideAttrs {
(gpt4all.overrideAttrs (old: {
src = fetchFromGitHub {
fetchSubmodules = true;
owner = "nomic-ai";
@ -61,7 +61,32 @@ in
./gpt4all-HEAD-embeddings-model.patch
./gpt4all-HEAD-disable-settings-err.patch
];
})
cmakeFlags = [
"-DKOMPUTE_OPT_BUILD_SHADERS=ON"
"-DKOMPUTE_OPT_DISABLE_VULKAN_VERSION_CHECK=ON"
"-DKOMPUTE_OPT_USE_BUILT_IN_FMT=OFF"
"-DKOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER=OFF"
"-DKOMPUTE_OPT_USE_BUILT_IN_SPDLOG=OFF"
"-DLLMODEL_KOMPUTE=ON"
"-DLLMODEL_VULKAN=OFF"
"-DLLMODEL_CUDA=OFF"
"-DLLMODEL_ROCM=OFF"
];
nativeBuildInputs = old.nativeBuildInputs ++ [
glslang
];
buildInputs = old.buildInputs ++ [
vulkan-tools
kdePackages.qtshadertools
libdrm
vulkan-loader
ocl-icd
];
}))
# compile flags
[
"-Ofast"