refactor(options): clean up alias opts
This commit is contained in:
parent
e83100e1b0
commit
45f37db35c
1 changed files with 9 additions and 6 deletions
|
@ -2,19 +2,22 @@
|
||||||
{ config, options, lib, home-manager, ... }:
|
{ config, options, lib, home-manager, ... }:
|
||||||
with lib;
|
with lib;
|
||||||
with lib.hlissner;
|
with lib.hlissner;
|
||||||
|
let
|
||||||
|
mkAliasOpt = mkOpt types.attrs { };
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options = with types; {
|
options = with types; {
|
||||||
user = mkOpt attrs { };
|
user = mkAliasOpt;
|
||||||
home = mkOpt attrs { };
|
home = mkAliasOpt;
|
||||||
|
|
||||||
dotfiles = {
|
dotfiles = {
|
||||||
dir = mkOpt str "/etc/nixos";
|
dir = mkOpt str "/etc/nixos";
|
||||||
homeFile = mkOpt attrs { };
|
homeFile = mkAliasOpt;
|
||||||
configFile = mkOpt attrs { };
|
configFile = mkAliasOpt;
|
||||||
dataFile = mkOpt attrs { };
|
dataFile = mkAliasOpt;
|
||||||
};
|
};
|
||||||
|
|
||||||
env = mkOpt attrs { };
|
env = mkAliasOpt;
|
||||||
|
|
||||||
info = {
|
info = {
|
||||||
monitors = mkOpt int 1;
|
monitors = mkOpt int 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue