refactor: move remaining config into home-utils.nix to finalise modularising home-manager configuration

This commit is contained in:
Mohammad Rafiq 2025-02-28 05:43:14 +08:00
parent 645837709a
commit 1f04150ff2
2 changed files with 29 additions and 19 deletions

21
modules/home-utils.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
fastfetch # system info
wl-clipboard # provides cli copy and paste commands
];
programs = {
# man page summaries (activate with tldr <command>)
tealdeer = {
enable = true;
enableAutoUpdates = true;
};
};
services = {
# clipboard history (depends on wl-clipboard)
cliphist.enable = true;
};
}

View file

@ -8,30 +8,19 @@
../../modules/home-wm.nix # window manager configs ../../modules/home-wm.nix # window manager configs
../../modules/home-editor.nix # editor specific configs ../../modules/home-editor.nix # editor specific configs
../../modules/home-terminal.nix # terminal emulator configs ../../modules/home-terminal.nix # terminal emulator configs
../../modules/home-utils.nix # miscellaneous utilities
]; ];
# This enables using home-manager from the command line.
programs.home-manager.enable = true;
home = { home = {
username = "rafiq"; username = "rafiq";
homeDirectory = "/home/rafiq"; homeDirectory = "/home/rafiq";
packages = [ # This defines the version home-manager
pkgs.fastfetch # was originally bulit against on this system.
pkgs.wl-clipboard # Do not change it.
]; stateVersion = "25.05";
}; };
programs = {
tealdeer = {
enable = true;
enableAutoUpdates = true;
};
home-manager.enable = true;
};
services = {
cliphist.enable = true;
};
home.stateVersion = "25.05";
} }