diff --git a/hosts/common/home.nix b/hosts/common/home.nix new file mode 100644 index 0000000..de8ae3a --- /dev/null +++ b/hosts/common/home.nix @@ -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 + + ]; + +} diff --git a/hosts/macos/home.nix b/hosts/macos/home.nix index 33e8807..0cc7b35 100644 --- a/hosts/macos/home.nix +++ b/hosts/macos/home.nix @@ -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 ]; -}