Compare commits
21
Commits
tower
..
8c18f31dc4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c18f31dc4
|
||
|
|
70541b2698
|
||
|
|
2613b5eb1e
|
||
|
|
1c76f61e0d
|
||
|
|
51dd7bb4b8
|
||
|
|
e33aef7b9c
|
||
|
|
95fa47ad09
|
||
|
|
15f46c0338
|
||
|
|
a76b2c2878
|
||
|
|
19ab808148
|
||
|
|
1841fe3a41
|
||
|
|
99f4614227
|
||
|
|
f39bf6f46d
|
||
|
|
18b080b98b
|
||
|
|
8cacb192e0
|
||
|
|
ff60475db9
|
||
|
|
e852954628
|
||
|
|
5d5f98ad90
|
||
|
|
24df8085f0
|
||
|
|
4665bc0fbb
|
||
|
|
6522f7ea0b
|
Generated
+121
@@ -0,0 +1,121 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"codex-cli-nix": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs-unstable"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1787798436,
|
||||||
|
"narHash": "sha256-sgQx7yUo2I1c4McylOW1vRklIxDL3Kwzq35ilr7firc=",
|
||||||
|
"owner": "sadjow",
|
||||||
|
"repo": "codex-cli-nix",
|
||||||
|
"rev": "18eb1cac4e17c8cbc40f3a2a83940d8f38ddace5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "sadjow",
|
||||||
|
"repo": "codex-cli-nix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1731533236,
|
||||||
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"home-manager": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1787377438,
|
||||||
|
"narHash": "sha256-Sxu1NLTD/Ern6hFGLlZmtKCSct3YQXZI/lls8RE1XeM=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"rev": "65258d5c65a250189fde2e35f490d15e064c4c62",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"ref": "release-26.05",
|
||||||
|
"repo": "home-manager",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1787753485,
|
||||||
|
"narHash": "sha256-BZWCi9ZRJiARTuKTbbtvFTj7t1TK4G3UEckT3HyNfRg=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "062346a6d85bc4b49dfaa61c986e9c5be21217d1",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-26.05",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-unstable": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1787631388,
|
||||||
|
"narHash": "sha256-vMiXptXarfSdJb1Gkc+FYVOAibuBRj7qxGa8z68q1Uw=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "ac6b2166e7a9375683b8e98f860f273222337b16",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nixos",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"codex-cli-nix": "codex-cli-nix",
|
||||||
|
"home-manager": "home-manager",
|
||||||
|
"nixpkgs": "nixpkgs",
|
||||||
|
"nixpkgs-unstable": "nixpkgs-unstable"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@@ -2,16 +2,17 @@
|
|||||||
description = "NixOS + Home Manager config";
|
description = "NixOS + Home Manager config";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
||||||
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
antigravity-nix = {
|
|
||||||
url = "github:jacopone/antigravity-nix";
|
home-manager = {
|
||||||
|
url = "github:nix-community/home-manager/release-26.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
codex-cli-nix = {
|
||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:sadjow/codex-cli-nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -20,8 +21,8 @@
|
|||||||
inputs@{
|
inputs@{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
antigravity-nix,
|
|
||||||
home-manager,
|
home-manager,
|
||||||
|
codex-cli-nix,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -55,14 +56,11 @@
|
|||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit codex-cli-nix pkgs-unstable; };
|
||||||
|
|
||||||
home-manager.users.lukas.imports = [
|
home-manager.users.lukas.imports = [
|
||||||
./home/lukas/laptop/default.nix
|
./home/lukas/laptop/default.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.extraSpecialArgs = {
|
|
||||||
inherit inputs antigravity-nix;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
@@ -73,18 +71,16 @@
|
|||||||
modules = [
|
modules = [
|
||||||
./hosts/segfault-tower/configuration.nix
|
./hosts/segfault-tower/configuration.nix
|
||||||
|
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.extraSpecialArgs = { inherit codex-cli-nix pkgs-unstable; };
|
||||||
|
|
||||||
home-manager.users.lukas.imports = [
|
home-manager.users.lukas.imports = [
|
||||||
./home/lukas/tower/default.nix
|
./home/lukas/tower/default.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home-manager.extraSpecialArgs = {
|
|
||||||
inherit inputs antigravity-nix;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -9,10 +9,9 @@ in {
|
|||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName= "Lukas";
|
settings = {
|
||||||
userEmail = "mail@lukas.contact";
|
user.name = "Lukas";
|
||||||
|
user.email = "mail@lukas.contact";
|
||||||
extraConfig = {
|
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = true;
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
||||||
@@ -26,4 +25,3 @@ in {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
programs.nh = {
|
||||||
|
enable = true;
|
||||||
|
clean.enable = true;
|
||||||
|
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||||
|
flake = "/home/lukas/nixos"; # sets NH_OS_FLAKE variable for you
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
{ codex-cli-nix, pkgs, pkgs-unstable, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.packages = [
|
||||||
|
pkgs-unstable.rtk
|
||||||
|
codex-cli-nix.packages.${pkgs.system}.default
|
||||||
|
];
|
||||||
|
}
|
||||||
+44
-13
@@ -1,38 +1,69 @@
|
|||||||
{ pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
dotDir = config.home.homeDirectory;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
autosuggestion.enable = true;
|
|
||||||
|
autosuggestion = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
strategy = [
|
||||||
|
"history"
|
||||||
|
"completion"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
historySubstringSearch.enable = true;
|
||||||
|
|
||||||
|
history = {
|
||||||
|
size = 100000;
|
||||||
|
save = 100000;
|
||||||
|
|
||||||
|
ignoreDups = true;
|
||||||
|
ignoreAllDups = true;
|
||||||
|
saveNoDups = true;
|
||||||
|
findNoDups = true;
|
||||||
|
|
||||||
|
# Make new commands visible in other open terminals.
|
||||||
|
share = true;
|
||||||
|
|
||||||
|
# Store timestamps and durations.
|
||||||
|
extended = true;
|
||||||
|
};
|
||||||
|
|
||||||
initContent = "source /etc/nixos/home/lukas/common/p10k.zsh";
|
initContent = "source /etc/nixos/home/lukas/common/p10k.zsh";
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = "true";
|
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD = "true";
|
||||||
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = "fg=8";
|
||||||
|
ZSH_AUTOSUGGEST_STRATEGY = "history completion";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
zplug = {
|
zplug = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = [
|
plugins = [
|
||||||
{ name = "romkatv/powerlevel10k"; tags = [ as:theme depth:1 ]; }
|
{
|
||||||
|
name = "romkatv/powerlevel10k";
|
||||||
|
tags = [
|
||||||
|
"as:theme"
|
||||||
|
"depth:1"
|
||||||
|
];
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
ls = "eza --icons"; # plain directory listing
|
ls = "eza --icons"; # plain directory listing
|
||||||
ll = "eza --icons -alh --git"; # long list, all, human, git status
|
ll = "eza --icons -alh --git"; # long list, all, human, git status
|
||||||
la = "eza --icons -a"; # show all dot-files, short
|
la = "eza --icons -a"; # show all dot-files, short
|
||||||
lt = "eza -T --icons --git-ignore --level=4"; # pretty tree, two levels deep
|
lt = "eza -T --icons --git-ignore --level=4"; # pretty tree, two levels deep
|
||||||
|
|
||||||
cat ="bat --style=plain --pager=cat"; # pretty ‘cat’
|
cat = "bat --style=plain --pager=cat"; # pretty ‘cat’
|
||||||
less ="bat --style=plain --pager=less"; # pretty ‘less’
|
less = "bat --style=plain --pager=less"; # pretty ‘less’
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,11 @@
|
|||||||
# split bindings: prefix+h = horizontal split (top/bottom)
|
# split bindings: prefix+h = horizontal split (top/bottom)
|
||||||
bind h split-window -v
|
bind h split-window -v
|
||||||
|
|
||||||
|
# window navigation
|
||||||
|
bind -n M-n next-window
|
||||||
|
bind -n M-p previous-window
|
||||||
|
bind -n M-Tab last-window
|
||||||
|
|
||||||
# hide the status bar
|
# hide the status bar
|
||||||
set -g status off
|
set -g status off
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
../common/packages.nix
|
||||||
../common/brave.nix
|
../common/brave.nix
|
||||||
../common/direnv.nix
|
../common/direnv.nix
|
||||||
../common/emacs.nix
|
../common/emacs.nix
|
||||||
@@ -9,11 +10,11 @@
|
|||||||
../common/alacritty.nix
|
../common/alacritty.nix
|
||||||
../common/tmux.nix
|
../common/tmux.nix
|
||||||
../common/xgd.nix
|
../common/xgd.nix
|
||||||
|
../common/nh.nix
|
||||||
../common/libreoffice.nix
|
../common/libreoffice.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.username = "lukas";
|
home.username = "lukas";
|
||||||
home.homeDirectory = "/home/lukas";
|
home.homeDirectory = "/home/lukas";
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "26.05";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, antigravity-nix, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
pkgs.telegram-desktop
|
pkgs.telegram-desktop
|
||||||
pkgs.element-desktop
|
pkgs.element-desktop
|
||||||
pkgs.tidal-hifi
|
pkgs.tidal-hifi
|
||||||
|
pkgs.signal-desktop
|
||||||
|
|
||||||
pkgs.tree
|
pkgs.tree
|
||||||
pkgs.htop
|
pkgs.htop
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
|
|
||||||
pkgs.nerd-fonts.fira-code
|
pkgs.nerd-fonts.fira-code
|
||||||
pkgs.fira-code
|
pkgs.fira-code
|
||||||
|
pkgs.fira-code-symbols
|
||||||
pkgs.meslo-lgs-nf
|
pkgs.meslo-lgs-nf
|
||||||
|
|
||||||
pkgs.eza
|
pkgs.eza
|
||||||
@@ -47,8 +49,5 @@
|
|||||||
|
|
||||||
(pkgs.aspellWithDicts
|
(pkgs.aspellWithDicts
|
||||||
(dicts: with dicts; [ de en en-computers ]))
|
(dicts: with dicts; [ de en en-computers ]))
|
||||||
|
|
||||||
antigravity-nix.packages.x86_64-linux.default
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./packages.nix
|
./packages.nix
|
||||||
|
../common/packages.nix
|
||||||
../common/brave.nix
|
../common/brave.nix
|
||||||
../common/direnv.nix
|
../common/direnv.nix
|
||||||
../common/emacs.nix
|
../common/emacs.nix
|
||||||
@@ -8,12 +9,12 @@
|
|||||||
../common/shell.nix
|
../common/shell.nix
|
||||||
../common/alacritty.nix
|
../common/alacritty.nix
|
||||||
../common/tmux.nix
|
../common/tmux.nix
|
||||||
|
../common/nh.nix
|
||||||
../common/xgd.nix
|
../common/xgd.nix
|
||||||
../common/libreoffice.nix
|
../common/libreoffice.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.username = "lukas";
|
home.username = "lukas";
|
||||||
home.homeDirectory = "/home/lukas";
|
home.homeDirectory = "/home/lukas";
|
||||||
home.stateVersion = "25.05";
|
home.stateVersion = "26.05";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,9 @@
|
|||||||
pkgs.telegram-desktop
|
pkgs.telegram-desktop
|
||||||
pkgs.element-desktop
|
pkgs.element-desktop
|
||||||
pkgs.tidal-hifi
|
pkgs.tidal-hifi
|
||||||
|
pkgs.signal-desktop
|
||||||
|
|
||||||
|
pkgs.solaar
|
||||||
|
|
||||||
pkgs.tree
|
pkgs.tree
|
||||||
pkgs.htop
|
pkgs.htop
|
||||||
@@ -17,9 +20,6 @@
|
|||||||
pkgs.wget
|
pkgs.wget
|
||||||
pkgs.unzip
|
pkgs.unzip
|
||||||
|
|
||||||
pkgs.open-webui
|
|
||||||
pkgs.librechat
|
|
||||||
|
|
||||||
pkgs.feather
|
pkgs.feather
|
||||||
|
|
||||||
pkgs.firefox
|
pkgs.firefox
|
||||||
@@ -29,26 +29,32 @@
|
|||||||
|
|
||||||
pkgs.nerd-fonts.fira-code
|
pkgs.nerd-fonts.fira-code
|
||||||
pkgs.fira-code
|
pkgs.fira-code
|
||||||
|
pkgs.fira-code-symbols
|
||||||
pkgs.meslo-lgs-nf
|
pkgs.meslo-lgs-nf
|
||||||
|
|
||||||
pkgs.eza
|
pkgs.eza
|
||||||
pkgs.bat
|
pkgs.bat
|
||||||
pkgs.ripgrep
|
pkgs.ripgrep
|
||||||
|
pkgs.sqlitebrowser
|
||||||
|
|
||||||
pkgs.seahorse
|
pkgs.seahorse
|
||||||
|
|
||||||
pkgs.binutils
|
pkgs.binutils
|
||||||
pkgs.gcc
|
pkgs.gcc
|
||||||
|
|
||||||
# pkgs.scenebuilder
|
pkgs.scenebuilder
|
||||||
|
|
||||||
pkgs.nil
|
pkgs.nil
|
||||||
|
|
||||||
pkgs.zotero
|
pkgs.zotero
|
||||||
pkgs.jabref
|
pkgs.audacious
|
||||||
|
|
||||||
(pkgs.aspellWithDicts
|
(pkgs.aspellWithDicts (
|
||||||
(dicts: with dicts; [ de en en-computers ]))
|
dicts: with dicts; [
|
||||||
|
de
|
||||||
|
en
|
||||||
|
en-computers
|
||||||
|
]
|
||||||
|
))
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
../../modules/system/gpg.nix
|
../../modules/system/gpg.nix
|
||||||
../../modules/system/virtualbox.nix
|
../../modules/system/virtualbox.nix
|
||||||
../../modules/system/mullvad.nix
|
../../modules/system/mullvad.nix
|
||||||
|
../../modules/services/codex-lb.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "segfault-machine";
|
networking.hostName = "segfault-machine";
|
||||||
@@ -34,4 +35,3 @@
|
|||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
../../modules/system/mullvad.nix
|
../../modules/system/mullvad.nix
|
||||||
../../modules/services/ollama.nix
|
../../modules/services/ollama.nix
|
||||||
../../modules/services/steam.nix
|
../../modules/services/steam.nix
|
||||||
|
../../modules/services/codex-lb.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
@@ -30,8 +31,6 @@
|
|||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-b10eb0c6-67b8-40b6-bba4-83d38267abad".device = "/dev/disk/by-uuid/b10eb0c6-67b8-40b6-bba4-83d38267abad";
|
boot.initrd.luks.devices."luks-b10eb0c6-67b8-40b6-bba4-83d38267abad".device = "/dev/disk/by-uuid/b10eb0c6-67b8-40b6-bba4-83d38267abad";
|
||||||
|
|
||||||
boot.resumeDevice = "/dev/mapper/luks-b10eb0c6-67b8-40b6-bba4-83d38267abad";
|
boot.resumeDevice = "/dev/mapper/luks-b10eb0c6-67b8-40b6-bba4-83d38267abad";
|
||||||
@@ -43,6 +42,6 @@
|
|||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# Version festlegen
|
# Version festlegen
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "26.05";
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.xserver = {
|
services.displayManager.gdm.enable = true;
|
||||||
displayManager.gdm.enable = true;
|
services.desktopManager.gnome.enable = true;
|
||||||
desktopManager.gnome.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
# To disable installing GNOME's suite of applications
|
# To disable installing GNOME's suite of applications
|
||||||
|
|||||||
@@ -1,4 +1,14 @@
|
|||||||
{
|
{
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
}
|
|
||||||
|
|
||||||
|
services.resolved = {
|
||||||
|
enable = true;
|
||||||
|
settings.Resolve = {
|
||||||
|
DNSSEC = false;
|
||||||
|
FallbackDNS = [
|
||||||
|
"1.1.1.1"
|
||||||
|
"8.8.8.8"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
virtualisation.oci-containers.containers.codex-lb = {
|
||||||
|
image = "ghcr.io/soju06/codex-lb:beta";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
"2455:2455"
|
||||||
|
"1455:1455"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"codex-lb-data:/var/lib/codex-lb"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
CODEX_LB_HTTP_RESPONSES_SESSION_BRIDGE_ENABLED = "false";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
2455
|
||||||
|
1455
|
||||||
|
];
|
||||||
|
}
|
||||||
+17
-18
@@ -3,8 +3,7 @@
|
|||||||
{
|
{
|
||||||
services.ollama = {
|
services.ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.ollama;
|
package = pkgs.ollama-cuda;
|
||||||
acceleration = "cuda";
|
|
||||||
environmentVariables = {
|
environmentVariables = {
|
||||||
OLLAMA_CONTEXT_LENGTH="32000";
|
OLLAMA_CONTEXT_LENGTH="32000";
|
||||||
};
|
};
|
||||||
@@ -14,22 +13,22 @@
|
|||||||
Environment = [ "OLLAMA_HOST=0.0.0.0:11434" ];
|
Environment = [ "OLLAMA_HOST=0.0.0.0:11434" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.open-webui = {
|
# services.open-webui = {
|
||||||
package = pkgs.open-webui;
|
# package = pkgs.open-webui;
|
||||||
enable = true;
|
# enable = true;
|
||||||
port = 8081;
|
# port = 8081;
|
||||||
environment = {
|
# environment = {
|
||||||
ANONYMIZED_TELEMETRY = "False";
|
# ANONYMIZED_TELEMETRY = "False";
|
||||||
DO_NOT_TRACK = "True";
|
# DO_NOT_TRACK = "True";
|
||||||
SCARF_NO_ANALYTICS = "True";
|
# SCARF_NO_ANALYTICS = "True";
|
||||||
OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api";
|
# OLLAMA_API_BASE_URL = "http://127.0.0.1:11434/api";
|
||||||
OLLAMA_BASE_URL = "http://127.0.0.1:11434";
|
# OLLAMA_BASE_URL = "http://127.0.0.1:11434";
|
||||||
WEBUI_AUTH = "False";
|
# WEBUI_AUTH = "False";
|
||||||
FRONTEND_BUILD_DIR = "${config.services.open-webui.stateDir}/build";
|
# FRONTEND_BUILD_DIR = "${config.services.open-webui.stateDir}/build";
|
||||||
DATA_DIR = "${config.services.open-webui.stateDir}/data";
|
# DATA_DIR = "${config.services.open-webui.stateDir}/data";
|
||||||
STATIC_DIR = "${config.services.open-webui.stateDir}/static";
|
# STATIC_DIR = "${config.services.open-webui.stateDir}/static";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
services.searx = {
|
services.searx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -1,15 +1,14 @@
|
|||||||
{config, pkgs, ...}:
|
|
||||||
{
|
{
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
services.xserver.videoDrivers = ["nvidia"];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
||||||
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
|
||||||
@@ -25,7 +24,6 @@
|
|||||||
|
|
||||||
open = false;
|
open = false;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user