moved krita to programs folder

This commit is contained in:
Leyla Becker 2025-09-02 23:27:26 -05:00
parent b7dd5328d0
commit 2d396228c7
4 changed files with 33 additions and 2 deletions

View file

@ -18,7 +18,6 @@ in {
home.packages = lib.lists.optionals userConfig.isDesktopUser ( home.packages = lib.lists.optionals userConfig.isDesktopUser (
with pkgs; [ with pkgs; [
ungoogled-chromium ungoogled-chromium
krita
gnomeExtensions.dash-to-panel gnomeExtensions.dash-to-panel
] ]
); );
@ -61,6 +60,7 @@ in {
signal-desktop-bin.enable = true; signal-desktop-bin.enable = true;
steam.enable = true; steam.enable = true;
piper.enable = hardware.piperMouse.enable; piper.enable = hardware.piperMouse.enable;
krita.enable = true;
}) })
]; ];
}; };

View file

@ -49,6 +49,7 @@ in {
vscode.enable = true; vscode.enable = true;
firefox.enable = true; firefox.enable = true;
steam.enable = true; steam.enable = true;
krita.enable = true;
}) })
]; ];
} }
@ -77,7 +78,6 @@ in {
libreoffice libreoffice
inkscape inkscape
gimp gimp
krita
freecad freecad
# cura # cura
# kicad-small # kicad-small

View file

@ -12,6 +12,7 @@
./obsidian.nix ./obsidian.nix
./prostudiomasters.nix ./prostudiomasters.nix
./idea.nix ./idea.nix
./krita.nix
./protonvpn.nix ./protonvpn.nix
./calibre.nix ./calibre.nix
./bruno.nix ./bruno.nix

View file

@ -0,0 +1,30 @@
{
lib,
pkgs,
config,
osConfig,
...
}: {
options.programs.krita = {
enable = lib.mkEnableOption "enable krita";
};
config = lib.mkIf config.programs.krita.enable (lib.mkMerge [
{
home.packages = with pkgs; [
krita
];
}
(
lib.mkIf osConfig.host.impermanence.enable {
home.persistence."/persist${config.home.homeDirectory}" = {
directories = [
"${config.xdg.configHome}/kritarc"
"${config.xdg.dataHome}/krita"
];
allowOther = true;
};
}
)
]);
}