Changed configuration
This commit is contained in:
parent
70b8527b2b
commit
ce0ddc8356
@ -52,7 +52,6 @@
|
|||||||
unstable.vesktop
|
unstable.vesktop
|
||||||
unstable.blender
|
unstable.blender
|
||||||
loupe
|
loupe
|
||||||
unstable.surrealist
|
|
||||||
unstable.rnote
|
unstable.rnote
|
||||||
|
|
||||||
# Office
|
# Office
|
||||||
@ -67,7 +66,9 @@
|
|||||||
|
|
||||||
# Development
|
# Development
|
||||||
unstable.drawio
|
unstable.drawio
|
||||||
unstable.ghostwriter
|
|
||||||
|
# Scripts
|
||||||
|
(import ../../modules/scripts/save_image.nix { inherit pkgs; })
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable home-manager
|
# Enable home-manager
|
||||||
|
@ -6,8 +6,20 @@
|
|||||||
unstable.svls
|
unstable.svls
|
||||||
unstable.nil
|
unstable.nil
|
||||||
unstable.nixpkgs-fmt
|
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 = {
|
programs.helix = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.helix;
|
package = pkgs.unstable.helix;
|
||||||
@ -31,6 +43,11 @@
|
|||||||
command = "svls";
|
command = "svls";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Vale
|
||||||
|
language-server.vale = {
|
||||||
|
command = "vale-ls";
|
||||||
|
};
|
||||||
|
|
||||||
language = [
|
language = [
|
||||||
{
|
{
|
||||||
name = "verilog";
|
name = "verilog";
|
||||||
@ -40,6 +57,18 @@
|
|||||||
name = "nix";
|
name = "nix";
|
||||||
language-servers = [ "svls" ];
|
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 = {
|
themes = {
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
DisableFirefoxAccounts = true;
|
DisableFirefoxAccounts = true;
|
||||||
DisableAccounts = true;
|
DisableAccounts = true;
|
||||||
DontCheckDefaultBrowser = true;
|
DontCheckDefaultBrowser = true;
|
||||||
DisplayBookmarksToolbar = "never";
|
DisplayBookmarksToolbar = "newpage";
|
||||||
ExtensionSettings = {
|
ExtensionSettings = {
|
||||||
"nl-NL@dictionaries.addons.mozilla.org" = {
|
"nl-NL@dictionaries.addons.mozilla.org" = {
|
||||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/woordenboek-nederlands/latest.xpi";
|
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";
|
install_url = "https://addons.mozilla.org/firefox/downloads/latest/pwas-for-firefox/latest.xpi";
|
||||||
installation_mode = "force_installed";
|
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 = {
|
profiles.xeovalyte = {
|
||||||
|
25
modules/scripts/save_image.nix
Normal file
25
modules/scripts/save_image.nix
Normal 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
|
||||||
|
''
|
Loading…
Reference in New Issue
Block a user