This commit is contained in:
Matthieu Morin 2024-06-09 17:11:39 +00:00
parent 061c0fbc54
commit ddfe750fb8
1 changed files with 40 additions and 14 deletions

View File

@ -1,24 +1,25 @@
{ config, lib, pkgs, outputs, ... }: { config, lib, pkgs, outputs, configLib, ... }:
let
in
{ {
imports = [ imports = (configLib.scanPaths ./.)
# Packages with custom configs go here ++ (builtins.attrValues outputs.homeManagerModules);
./brave.nix
./gtk.nix
] ++ (builtins.attrValues outputs.homeManagerModules); services.ssh-agent.enable = true;
home = { home = {
username = lib.mkDefault "laozi"; username = lib.mkDefault "ta";
homeDirectory = lib.mkDefault "/home/${config.home.username}"; homeDirectory = lib.mkDefault "/home/${config.home.username}";
stateVersion = lib.mkDefault "24.05"; stateVersion = lib.mkDefault "24.05";
sessionPath = [ sessionPath = [
"$HOME/.local/bin" "$HOME/.local/bin"
"$HOME/scripts/talon_scripts"
]; ];
sessionVariables = { sessionVariables = {
SHELL = "bash"; FLAKE = "$HOME/src/nix-config";
SHELL = "zsh";
TERM = "foot";
TERMINAL = "foot";
EDITOR = "nvim";
MANPAGER = "batman"; # see ./cli/bat.nix
}; };
}; };
@ -26,7 +27,32 @@ in
inherit (pkgs) inherit (pkgs)
# Packages that don't have custom configs go here # Packages that don't have custom configs go here
nix-tree;
# TODO: spaces before comment are removed by nixpkgs-fmt
# See: https://github.com/nix-community/nixpkgs-fmt/issues/305
borgbackup# backups
btop# resource monitor
coreutils# basic gnu utils
# curl
eza# ls replacement
fd# tree style ls
findutils# find
fzf# fuzzy search
jq# JSON pretty printer and manipulator
nix-tree# nix package tree viewer
ncdu# TUI disk usage
pciutils
pfetch# system info
pre-commit# git hooks
p7zip# compression & encryption
ripgrep# better grep
usbutils
tree# cli dir tree viewer
unzip# zip extraction
unrar# rar extraction
wget# downloader
zstd # zstd compression
zip; # zip compression
}; };
nixpkgs = { nixpkgs = {
@ -41,7 +67,7 @@ in
nix = { nix = {
package = lib.mkDefault pkgs.nix; package = lib.mkDefault pkgs.nix;
settings = { settings = {
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" "repl-flake" ];
warn-dirty = false; warn-dirty = false;
}; };
}; };
@ -52,4 +78,4 @@ in
# Nicely reload system units when changing configs # Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch"; systemd.user.startServices = "sd-switch";
} }