Skip to content

Commit

Permalink
Separate packages into their own file.
Browse files Browse the repository at this point in the history
  • Loading branch information
attilaolah committed Mar 3, 2024
1 parent 8ab35c5 commit 93d9544
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 79 deletions.
98 changes: 19 additions & 79 deletions users/ao/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,95 +3,35 @@
{
imports = [
./file.nix
./home/packages.nix
./programs/fish.nix
./programs/git.nix
./programs/gpg.nix
];

home.username = "ao";
home.homeDirectory = "/home/ao";
# TODO: Renovate!
home.stateVersion = "23.11";

home.packages = with pkgs; [
# Shell & tools:
tmux
tree
zoxide
silver-searcher
fzf

# Editors:
neovim

# Hyprland deps:
foot
waybar
wofi

# Utilities:
curl
wget
rsync
gnupg
pinentry
mktemp
dig
screenfetch
age
any-nix-shell
direnv
ripgrep
fd

# Development environment:
# TODO: Renovate!
bazel_7
buildifier
buildozer
clang
clang-tools
clangStdenv
pkg-config
gnumake
cmake
rustup
go
nodejs
nodePackages.pnpm
home = {
username = "ao";
homeDirectory = "/home/ao";
# TODO: Renovate!
python311Full
python311Packages.ipython
ruby
elan
android-tools
virtualenv
stateVersion = "23.11";

sessionVariables = {
# Shell:
#LANG = "en_US.UTF-8";
#LANGUAGE = "en_US:en";
SHELL = "${pkgs.fish}/bin/fish";
# Editor:
#EDITOR = "nvim";
VISUAL = "nvim";
# Development environment:
GOPATH = "${config.home.homeDirectory}/dev/go";
RUSTUP_HOME = "${config.home.homeDirectory}/dev/rustup";
};
};

# GUI apps:
google-chrome
firefox
gimp
];

nixpkgs.config.allowUnfree = true;

home.sessionPath = [
"${config.home.homeDirectory}/local/bin"
];

home.sessionVariables = {
# Shell:
LANG = "en_US.UTF-8";
LANGUAGE = "en_US:en";
SHELL = "${pkgs.fish}/bin/fish";
# Editor:
EDITOR = "nvim";
VISUAL = "nvim";
# Development environment:
GOPATH = "${config.home.homeDirectory}/dev/go";
RUSTUP_HOME = "${config.home.homeDirectory}/dev/rustup";
};

services.gpg-agent = {
enable = true;
enableSshSupport = true;
Expand Down
63 changes: 63 additions & 0 deletions users/ao/home/packages.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{ config, lib, pkgs, ... }:

{
home.packages = with pkgs; [
# CLI utilities:
age
any-nix-shell
curl
dig
direnv
fd
fzf
gnupg
mktemp
neovim
pinentry
ripgrep
rsync
screenfetch
silver-searcher
tmux
tree
wget
zoxide

# Hyprland deps:
foot
waybar
wofi

# Browsers:
firefox
google-chrome

# Other GUI apps:
gimp
inkscape
rawtherapee

# Common dev tools.
# More specific ones should go into per-project flakes.
android-tools
# TODO: Renovate!
bazel_7
buildifier
buildozer
clang
clang-tools
clangStdenv
cmake
elan
gnumake
go
nodePackages.pnpm
nodejs
pkg-config
# TODO: Renovate!
(python311.withPackages (ps: with ps; [ ipython ]))
ruby
rustup
virtualenv
];
}

0 comments on commit 93d9544

Please sign in to comment.