Added a common.nix file for consistency abroad systems

This commit is contained in:
Alexandre 2025-12-13 15:25:11 +01:00
parent 6246c8793e
commit 0efda1f79b
2 changed files with 64 additions and 39 deletions

59
hosts/common/home.nix Normal file
View File

@ -0,0 +1,59 @@
{ config, pkgs, inputs, username, homeDir, ... }
{
home = {
username = username;
homeDirectory = homeDir;
stateVersion = "25.11";
};
imports = [
inputs.spicetify-nix.homeManagerModules.spicetify
../../modules/home-manager/spicetify.nix
];
# Common Packages
home.packages = with pkgs; [
# CLI
btop
hello
fastfetch
yt-dlp
syncthing # ToDo: configure it ig
cmatrix
cava
# Dev CLI
doxygen
autoconf
pkg-config
swig
pandoc
gh
# GUI apps
vscode
bitwarden-desktop
# Go
go # The main compiler
hugo
# JavaScript
nodejs # The main interpreter
pnpm # To replace npm
# C/C++
clang-tools # The main compiler
cmake
vcpkg # The package manager
vcpkg-tool
# Python
python312 # The main interpreter
pip # The package manager
kitty
];
}

View File

@ -2,54 +2,20 @@
{
# Refer to the nixOS host for info about home-manager
home.username = "alex";
home.homeDirectory = "/Users/alex";
import ../common/home.nix {
inherit config pkgs inputs;
username = "alex";
homeDir = "/Users/alex";
}
imports = [
inputs.spicetify-nix.homeMamangerModules.spicetify
];
home.stateVersion = "25.11";
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
yt-dlp
syncthing
obsidian
bitwarden-desktop
# Window management (maybe configure it with home-manager)
yabai
skhd
#borders
# Dev
doxygen
autoconf
pkg-config
swig
pandoc
gh
cmatrix
iterm2
vscode
# Go
hugo
# JavaScript
pnpm
nodejs
# C/CPP
ninja
cmake
# Python
python312
# Customisation
spicetify-cli
];
}