fix: apply nixfmt and add element desktop app

This commit is contained in:
Alexandre Cavalheiro 2024-03-25 22:33:01 -03:00
parent caa804bf86
commit f2911ce776
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF

View file

@ -70,6 +70,7 @@
# Utilities # Utilities
brightnessctl brightnessctl
discord discord
element
firefox firefox
pavucontrol pavucontrol
pulseaudio pulseaudio
@ -126,25 +127,21 @@
qt6Packages.qtwayland qt6Packages.qtwayland
# Create an FHS environment using the command `fhs`, enabling the execution of non-NixOS packages in NixOS! # Create an FHS environment using the command `fhs`, enabling the execution of non-NixOS packages in NixOS!
( (let base = pkgs.appimageTools.defaultFhsEnvArgs;
let base = pkgs.appimageTools.defaultFhsEnvArgs; in in pkgs.buildFHSUserEnv (base // {
pkgs.buildFHSUserEnv (base // { name = "fhs";
name = "fhs"; targetPkgs = pkgs:
targetPkgs = pkgs: ( (
# pkgs.buildFHSUserEnv provides only a minimal FHS environment, # pkgs.buildFHSUserEnv provides only a minimal FHS environment,
# lacking many basic packages needed by most software. # lacking many basic packages needed by most software.
# Therefore, we need to add them manually. # Therefore, we need to add them manually.
# #
# pkgs.appimageTools provides basic packages required by most software. # pkgs.appimageTools provides basic packages required by most software.
(base.targetPkgs pkgs) ++ (with pkgs; [ (base.targetPkgs pkgs) ++ (with pkgs; [ nodejs ]));
nodejs profile = "export FHS=1";
]) runScript = "bash";
); extraOutputsToInstall = [ "dev" ];
profile = "export FHS=1"; }))
runScript = "bash";
extraOutputsToInstall = [ "dev" ];
})
)
]; ];
# #
@ -155,7 +152,8 @@
# plain files is through 'home.file'. # plain files is through 'home.file'.
home.file = { home.file = {
# Cattpuccin theme for fish shell. # Cattpuccin theme for fish shell.
".config/fish/themes/Catppuccin-Frappe.theme".source = ./programs/fish/Catppuccin-Frappe.theme; ".config/fish/themes/Catppuccin-Frappe.theme".source =
./programs/fish/Catppuccin-Frappe.theme;
# Configuration for gamemode, for running games with optimizations. # Configuration for gamemode, for running games with optimizations.
".config/gamemode.ini".source = ./programs/gamemode.ini; ".config/gamemode.ini".source = ./programs/gamemode.ini;
@ -165,7 +163,12 @@
## Kvantum's theme configuration. ## Kvantum's theme configuration.
".config/Kvantum/Catppuccin-Frappe-Lavender" = { ".config/Kvantum/Catppuccin-Frappe-Lavender" = {
source = "${pkgs.catppuccin-kvantum.override { accent = "Lavender"; variant = "Frappe"; } }/share/Kvantum/Catppuccin-Frappe-Lavender"; source = "${
pkgs.catppuccin-kvantum.override {
accent = "Lavender";
variant = "Frappe";
}
}/share/Kvantum/Catppuccin-Frappe-Lavender";
}; };
".config/Kvantum/kvantum.kvconfig".text = '' ".config/Kvantum/kvantum.kvconfig".text = ''
@ -177,7 +180,8 @@
## Themeing configuration for qt5 and qt6 ## Themeing configuration for qt5 and qt6
".config/qt5ct/colors".source = ./theming/qt5ct; ".config/qt5ct/colors".source = ./theming/qt5ct;
".config/qt6ct/colors".source = ./theming/qt5ct; # We use the qt5ct because it's the SAME spec ".config/qt6ct/colors".source =
./theming/qt5ct; # We use the qt5ct because it's the SAME spec
## ##
# Configure pipewire for microphone noise supression. # Configure pipewire for microphone noise supression.
@ -232,7 +236,6 @@
".config/yazi".source = ./programs/yazi; ".config/yazi".source = ./programs/yazi;
}; };
## Theming ## Theming
home.pointerCursor = { home.pointerCursor = {
package = pkgs.catppuccin-cursors.frappeLavender; package = pkgs.catppuccin-cursors.frappeLavender;
@ -282,4 +285,35 @@
"x-scheme-handler/https" = "firefox"; "x-scheme-handler/https" = "firefox";
"x-scheme-handler/unknown" = "firefox"; "x-scheme-handler/unknown" = "firefox";
}; };
systemd.user.services = {
palserver = {
Unit = { Description = "Palworld Server"; };
Service = {
ExecStart =
"/etc/profiles/per-user/wizardlink/bin/fhs -c 'EpicApp=PalServer ./PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS'";
Restart = "always";
#RuntimeMaxSec = "4h";
Type = "simple";
WorkingDirectory = "/mnt/ssd/Games/Steam/steamapps/common/PalServer";
};
Install = { WantedBy = [ "default.target" ]; };
};
foundry = {
Unit = { Description = "FoundryVTT server"; };
Service = {
ExecStart =
"/etc/profiles/per-user/wizardlink/bin/fhs -c 'node ./resources/app/main.js'";
Restart = "on-failure";
Type = "simple";
WorkingDirectory = "/mnt/ssd/Games/FoundryVTT/FoundryProgram";
};
Install = { WantedBy = [ "default.target" ]; };
};
};
} }