format stuff

This commit is contained in:
Veneficium 2024-12-29 23:25:45 +01:00
parent 039ece57cf
commit 5b77289525
8 changed files with 149 additions and 172 deletions

38
.vscode/tasks.json vendored
View file

@ -1,21 +1,21 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "Rebuild", "label": "Rebuild",
"type": "shell", "type": "shell",
"command": "./scripts/rebuild.sh", "command": "./scripts/rebuild.sh",
"presentation": { "presentation": {
"reveal": "always", "reveal": "always",
"panel": "new", "panel": "new",
"focus": true, "focus": true,
"showReuseMessage": false "showReuseMessage": false
}, },
"problemMatcher": [], "problemMatcher": [],
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
} }
} }
] ]
} }

View file

@ -1,42 +1,42 @@
{ {
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": { "logo": {
"padding": { "padding": {
"top": 2 "top": 2
} }
}, },
"modules": [ "modules": [
"title", "title",
"separator", "separator",
"os", "os",
"host", "host",
"kernel", "kernel",
"uptime", "uptime",
"packages", "packages",
"shell", "shell",
"editor", "editor",
"wm", "wm",
"theme", "theme",
"font", "font",
"terminal", "terminal",
{ {
"type": "display" "type": "display"
}, },
{ {
"type": "cpu", "type": "cpu",
"showPeCoreCount": true "showPeCoreCount": true
}, },
{ {
"type": "gpu", "type": "gpu",
"driverSpecific": true "driverSpecific": true
}, },
"memory", "memory",
"physicalmemory", "physicalmemory",
"poweradapter", "poweradapter",
"player", "player",
"bluetooth", "bluetooth",
"gamepad", "gamepad",
"break", "break",
"colors" "colors"
] ]
} }

View file

@ -0,0 +1 @@

View file

@ -1,32 +1,30 @@
{ {
"update.mode": "none", "update.mode": "none",
"extensions.autoCheckUpdates": false, "extensions.autoCheckUpdates": false,
"workbench.iconTheme": "material-icon-theme", "workbench.iconTheme": "material-icon-theme",
"workbench.productIconTheme": "material-product-icons", "workbench.productIconTheme": "material-product-icons",
"editor.fontLigatures": true, "editor.fontLigatures": true,
"terminal.integrated.fontLigatures": true, "terminal.integrated.fontLigatures": true,
"workbench.sideBar.location": "right", "workbench.sideBar.location": "right",
"workbench.startupEditor": "welcomePageInEmptyWorkbench", "workbench.startupEditor": "welcomePageInEmptyWorkbench",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"C_Cpp.clang_format_fallbackStyle": "LLVM", "C_Cpp.clang_format_fallbackStyle": "LLVM",
"nix.enableLanguageServer": true, "nix.enableLanguageServer": true,
"nix.serverPath": "nixd", "nix.serverPath": "nixd",
"nix.serverSettings": { "nix.serverSettings": {
"nixd": { "nixd": {
"formatting": { "formatting": {
"command": [ "command": ["nixfmt"]
"nixfmt" },
] "options": {
}, "home-manager": {
"options": { "expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").homeConfigurations.fedfer.options"
"home-manager": { },
"expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").homeConfigurations.fedfer.options" "nixos": {
}, "expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").nixosConfigurations.fedfer-main-laptop-nixos.options"
"nixos": { }
"expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").nixosConfigurations.fedfer-main-laptop-nixos.options" }
} }
} }
}
}
} }

View file

@ -1,6 +1,6 @@
return { return {
front_end = "WebGpu"; front_end = "WebGpu",
integrated_title_button_style = "Gnome"; integrated_title_button_style = "Gnome",
window_decorations = "TITLE | RESIZE"; window_decorations = "TITLE | RESIZE",
-- nix-replace -- nix-replace
} }

View file

@ -1,48 +1,48 @@
{ {
"telemetry": { "telemetry": {
"diagnostics": false, "diagnostics": false,
"metrics": false "metrics": false
}, },
"auto_update": false, "auto_update": false,
"project_panel": { "project_panel": {
"dock": "right" "dock": "right"
}, },
"terminal": { "terminal": {
"font_family": "FiraCode Nerd Font Mono", "font_family": "FiraCode Nerd Font Mono",
"env": { "env": {
"TERM": "xterm-256color" "TERM": "xterm-256color"
} }
}, },
"features": { "features": {
"inline_completion_provider": "none" "inline_completion_provider": "none"
}, },
"assistant": { "assistant": {
"enabled": false, "enabled": false,
"version": "2" "version": "2"
}, },
"lsp": { "lsp": {
"rust-analyzer": { "rust-analyzer": {
"binary": { "binary": {
"path": "/home/fedfer/.nix-profile/bin/rust-analyzer" "path": "/home/fedfer/.nix-profile/bin/rust-analyzer"
} }
}, },
"nixd": { "nixd": {
"formatting": { "formatting": {
"command": ["nixfmt"] "command": ["nixfmt"]
}, },
"options": { "options": {
"home-manager": { "home-manager": {
"expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").homeConfigurations.fedfer.options" "expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").homeConfigurations.fedfer.options"
}, },
"nixos": { "nixos": {
"expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").nixosConfigurations.fedfer-main-laptop-nixos.options" "expr": "(builtins.getFlake \"/home/fedfer/Documents/sys-config\").nixosConfigurations.fedfer-main-laptop-nixos.options"
} }
} }
} }
}, },
"languages": { "languages": {
"Nix": { "Nix": {
"language_servers": ["nixd", "!nil"] "language_servers": ["nixd", "!nil"]
} }
} }
} }

View file

@ -2,22 +2,9 @@
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"spacing": 10, "spacing": 10,
"modules-left": [ "modules-left": ["niri/workspaces"],
"niri/workspaces" "modules-center": ["clock#1", "clock#2", "clock#3"],
], "modules-right": ["pulseaudio", "memory", "cpu", "battery", "disk", "tray"],
"modules-center": [
"clock#1",
"clock#2",
"clock#3"
],
"modules-right": [
"pulseaudio",
"memory",
"cpu",
"battery",
"disk",
"tray"
],
"sway/workspaces": { "sway/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"format": "{name}" "format": "{name}"
@ -40,10 +27,7 @@
"format-muted": "", "format-muted": "",
"format-icons": { "format-icons": {
"headphones": "", "headphones": "",
"default": [ "default": ["", ""]
"",
""
]
}, },
"scroll-step": 5, "scroll-step": 5,
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", "on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
@ -65,13 +49,7 @@
"critical": 15 "critical": 15
}, },
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"format-icons": [ "format-icons": ["", "", "", "", ""]
"",
"",
"",
"",
""
]
}, },
"disk": { "disk": {
"interval": 5, "interval": 5,