refactor: move remaining config into home-utils.nix to finalise modularising home-manager configuration
This commit is contained in:
parent
645837709a
commit
1f04150ff2
2 changed files with 29 additions and 19 deletions
21
modules/home-utils.nix
Normal file
21
modules/home-utils.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -8,30 +8,19 @@
|
|||
../../modules/home-wm.nix # window manager configs
|
||||
../../modules/home-editor.nix # editor specific 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 = {
|
||||
username = "rafiq";
|
||||
homeDirectory = "/home/rafiq";
|
||||
|
||||
packages = [
|
||||
pkgs.fastfetch
|
||||
pkgs.wl-clipboard
|
||||
];
|
||||
# This defines the version home-manager
|
||||
# was originally bulit against on this system.
|
||||
# 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";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue