feat(darwin): Add stylix and user modules
This commit is contained in:
parent
65659908cf
commit
9470ea2f90
3 changed files with 20 additions and 0 deletions
|
@ -41,6 +41,8 @@ let
|
||||||
specialArgs = { inherit (config.flake) self; };
|
specialArgs = { inherit (config.flake) self; };
|
||||||
modules = [
|
modules = [
|
||||||
cfg.modules.darwin.default
|
cfg.modules.darwin.default
|
||||||
|
inputs.home-manager.darwinModules.home-manager
|
||||||
|
{ home-manager = globalCfg name value; }
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -9,4 +9,12 @@
|
||||||
stylix.enable = true;
|
stylix.enable = true;
|
||||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
||||||
};
|
};
|
||||||
|
flake.modules.darwin.default =
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [ inputs.stylix.darwinModules.stylix ];
|
||||||
|
stylix.enable = true;
|
||||||
|
#TODO: move into manifest
|
||||||
|
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/gruvbox-dark-hard.yaml";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,4 +31,14 @@ in
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
flake.modules.darwin.default =
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
home-manager.users = forAllUsers' (
|
||||||
|
name: _: {
|
||||||
|
home.username = name;
|
||||||
|
home.homeDirectory = config.users.users.${name}.home;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue