Changed configuration

This commit is contained in:
xeovalyte 2024-10-15 11:51:42 +02:00
parent 70b8527b2b
commit ce0ddc8356
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:kSQDrQDmKzljJzfGYcd3m9RqHi4h8rSwkZ3sQ9kBURo
4 changed files with 62 additions and 3 deletions

View File

@ -52,7 +52,6 @@
unstable.vesktop
unstable.blender
loupe
unstable.surrealist
unstable.rnote
# Office
@ -67,7 +66,9 @@
# Development
unstable.drawio
unstable.ghostwriter
# Scripts
(import ../../modules/scripts/save_image.nix { inherit pkgs; })
];
# Enable home-manager

View File

@ -6,8 +6,20 @@
unstable.svls
unstable.nil
unstable.nixpkgs-fmt
unstable.vale-ls
unstable.vale
];
home.file.".config/vale/.vale.ini".text = ''
StylesPath = ~/.local/share/vale/styles
MinAlertLevel = suggestion
Packages = Readability
[*]
BasedOnStyles = Vale
'';
programs.helix = {
enable = true;
package = pkgs.unstable.helix;
@ -31,6 +43,11 @@
command = "svls";
};
# Vale
language-server.vale = {
command = "vale-ls";
};
language = [
{
name = "verilog";
@ -40,6 +57,18 @@
name = "nix";
language-servers = [ "svls" ];
}
{
name = "html";
language-servers = [ "vscode-html-language-server" "tailwindcss-ls" ];
}
{
name = "css";
language-servers = [ "vscode-html-language-server" "tailwindcss-ls" ];
}
{
name = "markdown";
language-servers = [ "vale" ];
}
];
};
themes = {

View File

@ -26,7 +26,7 @@
DisableFirefoxAccounts = true;
DisableAccounts = true;
DontCheckDefaultBrowser = true;
DisplayBookmarksToolbar = "never";
DisplayBookmarksToolbar = "newpage";
ExtensionSettings = {
"nl-NL@dictionaries.addons.mozilla.org" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/woordenboek-nederlands/latest.xpi";
@ -44,6 +44,10 @@
install_url = "https://addons.mozilla.org/firefox/downloads/latest/pwas-for-firefox/latest.xpi";
installation_mode = "force_installed";
};
"markdown-viewer@outofindex.com" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/markdown-viewer-chrome/latest.xpi";
installation_mode = "force_installed";
};
};
};
profiles.xeovalyte = {

View File

@ -0,0 +1,25 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "saveimage" ''
# Check if an argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 <filename>"
exit 1
fi
# Create the assets directory if it doesn't exist
mkdir -p assets
# Set the output path in the assets directory
OUTPUT_PATH="assets/$1.png"
# Save the clipboard image to the specified file in assets directory
wl-paste --type image/png > "$OUTPUT_PATH"
# Check if the file was successfully saved
if [ $? -eq 0 ]; then
echo "Image saved to $OUTPUT_PATH"
else
echo "Failed to save the image"
fi
''