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;
|
||||
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.copyq.enable = mkEnableOption "Enable copyq";
|
||||
options.homeManagerModules.copyq.enable = mkEnableOption "Enable copyq";
|
||||
|
||||
config = mkIf config.features.desktop.copyq.enable {
|
||||
config = mkIf config.homeManagerModules.copyq.enable {
|
||||
services.copyq.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.discord.enable = mkEnableOption "Enable Discord";
|
||||
options.homeManagerModules.discord.enable = mkEnableOption "Enable Discord";
|
||||
|
||||
config = mkIf config.features.desktop.discord.enable {
|
||||
config = mkIf config.homeManagerModules.discord.enable {
|
||||
home.packages = with pkgs; [ discord ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
|
||||
options.homeManagerModules.dwm.enable = mkEnableOption "Enable dwm";
|
||||
|
||||
config = mkIf config.features.desktop.dwm.enable {
|
||||
config = mkIf config.homeManagerModules.dwm.enable {
|
||||
home = {
|
||||
file.".xinitrc".text = ''
|
||||
systemctl --user import-environment DISPLAY
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.espanso.enable = mkEnableOption "Enable espanso";
|
||||
options.homeManagerModules.espanso.enable = mkEnableOption "Enable espanso";
|
||||
|
||||
config = mkIf config.features.desktop.espanso.enable {
|
||||
config = mkIf config.homeManagerModules.espanso.enable {
|
||||
services.espanso = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.flameshot.enable = mkEnableOption "Enable flameshot";
|
||||
options.homeManagerModules.flameshot.enable = mkEnableOption "Enable flameshot";
|
||||
|
||||
config = mkIf config.features.desktop.flameshot.enable {
|
||||
config = mkIf config.homeManagerModules.flameshot.enable {
|
||||
services.flameshot = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.gtk.enable = mkEnableOption "Enable gtk";
|
||||
options.homeManagerModules.gtk.enable = mkEnableOption "Enable gtk";
|
||||
|
||||
config = mkIf config.features.desktop.gtk.enable {
|
||||
config = mkIf config.homeManagerModules.gtk.enable {
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.media.gimp.enable = mkEnableOption "Enable gimp";
|
||||
options.homeManagerModules.gimp.enable = mkEnableOption "Enable gimp";
|
||||
|
||||
config = mkIf config.features.desktop.media.gimp.enable {
|
||||
config = mkIf config.homeManagerModules.gimp.enable {
|
||||
home.packages = with pkgs; [ gimp ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
|
||||
options.homeManagerModules.handbrake.enable = mkEnableOption "Enable handbrake";
|
||||
|
||||
config = mkIf config.features.desktop.media.handbrake.enable {
|
||||
config = mkIf config.homeManagerModules.handbrake.enable {
|
||||
home.packages = with pkgs; [ handbrake ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.media.kdenlive.enable = mkEnableOption "Enable kdenlive";
|
||||
options.homeManagerModules.kdenlive.enable = mkEnableOption "Enable kdenlive";
|
||||
|
||||
config = mkIf config.features.desktop.media.kdenlive.enable {
|
||||
config = mkIf config.homeManagerModules.kdenlive.enable {
|
||||
home.packages = with pkgs; [ kdePackages.kdenlive ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,9 +3,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.media.mpv.enable = mkEnableOption "Enable mpv media player";
|
||||
options.homeManagerModules.mpv.enable = mkEnableOption "Enable mpv media player";
|
||||
|
||||
config = mkIf config.features.desktop.media.mpv.enable {
|
||||
config = mkIf config.homeManagerModules.mpv.enable {
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.media.pocket-casts.enable = mkEnableOption "Enable Pocket Casts";
|
||||
options.homeManagerModules.pocket-casts.enable = mkEnableOption "Enable Pocket Casts";
|
||||
|
||||
config = mkIf config.features.desktop.media.pocket-casts.enable {
|
||||
config = mkIf config.homeManagerModules.pocket-casts.enable {
|
||||
home.packages = with pkgs; [ pocket-casts ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.slack.enable = mkEnableOption "Enable Slack";
|
||||
options.homeManagerModules.slack.enable = mkEnableOption "Enable Slack";
|
||||
|
||||
config = mkIf config.features.desktop.slack.enable {
|
||||
config = mkIf config.homeManagerModules.slack.enable {
|
||||
home.packages = with pkgs; [ slack ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
with lib;
|
||||
|
||||
{
|
||||
options.features.desktop.zoom.enable = mkEnableOption "Enable zoom";
|
||||
options.homeManagerModules.zoom.enable = mkEnableOption "Enable zoom";
|
||||
|
||||
config = mkIf config.features.desktop.zoom.enable {
|
||||
config = mkIf config.homeManagerModules.zoom.enable {
|
||||
home.packages = with pkgs; [ zoom-us ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue