moves home-manager to hostname specific configs

This commit is contained in:
2024-11-02 21:05:14 +01:00
parent 1e7baa0365
commit 7134d0c29d
27 changed files with 459 additions and 213 deletions

View File

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

View File

@ -0,0 +1,90 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
# General packages
git
gnupg
gh
nixfmt-rfc-style
wget
fastfetch
# 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
# 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
# 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
mcfly # Better shell history
fzf # Fuzzy finder
tokei # Code statistics
tealdeer # Modern tldr client
lazygit # Terminal UI for git
# Shell and terminal
starship # Cross-shell prompt
zellij # Modern terminal multiplexer
nushell # Modern shell
screen # Terminal multiplexer
# File viewers and processors
hexyl # Modern hexdump
chafa # Terminal image viewer
glow # Markdown renderer
# Editors
neovim
nano
micro
# Lolz
fortune
cowsay
cmatrix
figlet
lolcat
];
}

View File

@ -1,15 +0,0 @@
{ config, pkgs, ... }:
let
pinnedPkgs = import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/d4f247e89f6e10120f911e2e2d2254a050d0f732.tar.gz";
# Update this SHA256 when a new version is required ^^^
# You can find them here: https://www.nixhub.io/packages/vscode
}) { };
in
{
# Use the pinned Go for the programs configuration
programs.go = {
enable = true;
package = pinnedPkgs.go;
};
}

View File

@ -0,0 +1,12 @@
{ config, pkgs, ... }:
let
files = builtins.removeAttrs (builtins.readDir ./.) [ "default.nix" ];
# Import all other .nix files as modules
moduleFiles = builtins.map (fname: ./. + "/${fname}") (builtins.attrNames files);
in
{
# Import all the package modules
imports = moduleFiles;
}

View File

@ -0,0 +1,4 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [ ];
}

View File

@ -0,0 +1,12 @@
{ config, pkgs, ... }:
let
files = builtins.removeAttrs (builtins.readDir ./.) [ "default.nix" ];
# Import all other .nix files as modules
moduleFiles = builtins.map (fname: ./. + "/${fname}") (builtins.attrNames files);
in
{
# Import all the package modules
imports = moduleFiles;
}

View File

@ -0,0 +1,49 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
# GUI Applications
## Utilities
mission-center
flameshot
gnome.gnome-tweaks
pinta
bottles
trayscale
spacedrive
## Chat Apps
telegram-desktop
betterdiscordctl
vesktop
whatsapp-for-linux
signal-desktop
## Multimedia
spotify
plex-media-player
vlc
## Astronomy
stellarium
## Games
### Open-source games
openra
xonotic
mindustry
wesnoth
shattered-pixel-dungeon
### Games launchers
lutris
heroic
### Game utilities
protonup-qt
protontricks
### Virtualization
virt-manager
virt-viewer
];
}

View File

@ -1,16 +1,13 @@
{ pkgs, ... }:
let
pinnedPkgs = import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/d4f247e89f6e10120f911e2e2d2254a050d0f732.tar.gz";
# Update this SHA256 when a new version is required ^^^
# You can find them here: https://www.nixhub.io/packages/vscode
}) { };
in
{
# Use the pinned VSCode for the programs.vscode configuration
config,
pkgs,
pkgs-vscode,
...
}:
{
programs.vscode = {
enable = true;
package = pinnedPkgs.vscode;
package = pkgs-vscode.vscode;
mutableExtensionsDir = true;
extensions = with pkgs.vscode-extensions; [
ms-azuretools.vscode-docker
@ -42,17 +39,5 @@ in
github.copilot
github.copilot-chat
];
# ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
# {
# name = "warpnet.salt-lint";
# publisher = "warpnet";
# version = "latest";
# }
# {
# name = "mguellsegarra.highlight-on-copy";
# publisher = "mguellsegarra";
# version = "latest";
# }
# ];
};
}

View File

@ -0,0 +1,9 @@
{
config,
pkgs,
pkgs-zed,
...
}:
{
home.packages = [ pkgs-zed.zed-editor ];
}

View File

@ -1,14 +0,0 @@
{ config, pkgs, ... }:
let
pinnedPkgs = import (fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/41dea55321e5a999b17033296ac05fe8a8b5a257.tar.gz";
# Update this SHA256 when a new version is required ^^^
# You can find them here: https://www.nixhub.io/packages/zed-editor
}) { };
in
{
# Add zed-editor to your home packages
home.packages = [
pinnedPkgs.zed-editor
];
}