Compare commits
5 Commits
8e819e01ea
...
d8b6458928
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8b6458928 | ||
|
|
be7bffff67 | ||
|
|
a9055968e7 | ||
|
|
eb18897355 | ||
|
|
00679a2c04 |
6
flake.lock
generated
6
flake.lock
generated
@ -229,11 +229,11 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1774709303,
|
||||
"narHash": "sha256-D3Q07BbIA2KnTcSXIqqu9P586uWxN74zNoCH3h2ESHg=",
|
||||
"lastModified": 1775710090,
|
||||
"narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "8110df5ad7abf5d4c0f6fb0f8f978390e77f9685",
|
||||
"rev": "4c1018dae018162ec878d42fec712642d214fdfa",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@ -7,6 +7,9 @@
|
||||
# Set hostid (required for ZFS)
|
||||
networking.hostId = "deadbeef";
|
||||
|
||||
# Use thermald
|
||||
services.thermald.ignoreCpuidCheck = true;
|
||||
|
||||
# Hardware configuration
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
boot.initrd.availableKernelModules = [
|
||||
|
||||
@ -16,7 +16,11 @@ in
|
||||
# TODO: Add nvidia settings back in
|
||||
# TODO: Move to nvidia module
|
||||
hardware.nvidia = {
|
||||
open = true;
|
||||
open = false;
|
||||
prime = {
|
||||
intelBusId = "PCI:0@0:2:0";
|
||||
nvidiaBusId = "PCI:1@0:0:0";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -67,6 +67,7 @@ in
|
||||
"rounded-window-corners@fxgn"
|
||||
"media-progress@krypion17"
|
||||
"mprisLabel@moon-0xff.github.com"
|
||||
"caffeube@patapon.info"
|
||||
];
|
||||
last-selected-power-profile = "power-saver";
|
||||
};
|
||||
|
||||
@ -50,6 +50,10 @@ in
|
||||
vlc
|
||||
authenticator
|
||||
hotspot
|
||||
btop
|
||||
winboat
|
||||
hieroglyphic
|
||||
shortwave
|
||||
|
||||
podman
|
||||
podman-compose
|
||||
@ -58,6 +62,14 @@ in
|
||||
gnome-logs
|
||||
];
|
||||
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
options = {
|
||||
synctex = true;
|
||||
synctex-editor-command = "${pkgs.texlab}/bin/texlab inverse-search -i %{input} -l %{line}";
|
||||
};
|
||||
};
|
||||
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
@ -68,6 +80,34 @@ in
|
||||
# fallback = "default";
|
||||
# };
|
||||
# };
|
||||
settings =
|
||||
let
|
||||
move_line_up = [
|
||||
"extend_to_line_bounds"
|
||||
"delete_selection"
|
||||
"move_line_up"
|
||||
"paste_before"
|
||||
];
|
||||
move_line_down = [
|
||||
"extend_to_line_bounds"
|
||||
"delete_selection"
|
||||
"paste_after"
|
||||
];
|
||||
in
|
||||
{
|
||||
keys.normal = {
|
||||
"A-up" = move_line_up;
|
||||
"A-down" = move_line_down;
|
||||
"A-k" = move_line_up;
|
||||
"A-j" = move_line_down;
|
||||
};
|
||||
keys.select = {
|
||||
"A-up" = move_line_up;
|
||||
"A-down" = move_line_down;
|
||||
"A-k" = move_line_up;
|
||||
"A-j" = move_line_down;
|
||||
};
|
||||
};
|
||||
extraPackages = with pkgs; [
|
||||
bash-language-server # Bash
|
||||
fish-lsp # Fish
|
||||
@ -97,7 +137,8 @@ in
|
||||
ruff # Python
|
||||
basedpyright # Python
|
||||
|
||||
helix-gpt # Copilot
|
||||
#helix-gpt # Copilot
|
||||
ltex-ls-plus # Spellchecking
|
||||
|
||||
# texlab # Latex, Bibtex
|
||||
# bibtex-tidy # Bibtex
|
||||
@ -116,6 +157,22 @@ in
|
||||
];
|
||||
languages = {
|
||||
language-server = {
|
||||
ltex = {
|
||||
command = "ltex-ls-plus";
|
||||
config.ltex = { };
|
||||
};
|
||||
texlab = {
|
||||
command = "texlab";
|
||||
config.texlab = {
|
||||
build.onSave = true;
|
||||
forwardSearch.executable = "${config.programs.zathura.package}/bin/zathura";
|
||||
forwardSearch.args = [
|
||||
"--synctex-forward"
|
||||
"%l:1:%f"
|
||||
"%p"
|
||||
];
|
||||
};
|
||||
};
|
||||
basedpyright = {
|
||||
command = "basedpyright-langserver";
|
||||
args = [ "--stdio" ];
|
||||
@ -133,6 +190,16 @@ in
|
||||
};
|
||||
};
|
||||
language = [
|
||||
{
|
||||
name = "latex";
|
||||
# language-servers = [
|
||||
# { name = "texlab"; }
|
||||
# { name = "ltex"; }
|
||||
# ];
|
||||
soft-wrap = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "python";
|
||||
language-servers = [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user