68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{ lib, config, pkgs, ... }: let
|
|
inherit (lib) mkIf;
|
|
inherit (config) conf;
|
|
# Ugly workaround xwl-satellite crashes and prusa not being wayland-native
|
|
prusa-wrapper = pkgs.makeDesktopItem {
|
|
name = "prusa-wrapper";
|
|
desktopName = "Prusa";
|
|
exec = "${pkgs.xwayland-run}/bin/xwayland-run -- i3";
|
|
};
|
|
in {
|
|
imports = [
|
|
./firefox.nix
|
|
];
|
|
|
|
config = mkIf conf.apps.enable {
|
|
services = {
|
|
# Needed for some features in nautilus such as auto-mounting and trash
|
|
gvfs.enable = true;
|
|
};
|
|
|
|
home-manager.users.${conf.username} = {
|
|
home.packages = with pkgs; [
|
|
signal-desktop
|
|
vesktop
|
|
fractal
|
|
snapshot
|
|
nautilus
|
|
libreoffice-qt6-fresh
|
|
inkscape
|
|
prusa-wrapper
|
|
planify
|
|
# freecad -- broken dependency
|
|
];
|
|
|
|
xsession.windowManager.i3 = {
|
|
enable = true;
|
|
config.startup = [{ command = "${pkgs.prusa-slicer}/bin/prusa-slicer"; }];
|
|
};
|
|
|
|
home.file = {
|
|
".config/vesktop/settings.json" = {
|
|
source = ./vesktop.conf.json;
|
|
};
|
|
".config/vesktop/settings/settings.json" = {
|
|
source = ./vencord.conf.json;
|
|
};
|
|
};
|
|
|
|
programs.pandoc = {
|
|
enable = true;
|
|
};
|
|
|
|
programs.thunderbird = {
|
|
enable = true;
|
|
profiles = {
|
|
"default" = {
|
|
isDefault = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.alacritty = {
|
|
enable = true;
|
|
settings = import ./alacritty.conf.nix { config = config; };
|
|
};
|
|
};
|
|
};
|
|
}
|