Use nixosModules and homeManagerModules for config

This commit is contained in:
Oliver Davies 2025-03-05 15:09:06 +00:00
parent 88a054f3b4
commit 2de0e1a2d6
46 changed files with 151 additions and 190 deletions

View file

@ -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;
};
}

View file

@ -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 ];
};
}

View file

@ -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

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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 ];
};
}

View file

@ -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 ];
};
}

View file

@ -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 ];
};
}

View file

@ -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;

View file

@ -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 ];
};
}

View file

@ -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 ];
};
}

View file

@ -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 ];
};
}