modules/options: add home-manager file aliases
This commit is contained in:
parent
e5ef2d6427
commit
d3c72248e8
1 changed files with 14 additions and 0 deletions
|
@ -6,10 +6,24 @@ with lib.hlissner;
|
|||
options = with types; {
|
||||
user = mkOpt attrs { };
|
||||
home = mkOpt attrs { };
|
||||
|
||||
dotfiles = {
|
||||
homeFile = mkOpt attrs { };
|
||||
configFile = mkOpt attrs { };
|
||||
dataFile = mkOpt attrs { };
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
users.users.${config.user.name} = mkAliasDefinitions options.user;
|
||||
home-manager.users.${config.user.name} = mkAliasDefinitions options.home;
|
||||
|
||||
home = {
|
||||
home.file = mkAliasDefinitions options.dotfiles.homeFile;
|
||||
xdg = {
|
||||
configFile = mkAliasDefinitions options.dotfiles.configFile;
|
||||
dataFile = mkAliasDefinitions options.dotfiles.dataFile;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue