adds packages per hostname

adds unstable nixpkgs for vscode, docker, go and ollama
updates tilingshell layouts
This commit is contained in:
2024-11-05 15:07:37 +01:00
parent 55d2a96a33
commit 9c28dfe6ae
25 changed files with 271 additions and 284 deletions

View File

@ -1,12 +1,12 @@
{
config,
pkgs,
pkgs-go,
pkgs-unstable,
...
}:
{
programs.go = {
enable = true;
package = pkgs-go.go;
package = pkgs-unstable.go;
};
}

View File

@ -1,90 +1,108 @@
{ pkgs, pkgs-ollama, ... }:
{
home.packages = with pkgs; [
# General packages
git
gnupg
gh
nixfmt-rfc-style
wget
fastfetch
pkgs-ollama.ollama
pkgs,
pkgs-unstable,
hostname,
...
}:
let
hostSpecificPackages =
if hostname == "mennos-gamingpc" then
with pkgs-unstable; [ ollama-rocm ]
else if hostname == "mennos-laptop" then
with pkgs-unstable; [ ollama-cuda ]
else if hostname == "mennos-server" then
with pkgs-unstable; [ ollama-cuda ]
else
with pkgs-unstable; [ ollama ];
in
{
home.packages =
with pkgs;
[
# General packages
git
gnupg
gh
nixfmt-rfc-style
wget
fastfetch
# Package management
pipx
devbox
# Package management
pipx
devbox
# Development SDKs/Toolkits
gcc
pkg-config
gnumake
stdenv.cc
rustc
cargo
cargo-edit
cargo-watch
cargo-audit
cargo-expand
cargo-tarpaulin
pyenv
act # GitHub Actions CLI
# Development SDKs/Toolkits
gcc
pkg-config
gnumake
stdenv.cc
rustc
cargo
cargo-edit
cargo-watch
cargo-audit
cargo-expand
cargo-tarpaulin
pyenv
act # GitHub Actions CLI
# File and directory operations
eza # Modern ls
bat # Modern cat
zoxide # Smarter cd command
broot # Interactive directory navigator
du-dust # Modern du
duf # Modern df
zip
unzip
# File and directory operations
eza # Modern ls
bat # Modern cat
zoxide # Smarter cd command
broot # Interactive directory navigator
du-dust # Modern du
duf # Modern df
zip
unzip
# Search and text processing
ripgrep # Modern grep
sd # Modern sed
choose # Modern cut
jq # JSON processor
yq # YAML processor
xsv # CSV processor
# Search and text processing
ripgrep # Modern grep
sd # Modern sed
choose # Modern cut
jq # JSON processor
yq # YAML processor
xsv # CSV processor
# System monitoring and process management
procs # Modern ps
bottom # Modern top/htop
hyperfine # Benchmarking tool
bandwhich # Network utilization tool
doggo # Modern dig
gping # Ping with graph
htop # Interactive process viewer
# System monitoring and process management
procs # Modern ps
bottom # Modern top/htop
hyperfine # Benchmarking tool
bandwhich # Network utilization tool
doggo # Modern dig
gping # Ping with graph
htop # Interactive process viewer
# Development utilities
delta # Better git diff
difftastic # Structural diff tool
fzf # Fuzzy finder
tokei # Code statistics
tealdeer # Modern tldr client
lazygit # Terminal UI for git
# Development utilities
delta # Better git diff
difftastic # Structural diff tool
fzf # Fuzzy finder
tokei # Code statistics
tealdeer # Modern tldr client
lazygit # Terminal UI for git
# Shell and terminal
starship # Cross-shell prompt
blesh # Bash ble.sh
zellij # Modern terminal multiplexer
screen # Terminal multiplexer
# Shell and terminal
starship # Cross-shell prompt
blesh # Bash ble.sh
zellij # Modern terminal multiplexer
screen # Terminal multiplexer
# File viewers and processors
hexyl # Modern hexdump
chafa # Terminal image viewer
glow # Markdown renderer
# File viewers and processors
hexyl # Modern hexdump
chafa # Terminal image viewer
glow # Markdown renderer
# Editors
neovim
nano
micro
# Editors
neovim
nano
micro
# Lolz
fortune
cowsay
cmatrix
figlet
lolcat
];
# Lolz
fortune
cowsay
cmatrix
figlet
lolcat
]
++ hostSpecificPackages;
}

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ ... }:
let
files = builtins.removeAttrs (builtins.readDir ./.) [ "default.nix" ];

View File

@ -1,9 +1,9 @@
{ pkgs, ... }:
{ pkgs-unstable, pkgs, ... }:
{
home.packages = with pkgs; [
# GUI Applications
## Utilities
mission-center
pkgs-unstable.mission-center
gnome.gnome-tweaks
pinta
bottles

View File

@ -1,13 +1,8 @@
{
config,
pkgs,
pkgs-vscode,
...
}:
{ pkgs, pkgs-unstable, ... }:
{
programs.vscode = {
enable = true;
package = pkgs-vscode.vscode;
package = pkgs-unstable.vscode;
mutableExtensionsDir = true;
extensions = with pkgs.vscode-extensions; [
ms-azuretools.vscode-docker

View File

@ -1,9 +1,12 @@
{ pkgs-unstable, ... }:
{
config,
pkgs,
pkgs-zed,
...
}:
{
home.packages = [ pkgs-zed.zed-editor ];
home.packages = with pkgs-unstable; [
zed-editor
nixd
nixdoc
# We need nodejs due to a stupid bug with CoPilot not loading properly
# https://github.com/zed-industries/zed/issues/12187#issuecomment-2322338504
nodejs_22
];
}