webcord and element to modules

This commit is contained in:
smayzy 2025-07-09 13:39:58 +02:00
parent ddb5c2872c
commit 4186ce739b
7 changed files with 42 additions and 3 deletions

View File

@ -24,7 +24,6 @@
baobab baobab
arduino-ide arduino-ide
piper piper
element-desktop
calibre calibre
loupe loupe
gimp3 gimp3

View File

@ -40,7 +40,6 @@
services.displayManager.sddm.wayland.enable = true; services.displayManager.sddm.wayland.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
webcord
obsidian obsidian
libsForQt5.kdenlive libsForQt5.kdenlive
komikku komikku

View File

@ -29,7 +29,6 @@
services.displayManager.sddm.wayland.enable = true; services.displayManager.sddm.wayland.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
webcord
obsidian obsidian
libsForQt5.kdenlive libsForQt5.kdenlive
floorp floorp

View File

@ -0,0 +1,7 @@
{ lib, config, pkgs, ... }:
{
imports = [
./element.nix
./webcord.nix
];
}

View File

@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.element.enable = mkOption {
type = types.bool;
default = false;
description = "element";
};
config = mkIf config.smayzy.element.enable {
environment.systemPackages = with pkgs; [
element-desktop
];
};
}

View File

@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.webcord.enable = mkOption {
type = types.bool;
default = false;
description = "webcord";
};
config = mkIf config.smayzy.webcord.enable {
environment.systemPackages = with pkgs; [
webcord
];
};
}

View File

@ -13,6 +13,7 @@
./wm ./wm
./de ./de
./office ./office
./comm
]; ];
# Timzone and locales (same for all machines so I put it here) # Timzone and locales (same for all machines so I put it here)