desktop stuff

This commit is contained in:
2024-09-22 01:44:54 -04:00
parent effcf49fc5
commit d533653e97
8 changed files with 66 additions and 18 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -99,6 +99,26 @@
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers 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.packages = with pkgs; [ lact ];
systemd.services.lactd.wantedBy = [ "multi-user.target" ]; systemd.services.lactd.wantedBy = [ "multi-user.target" ];

View File

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

View File

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

View File

@@ -48,7 +48,7 @@ in
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
(optimizeWithFlags (optimizeWithFlags
(gpt4all.overrideAttrs { (gpt4all.overrideAttrs (old: {
src = fetchFromGitHub { src = fetchFromGitHub {
fetchSubmodules = true; fetchSubmodules = true;
owner = "nomic-ai"; owner = "nomic-ai";
@@ -61,7 +61,32 @@ in
./gpt4all-HEAD-embeddings-model.patch ./gpt4all-HEAD-embeddings-model.patch
./gpt4all-HEAD-disable-settings-err.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 # compile flags
[ [
"-Ofast" "-Ofast"