Use nixosModules and homeManagerModules for config
This commit is contained in:
parent
88a054f3b4
commit
2de0e1a2d6
46 changed files with 151 additions and 190 deletions
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
||||
options.homeManagerModules.bluetuith.enable = mkEnableOption "Enable bluetuith";
|
||||
|
||||
config = mkIf config.features.cli.bluetuith.enable {
|
||||
config = mkIf config.homeManagerModules.bluetuith.enable {
|
||||
home.packages = with pkgs; [
|
||||
bluetuith
|
||||
];
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.cli.direnv.enable = mkEnableOption "Enable direnv";
|
||||
options.homeManagerModules.direnv.enable = mkEnableOption "Enable direnv";
|
||||
|
||||
config = mkIf config.features.cli.direnv.enable {
|
||||
config = mkIf config.homeManagerModules.direnv.enable {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ let
|
|||
phpPackages = pkgs.php82Packages;
|
||||
in
|
||||
{
|
||||
options.features.cli.neovim.enable = mkEnableOption "Enable neovim";
|
||||
options.homeManagerModules.neovim.enable = mkEnableOption "Enable neovim";
|
||||
|
||||
config = mkIf config.features.cli.neovim.enable {
|
||||
config = mkIf config.homeManagerModules.neovim.enable {
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.notes;
|
||||
cfg = config.homeManagerModules.notes;
|
||||
in
|
||||
{
|
||||
options.features.cli.notes = {
|
||||
options.homeManagerModules.notes = {
|
||||
enable = mkEnableOption "Enable notes";
|
||||
|
||||
directory = mkOption {
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@
|
|||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.features.cli.syncthing;
|
||||
cfg = config.homeManagerModules.syncthing;
|
||||
in
|
||||
{
|
||||
options.features.cli.syncthing.enable = mkEnableOption "Enable syncthing";
|
||||
options.homeManagerModules.syncthing.enable = mkEnableOption "Enable syncthing";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.syncthing.enable = true;
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.cli.tmux-sessionizer.enable = mkEnableOption "Enable tmux-sessionizer";
|
||||
options.homeManagerModules.tmux-sessionizer.enable = mkEnableOption "Enable tmux-sessionizer";
|
||||
|
||||
config = mkIf config.features.cli.tmux-sessionizer.enable {
|
||||
config = mkIf config.homeManagerModules.tmux-sessionizer.enable {
|
||||
home.packages = with pkgs; [ tmux-sessionizer ];
|
||||
|
||||
home.file.".tmux-sessionizer".source = "${
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ let
|
|||
inherit (pkgs) tmuxPlugins;
|
||||
in
|
||||
{
|
||||
options.features.cli.tmux.enable = mkEnableOption "Enable tmux";
|
||||
options.homeManagerModules.tmux.enable = mkEnableOption "Enable tmux";
|
||||
|
||||
config = mkIf config.features.cli.tmux.enable {
|
||||
config = mkIf config.homeManagerModules.tmux.enable {
|
||||
programs.tmux = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue