Merge branch 'master' of ssh://git.nx2.site:20022/nx2/dotfiles

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-05-17 19:14:01 +02:00
5 changed files with 139 additions and 121 deletions

6
flake.lock generated
View File

@@ -346,11 +346,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1715534503, "lastModified": 1715787315,
"narHash": "sha256-5ZSVkFadZbFP1THataCaSf0JH2cAH3S29hU9rrxTEqk=", "narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2057814051972fa1453ddfb0d98badbea9b83c06", "rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -1,5 +1,4 @@
{ config, pkgs, pkgs-unstable, rice, ... }: { pkgs, pkgs-unstable, rice, ... }:
{ {
home = { home = {
packages = with pkgs; [ packages = with pkgs; [
@@ -28,6 +27,9 @@
insert = "bar"; insert = "bar";
select = "underline"; select = "underline";
}; };
soft-wrap = {
enable = true;
};
line-number = "relative"; line-number = "relative";
color-modes = true; color-modes = true;
bufferline = "always"; bufferline = "always";
@@ -45,6 +47,7 @@
newline = ""; newline = "";
tab = ""; tab = "";
}; };
}; };
}; };
languages.language = [{ languages.language = [{
@@ -176,7 +179,7 @@
}; };
"ui.statusline" = { "ui.statusline" = {
"fg" = blue.bright; "fg" = blue.bright;
# "bg" = black.base; "bg" = black.base;
}; };
"ui.statusline.inactive" = { "ui.statusline.inactive" = {
"fg" = red.bright; "fg" = red.bright;

View File

@@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, lib, system, user, allowed, secrets, ... }: {pkgs-unstable, lib, user, ... }:
lib.mkIf (user != "tv") lib.mkIf (user != "tv")
{ {
home.packages = [ home.packages = [
@@ -6,54 +6,54 @@ lib.mkIf (user != "tv")
]; ];
home.file.".config/hyprland-autoname-workspaces/config.toml".text = '' home.file.".config/hyprland-autoname-workspaces/config.toml".text = ''
version = "1.1.13" version = "1.1.14"
[class] [class]
Signal = "󱅵"
DEFAULT = "{class}"
libreoffice-writer = ""
pavucontrol = "󰕾"
"epicgameslauncher.exe" = "󰯷"
"riotclientux.exe" = "󰰌"
"[Cc]ode" = "󰨞"
VirtualBox = "" VirtualBox = ""
KiCad = ""
Gimp = ""
code-oss = "󰨞"
VSCodium = "󰨞"
Alacritty = ""
kitty = ""
vesktop = "󰙯"
"cyberpunk2077.exe" = "󰾲"
"Tor Browser" = "󰾔"
"[Tt]hunderbird" = ""
Element = "󰘨"
blueman-manager = "󰂯"
obsidian = "󰠮"
libreoffice-calc = ""
zoom = "󰬡"
mpv = ""
chatterino = ""
"com.obsproject.Studio" = ""
"leagueclientux.exe" = "󰰌"
"[sS]potify" = ""
"org.remmina.Remmina" = "󰢹"
steam = "󰓓" steam = "󰓓"
"galaxyclient.exe" = "󰮡" "VirtualBox Manager" = ""
"com.obsproject.Studio" = ""
"[Ff]irefox" = "󰈹" "[Ff]irefox" = "󰈹"
"[Tt]hunderbird" = ""
pcbnew = "" pcbnew = ""
".*.exe" = "" ".*.exe" = ""
Chromium = "" Element = "󰘨"
Signal = "󱅵"
Gimp = ""
VSCodium = "󰨞"
"[sS]potify" = ""
virt-manager = "" virt-manager = ""
Bitwarden = "" lutris = "󰊗"
DEFAULT = "{class}"
"epicgameslauncher.exe" = "󰯷"
"[Cc]ode" = "󰨞"
"galaxyclient.exe" = "󰮡"
pavucontrol = "󰕾"
"Tor Browser" = "󰾔"
mpv = ""
chatterino = ""
libreoffice-writer = ""
kitty = ""
"cyberpunk2077.exe" = "󰾲"
KiCad = ""
"[tT]hunar" = "" "[tT]hunar" = ""
zathura = "󰈦" "riotclientux.exe" = "󰰌"
discord = "󰙯" libreoffice-calc = ""
"VirtualBox Manager" = "" "org.remmina.Remmina" = "󰢹"
"org.inkscape.Inkscape" = "󰕙" "org.inkscape.Inkscape" = "󰕙"
"VirtualBox Machine" = "" "VirtualBox Machine" = ""
lutris = "󰊗" Bitwarden = ""
"[gG]imp-.*" = "" "[gG]imp-.*" = ""
Chromium = ""
obsidian = "󰠮"
"leagueclientux.exe" = "󰰌"
zathura = "󰈦"
code-oss = "󰨞"
discord = "󰙯"
vesktop = "󰙯"
blueman-manager = "󰂯"
Alacritty = ""
zoom = "󰬡"
[class_active] [class_active]
"(?i)ExampleOneTerm" = "icon" "(?i)ExampleOneTerm" = "icon"
@@ -65,18 +65,25 @@ lib.mkIf (user != "tv")
[workspaces_name] [workspaces_name]
[title_in_class] [title_in_class]
[title_in_class_active] [title_in_class_active]
[title_in_initial_class] [title_in_initial_class]
[title_in_initial_class_active] [title_in_initial_class_active]
[initial_title_in_class] [initial_title_in_class]
[initial_title_in_class_active] [initial_title_in_class_active]
[initial_title_in_initial_class] [initial_title_in_initial_class]
[initial_title_in_initial_class_active] [initial_title_in_initial_class_active]
[exclude] [exclude]
"(?i)fcitx" = ".*"
aProgram = "^$" aProgram = "^$"
"" = "^$" "" = "^$"
"(?i)fcitx" = ".*"
"[Ss]team" = "^(Friends List.*)?$" "[Ss]team" = "^(Friends List.*)?$"
"explorer.exe" = ".*" "explorer.exe" = ".*"
"(?i)TestApp" = "" "(?i)TestApp" = ""

View File

@@ -1,4 +1,4 @@
{ config, pkgs, pkgs-unstable, inputs, host, user, nvidia, rice, lib, ... }: { pkgs, pkgs-unstable, inputs, host, user, nvidia, rice, lib, ... }:
let let
animation-speed = "2"; animation-speed = "2";
transparency = builtins.toString rice.transparency; transparency = builtins.toString rice.transparency;

View File

@@ -1,43 +1,51 @@
{ config, pkgs, lib, system, user, host, allowed, secrets, ... }: { pkgs, lib, host, nvidia, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
ollama ollama
]; ];
services.ollama.environmentVariables = { # services.ollama.environmentVariables = {
# OLLAMA_ORIGINS = "*";
# };
# systemd.services.ollama = {
# environment.OLLAMA_ORIGINS = "*";
# description = "Ollama Service";
# after = [ "network-online.target" "ollama-doesnt-respect-xdg-data-home.service" ];
# serviceConfig = {
# Type = "simple";
# # Environment = "\"XDG_DATA_HOME=/run/current-system/sw/share\"";
# ExecStart = "${pkgs.ollama}/bin/ollama serve";
# User = "ollama";
# Group = "ollama";
# Restart = "always";
# RestartSec = "3";
# };
# wantedBy = [ "default.target" ];
# };
# users.users.ollama = {
# isSystemUser = true;
# home = "/usr/share/ollama";
# shell = "/bin/false";
# group = "ollama";
# };
# users.groups.ollama = {};
# systemd.services.ollama-doesnt-respect-xdg-data-home = {
# wantedBy = ["multi-user.target"];
# script = ''
# mkdir -p /usr/share/ollama/.ollama
# chown ollama:ollama -R /usr/share/ollama
# '';
# };
services.ollama = {
enable = true;
acceleration = lib.mkIf nvidia.enable "cuda";
listenAddress = if host == "NxACE" then "0.0.0.0:11434" else "127.0.0.1:11434";
environmentVariables = {
OLLAMA_ORIGINS = "*"; OLLAMA_ORIGINS = "*";
}; };
systemd.services.ollama = {
environment.OLLAMA_ORIGINS = "*";
description = "Ollama Service";
after = [ "network-online.target" "ollama-doesnt-respect-xdg-data-home.service" ];
serviceConfig = {
Type = "simple";
# Environment = "\"XDG_DATA_HOME=/run/current-system/sw/share\"";
ExecStart = "${pkgs.ollama}/bin/ollama serve";
User = "ollama";
Group = "ollama";
Restart = "always";
RestartSec = "3";
};
wantedBy = [ "default.target" ];
};
users.users.ollama = {
isSystemUser = true;
home = "/usr/share/ollama";
shell = "/bin/false";
group = "ollama";
};
users.groups.ollama = {};
systemd.services.ollama-doesnt-respect-xdg-data-home = {
wantedBy = ["multi-user.target"];
script = ''
mkdir -p /usr/share/ollama/.ollama
chown ollama:ollama -R /usr/share/ollama
'';
}; };
} }