This commit is contained in:
Peritia 2025-09-10 12:17:16 +02:00
parent fc0abdd4bb
commit aca73cdd0f
73 changed files with 3873 additions and 381 deletions

View file

@ -2,6 +2,7 @@
{
imports = [
./image-viewer.nix
./krita.nix
];
}

View file

@ -0,0 +1,30 @@
# Image Viewer
#
# Provides:
# - Installs a chosen image viewer application
#
# Notes:
# - Defaults to Gwenview
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.home.image-viewer;
in
{
options.nyx-module.home.image-viewer = {
enable = lib.mkEnableOption "Enable image viewer (home module)";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.gwenview;
example = pkgs.feh;
description = "Image viewer package to install (e.g. gwenview, feh, imv).";
};
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
};
}

View file

@ -1,3 +1,12 @@
# Krita (Digital Painting Software)
#
# Provides:
# - Krita package (open-source digital painting and illustration software)
#
# Notes:
# - Installed via home.packages
#
{ config, lib, pkgs, ... }:
let
@ -5,16 +14,12 @@ let
in
{
options.nyx-module.home.krita = {
enable = lib.mkEnableOption "Enable krita (home) module";
package = lib.mkOption {
type = lib.types.package;
default = pkgs.krita;
description = "Package to install for krita.";
};
enable = lib.mkEnableOption "Enable Krita (home) module";
};
config = lib.mkIf cfg.enable {
home.packages = [ cfg.package ];
home.packages = with pkgs; [
krita
];
};
}