mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: expose shared home manager configuration via homeModules
This commit is contained in:
parent
5155bd69e8
commit
5b95c43559
47 changed files with 45 additions and 29 deletions
38
nix/homeModules/default.nix
Normal file
38
nix/homeModules/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
moduleNames = [
|
||||
"user-nixconf"
|
||||
"packages"
|
||||
|
||||
"fish"
|
||||
"direnv"
|
||||
"atuin"
|
||||
"kitty"
|
||||
"starship"
|
||||
"fzf"
|
||||
"btop"
|
||||
|
||||
"tmux"
|
||||
"git"
|
||||
"neovim"
|
||||
"vim"
|
||||
|
||||
"password-store"
|
||||
"gpg"
|
||||
|
||||
"cmus"
|
||||
];
|
||||
|
||||
eachModule = lib.attrsets.genAttrs moduleNames (name: ./${name});
|
||||
|
||||
allModules = {
|
||||
imports = map (name: ./${name}) moduleNames;
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
flake.homeModules = eachModule // {
|
||||
_ = allModules;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue