parent
add8b76764
commit
eaa3a62e55
|
@ -6,16 +6,16 @@ with lib.my;
|
||||||
options = with types; {
|
options = with types; {
|
||||||
user = mkOpt attrs {};
|
user = mkOpt attrs {};
|
||||||
|
|
||||||
dotfiles = let t = either str path; in {
|
dotfiles = {
|
||||||
dir = mkOpt t
|
dir = mkOpt path
|
||||||
(findFirst pathExists (toString ../.) [
|
(findFirst pathExists (toString ../.) [
|
||||||
"${config.user.home}/.config/dotfiles"
|
"${config.user.home}/.config/dotfiles"
|
||||||
"/etc/dotfiles"
|
"/etc/dotfiles"
|
||||||
]);
|
]);
|
||||||
binDir = mkOpt t "${config.dotfiles.dir}/bin";
|
binDir = mkOpt path "${config.dotfiles.dir}/bin";
|
||||||
configDir = mkOpt t "${config.dotfiles.dir}/config";
|
configDir = mkOpt path "${config.dotfiles.dir}/config";
|
||||||
modulesDir = mkOpt t "${config.dotfiles.dir}/modules";
|
modulesDir = mkOpt path "${config.dotfiles.dir}/modules";
|
||||||
themesDir = mkOpt t "${config.dotfiles.modulesDir}/themes";
|
themesDir = mkOpt path "${config.dotfiles.modulesDir}/themes";
|
||||||
};
|
};
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
|
Loading…
Reference in a new issue