Compare commits

...

31 commits

Author SHA1 Message Date
Leonardo Eugênio 21afc8953b home: disable nextcloud client 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 0546bd693d monolith: add forgejo runner 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 4955208b12 sshd: disable until xz is secure 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 8a27db339c sway: add more env vars to dbus activation 2024-04-09 01:02:48 -03:00
Leonardo Eugênio e54ecfee82 flake: update lockfile 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 56042cc774 syncthing: way for tray 2024-04-09 01:02:48 -03:00
Leonardo Eugênio a55398d745 kdenlive: fix theme 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 146955817a theme: improve qt theming 2024-04-09 01:02:48 -03:00
Leonardo Eugênio af6ccfc80a syncthing: enable tray icon 2024-04-09 01:02:48 -03:00
Leonardo Eugênio e8dc758189 mangohud: install patch to fix keybind crash 2024-04-09 01:02:48 -03:00
Leonardo Eugênio be5d39cbe3 gpg: simplify config 2024-04-09 01:02:48 -03:00
Leonardo Eugênio d5b59857f5 update 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 31e5a75523 lsp: replace rnix-lsp with nil 2024-04-09 01:02:48 -03:00
Leonardo Eugênio eef888a521 update 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 84b7e706a2 btop: enable gpu monitoring 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 560bbd8fd8 update 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 219daf83da kak-lsp: update config to new format 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 7418ee0538 alacritty: update config 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 0d444a8c5f update renamed xkb config 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 0615604cdd update 2024-04-09 01:02:48 -03:00
Leonardo Eugênio a769f8f2b5 update 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 95cf3c5f72 update 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 372988d88c sway: disable adaptive sync 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 894151f6e0 update 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 9d4c963347 update 2024-04-09 01:02:48 -03:00
Leonardo Eugênio c6e8559963 switch to nixpkgs unstable 2024-04-09 01:02:48 -03:00
Leonardo Eugênio 8518176f2b phantom: use personal git forge as autoUpdate source 2024-04-09 01:01:29 -03:00
Leonardo Eugênio bf382371cb phantom: add a top level domain page 2024-04-09 00:42:40 -03:00
Leonardo Eugênio 3bf20808b5 nextcloud: fix ssl certificates 2024-04-08 23:38:49 -03:00
Leonardo Eugênio e53be29b0c email: fix fqdn 2024-04-08 22:48:02 -03:00
Leonardo Eugênio d06253b430 email: add roundcube archive plugin 2024-04-08 22:14:06 -03:00
24 changed files with 166 additions and 296 deletions

View file

@ -508,16 +508,15 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1706981411, "lastModified": 1710532761,
"narHash": "sha256-cLbLPTL1CDmETVh4p0nQtvoF+FSEjsnJTFpTxhXywhQ=", "narHash": "sha256-SUXGZNrXX05YA9G6EmgupxhOr3swI1gcxLUeDMUhrEY=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "652fda4ca6dafeb090943422c34ae9145787af37", "rev": "206f457fffdb9a73596a4cb2211a471bd305243d",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-23.11",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -561,11 +560,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1710864211, "lastModified": 1710538160,
"narHash": "sha256-Uve1/UBnwD4M/9xD0E3XATnLrF8B5vL6MTBhX6Is+TE=", "narHash": "sha256-p5Wkl2rXjFftd+Nugiq71BgGAl4E9byYxKV0ahLTo+U=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "bcba3951f45f11245d424274130eb3a0ac790d93", "rev": "2a2da6082e5f1501731004b755d35a8dbb605fde",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -709,11 +708,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710644923, "lastModified": 1710120787,
"narHash": "sha256-0fjbN5GYYDKPyPay0l8gYoH+tFfNqPPwP5sxxBreeA4=", "narHash": "sha256-tlLuB73OCOKtU2j83bQzSYFyzjJo3rjpITZE5MoofG8=",
"owner": "Mic92", "owner": "Mic92",
"repo": "nix-index-database", "repo": "nix-index-database",
"rev": "e25efda85e39fcdc845e371971ac4384989c4295", "rev": "e76ff2df6bfd2abe06abd8e7b9f217df941c1b07",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -866,16 +865,16 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1710695816, "lastModified": 1710451336,
"narHash": "sha256-3Eh7fhEID17pv9ZxrPwCLfqXnYP006RKzSs0JptsN84=", "narHash": "sha256-pP86Pcfu3BrAvRO7R64x7hs+GaQrjFes+mEPowCfkxY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "614b4613980a522ba49f0d194531beddbb7220d3", "rev": "d691274a972b3165335d261cc4671335f5c67de9",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "nixos-23.11", "ref": "nixos-unstable",
"type": "indirect" "type": "indirect"
} }
}, },
@ -1202,15 +1201,15 @@
"locked": { "locked": {
"lastModified": 1684504342, "lastModified": 1684504342,
"narHash": "sha256-rJ0eH7BuPizvXPc+LjVtovse4gWEuxP2WiyNdXjPNL4=", "narHash": "sha256-rJ0eH7BuPizvXPc+LjVtovse4gWEuxP2WiyNdXjPNL4=",
"owner": "lelgenio", "ref": "refs/heads/main",
"repo": "tlauncher-nix",
"rev": "add4df7220bd0b85177a1938c02b60c966c5eb71", "rev": "add4df7220bd0b85177a1938c02b60c966c5eb71",
"type": "github" "revCount": 3,
"type": "git",
"url": "https://git.lelgenio.xyz/lelgenio/tlauncher-nix"
}, },
"original": { "original": {
"owner": "lelgenio", "type": "git",
"repo": "tlauncher-nix", "url": "https://git.lelgenio.xyz/lelgenio/tlauncher-nix"
"type": "github"
} }
}, },
"utils": { "utils": {

View file

@ -1,8 +1,8 @@
{ {
description = "My system config"; description = "My system config";
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-23.11"; nixpkgs.url = "nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-23.11"; home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
nix-index-database = { nix-index-database = {
@ -42,7 +42,7 @@
}; };
tlauncher = { tlauncher = {
url = "github:lelgenio/tlauncher-nix"; url = "git+https://git.lelgenio.xyz/lelgenio/tlauncher-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
@ -76,17 +76,9 @@
overlays = old_overlays.all; overlays = old_overlays.all;
}; };
bootstrapPkgs = import inputs.nixpkgs nixpkgsConfig;
nixpkgs = bootstrapPkgs.applyPatches {
name = "patched-nixpkgs";
src = inputs.nixpkgs;
patches = lib.mapAttrsToList (k: v: ./patches/nixpkgs/${k})
(builtins.readDir ./patches/nixpkgs);
};
inherit (import ./user/variables.nix) desktop; inherit (import ./user/variables.nix) desktop;
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs nixpkgsConfig; pkgs = import inputs.nixpkgs nixpkgsConfig;
lib = inputs.nixpkgs.lib; lib = inputs.nixpkgs.lib;
packages = import ./pkgs { inherit pkgs inputs; }; packages = import ./pkgs { inherit pkgs inputs; };
@ -131,6 +123,7 @@
modules = [ modules = [
./hosts/monolith.nix ./hosts/monolith.nix
./system/monolith-gitlab-runner.nix ./system/monolith-gitlab-runner.nix
./system/monolith-forgejo-runner.nix
./system/nix-serve.nix ./system/nix-serve.nix
./system/steam.nix ./system/steam.nix
] ++ common_modules; ] ++ common_modules;

View file

@ -43,6 +43,7 @@ in
vaapiVdpau vaapiVdpau
rocm-opencl-icd rocm-opencl-icd
rocm-opencl-runtime rocm-opencl-runtime
rocmPackages.rocm-smi
]; ];
programs.corectrl.enable = true; programs.corectrl.enable = true;

View file

@ -15,6 +15,24 @@
./forgejo.nix ./forgejo.nix
]; ];
services.nginx.virtualHosts."lelgenio.xyz" = {
enableACME = true;
forceSSL = true;
root = pkgs.runCommand "www-dir" { } ''
mkdir -p $out
cat > $out/index.html <<EOF
<!DOCTYPE html>
<html lang="en">
<body>
<h1>
Nothing to see here!
<h1>
</body>
</html>
EOF
'';
};
# # Enable networking # # Enable networking
# networking.networkmanager.enable = true; # networking.networkmanager.enable = true;
# Set your time zone. # Set your time zone.
@ -33,7 +51,7 @@
dates = "04:40"; dates = "04:40";
operation = "switch"; operation = "switch";
flags = [ "--update-input" "nixpkgs" "--no-write-lock-file" "-L" ]; flags = [ "--update-input" "nixpkgs" "--no-write-lock-file" "-L" ];
flake = "github:lelgenio/nixos-config#phantom"; flake = "git+https://git.lelgenio.xyz/lelgenio/nixos-config#phantom";
}; };
system.stateVersion = "23.05"; # Never change this system.stateVersion = "23.05"; # Never change this

View file

@ -8,7 +8,7 @@
mailserver = { mailserver = {
enable = true; enable = true;
fqdn = "mail.lelgenio.xyz"; fqdn = "lelgenio.xyz";
domains = [ domains = [
"lelgenio.xyz" "lelgenio.xyz"
"git.lelgenio.xyz" "git.lelgenio.xyz"
@ -36,7 +36,7 @@
$config['smtp_host'] = "tls://${hostName}:587"; $config['smtp_host'] = "tls://${hostName}:587";
$config['smtp_user'] = "%u"; $config['smtp_user'] = "%u";
$config['smtp_pass'] = "%p"; $config['smtp_pass'] = "%p";
$config['plugins'] = [ "carddav" ]; $config['plugins'] = [ "carddav", "archive" ];
''; '';
}; };

View file

@ -9,6 +9,11 @@
}; };
}; };
services.nginx.virtualHosts.${config.services.nextcloud.hostName} = {
forceSSL = true;
enableACME = true;
};
age = { age = {
secrets.phantom-nextcloud = { secrets.phantom-nextcloud = {
file = ../../secrets/phantom-nextcloud.age; file = ../../secrets/phantom-nextcloud.age;

View file

@ -52,6 +52,14 @@
patches = old.patches patches = old.patches
++ [ ../patches/sway/fix-hide_cursor-clearing-focus.patch ]; ++ [ ../patches/sway/fix-hide_cursor-clearing-focus.patch ];
}); });
mangohud = prev.mangohud.overrideAttrs (o: {
patches = o.patches ++ [
(prev.fetchpatch {
url = "https://github.com/flightlessmango/MangoHud/commit/95141de657e02577f1d3fab0ca12122bfb68bc56.patch";
hash = "sha256-a2tESliGBkfF7uYQn8TDgeFt07A9FOioI4VcTT7DC7A=";
})
];
});
}); });
variables = (final: prev: { variables = (final: prev: {

View file

@ -11,7 +11,7 @@
executable = true; executable = true;
text = '' text = ''
systemctl --user import-environment systemctl --user import-environment
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway SWAYSOCK
# systemctl --user stop pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-wlr # systemctl --user stop pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-wlr
# systemctl --user start pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-wlr # systemctl --user start pipewire wireplumber xdg-desktop-portal xdg-desktop-portal-wlr
''; '';

View file

@ -1,27 +0,0 @@
From ac4d51306af54a088e29e2e5efcfac5dfe87d95c Mon Sep 17 00:00:00 2001
From: lelgenio <lelgenio@disroot.org>
Date: Fri, 4 Aug 2023 01:25:04 -0300
Subject: [PATCH] HACK: fix steam after generation switch
---
pkgs/build-support/build-fhsenv-bubblewrap/default.nix | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pkgs/build-support/build-fhsenv-bubblewrap/default.nix b/pkgs/build-support/build-fhsenv-bubblewrap/default.nix
index 3500e5e9216f..4d7ac0aa7618 100644
--- a/pkgs/build-support/build-fhsenv-bubblewrap/default.nix
+++ b/pkgs/build-support/build-fhsenv-bubblewrap/default.nix
@@ -152,6 +152,10 @@ let
fi
if [[ -L $i ]]; then
symlinks+=(--symlink "$(${coreutils}/bin/readlink "$i")" "$i")
+ elif [[ -f $i && -r $i ]]; then
+ SNAPSHOT=$(mktemp --dry-run)
+ cp "$i" "$SNAPSHOT"
+ ro_mounts+=(--ro-bind-try "$SNAPSHOT" "$i")
else
ro_mounts+=(--ro-bind-try "$i" "$i")
fi
--
2.42.0

Binary file not shown.

View file

@ -5,6 +5,7 @@ in
"rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ]; "rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ];
"monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ]; "monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ];
"gitlab-runner-thoreb-telemetria-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ]; "gitlab-runner-thoreb-telemetria-registrationConfigFile.age".publicKeys = [ main_ssh_public_key ];
"monolith-forgejo-runner-token.age".publicKeys = [ main_ssh_public_key ];
"lelgenio-cachix.age".publicKeys = [ main_ssh_public_key ]; "lelgenio-cachix.age".publicKeys = [ main_ssh_public_key ];
"monolith-nix-serve-privkey.age".publicKeys = [ main_ssh_public_key ]; "monolith-nix-serve-privkey.age".publicKeys = [ main_ssh_public_key ];
"phantom-nextcloud.age".publicKeys = [ main_ssh_public_key ]; "phantom-nextcloud.age".publicKeys = [ main_ssh_public_key ];

View file

@ -11,6 +11,8 @@
./nix.nix ./nix.nix
]; ];
boot.kernelPackages = pkgs.linuxPackages_latest;
zramSwap.enable = true; zramSwap.enable = true;
programs.adb.enable = true; programs.adb.enable = true;
@ -38,9 +40,9 @@
# services.xserver.displayManager.autologin.user = "lelgenio"; # services.xserver.displayManager.autologin.user = "lelgenio";
# Configure keymap in X11 # Configure keymap in X11
services.xserver = { services.xserver.xkb = {
layout = "us"; layout = "us";
xkbVariant = "colemak"; variant = "colemak";
}; };
console.keyMap = "colemak"; console.keyMap = "colemak";
# Enable CUPS to print documents. # Enable CUPS to print documents.
@ -57,7 +59,7 @@
security.rtkit.enable = true; security.rtkit.enable = true;
services.openssh = { services.openssh = {
enable = true; enable = false;
ports = [ 9022 ]; ports = [ 9022 ];
settings = { settings = {
PermitRootLogin = "no"; PermitRootLogin = "no";

View file

@ -16,7 +16,7 @@ in {
gimp gimp
inkscape inkscape
krita krita
kdenlive kdePackages.kdenlive
pitivi pitivi
blender-hip blender-hip
libreoffice libreoffice

View file

@ -0,0 +1,19 @@
{ pkgs, config, ... }: {
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.default = {
enable = true;
name = "monolith";
url = "https://git.lelgenio.xyz";
tokenFile = config.age.secrets.monolith-forgejo-runner-token.path;
labels = [
# provide a debian base with nodejs for actions
"debian-latest:docker://node:18-bullseye"
# fake the ubuntu name, because node provides no ubuntu builds
"ubuntu-latest:docker://node:18-bullseye"
# provide native execution on the host
#"native:host"
];
};
};
}

View file

@ -6,6 +6,8 @@
../secrets/monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.age; ../secrets/monolith-gitlab-runner-thoreb-itinerario-registrationConfigFile.age;
secrets.gitlab-runner-thoreb-telemetria-registrationConfigFile.file = secrets.gitlab-runner-thoreb-telemetria-registrationConfigFile.file =
../secrets/gitlab-runner-thoreb-telemetria-registrationConfigFile.age; ../secrets/gitlab-runner-thoreb-telemetria-registrationConfigFile.age;
secrets.monolith-forgejo-runner-token.file =
../secrets/monolith-forgejo-runner-token.age;
secrets.rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.file = secrets.rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.file =
../secrets/rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.age; ../secrets/rainbow-gitlab-runner-thoreb-itinerario-registrationConfigFile.age;
secrets.monolith-nix-serve-privkey.file = secrets.monolith-nix-serve-privkey.file =

View file

@ -31,8 +31,8 @@ in
cyan = "${color.normal.cyan}"; cyan = "${color.normal.cyan}";
white = "${color.normal.white}"; white = "${color.normal.white}";
}; };
draw_bold_text_with_bright_colors = false;
}; };
draw_bold_text_with_bright_colors = false;
window = { window = {
opacity = theme.opacity / 100.0; opacity = theme.opacity / 100.0;
dynamic_padding = true; dynamic_padding = true;
@ -65,7 +65,7 @@ in
}]; }];
}; };
mouse = { hide_when_typing = true; }; mouse = { hide_when_typing = true; };
key_bindings = [ keyboard.bindings = [
{ {
key = lib.toUpper key.up; key = lib.toUpper key.up;
mode = "Vi|~Search"; mode = "Vi|~Search";

View file

@ -69,7 +69,6 @@ in {
programs = { programs = {
zoxide.enable = true; zoxide.enable = true;
eza.enable = true; eza.enable = true;
eza.enableAliases = true;
direnv.enable = true; direnv.enable = true;
direnv.nix-direnv.enable = true; direnv.nix-direnv.enable = true;
}; };

View file

@ -36,6 +36,8 @@
libsForQt5.qt5ct libsForQt5.qt5ct
libsForQt5.qtstyleplugin-kvantum libsForQt5.qtstyleplugin-kvantum
qt6Packages.qt6ct
qt6Packages.qtstyleplugin-kvantum
]; ];
home.sessionVariables = { QT_QPA_PLATFORMTHEME = "qt5ct"; }; home.sessionVariables = { QT_QPA_PLATFORMTHEME = "qt5ct"; };

View file

@ -4,7 +4,7 @@
enable = true; enable = true;
defaultCacheTtl = 604800; defaultCacheTtl = 604800;
maxCacheTtl = 604800; maxCacheTtl = 604800;
pinentryFlavor = "gtk2"; pinentryPackage = pkgs.pinentry-curses;
extraConfig = '' extraConfig = ''
allow-preset-passphrase allow-preset-passphrase
''; '';

View file

@ -70,7 +70,9 @@
comma comma
# System monitors # System monitors
btop (btop.override {
cudaSupport = true;
})
amdgpu_top amdgpu_top
inxi inxi
dmidecode dmidecode
@ -143,11 +145,6 @@
}; };
programs.bash = { enable = true; }; programs.bash = { enable = true; };
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
xdg.defaultApplications = { xdg.defaultApplications = {
enable = true; enable = true;
text-editor = lib.mkDefault "kak.desktop"; text-editor = lib.mkDefault "kak.desktop";

View file

@ -7,7 +7,7 @@ verbosity = 2
# set to 0 to disable # set to 0 to disable
timeout = 1800 # seconds = 30 minutes timeout = 1800 # seconds = 30 minutes
[language.angular] [language_server.angular]
filetypes = ["angular"] filetypes = ["angular"]
roots = [".angular", ".git"] roots = [".angular", ".git"]
command = "node" command = "node"
@ -20,134 +20,80 @@ args = [
"--stdio", "--stdio",
] ]
[language.bash] [language_server.bash-language-server]
filetypes = ["sh"] filetypes = ["sh"]
roots = [".git", ".hg"] roots = [".git", ".hg"]
command = "bash-language-server" command = "bash-language-server"
args = ["start"] args = ["start"]
[language.c_cpp] [language_server.clangd]
filetypes = ["c", "cpp"] filetypes = ["c", "cpp"]
roots = [ "compile_commands.json", ".clangd", ".git" ] roots = ["compile_commands.json", ".clangd", ".git", ".hg"]
command = "clangd" command = "clangd"
[language.crystal] [language_server.css-language-server]
filetypes = ["crystal"]
roots = ["shard.yml"]
command = "scry"
[language.css]
filetypes = ["css"] filetypes = ["css"]
roots = ["package.json"] roots = ["package.json", ".git", ".hg"]
command = "vscode-css-languageserver" command = "vscode-css-languageserver"
args = ["--stdio"] args = ["--stdio"]
[language.less] [language_server.less-language-server]
filetypes = ["less"] filetypes = ["less"]
roots = ["package.json", ".git"] roots = ["package.json", ".git", ".hg"]
command = "vscode-css-languageserver" command = "vscode-css-languageserver"
args = ["--stdio"] args = ["--stdio"]
[language.d] [language_server.html-language-server]
filetypes = ["d", "di"]
roots = [".git", "dub.sdl", "dub.json"]
command = "dls"
[language.dart]
# start shell to find path to dart analysis server source
filetypes = ["dart"]
roots = ["pubspec.yaml", ".git"]
command = "sh"
args = ["-c", "dart $(dirname $(which dart))/snapshots/analysis_server.dart.snapshot --lsp"]
[language.elm]
filetypes = ["elm"]
roots = ["elm.json"]
command = "elm-language-server"
args = ["--stdio"]
# [language.elm.initialization_options]
# runtime = "node"
# elmPath = "elm"
# elmFormatPath = "elm-format"
# elmTestPath = "elm-test"
[language.go]
filetypes = ["go"]
roots = ["Gopkg.toml", "go.mod", ".git", ".hg"]
command = "gopls"
offset_encoding = "utf-8"
[language.haskell]
filetypes = ["haskell"]
roots = ["Setup.hs", "stack.yaml", "*.cabal"]
command = "haskell-language-server-wrapper"
args = ["--lsp"]
[language.html]
filetypes = ["html"] filetypes = ["html"]
roots = ["package.json"] roots = ["package.json"]
command = "vscode-html-languageserver" command = "vscode-html-languageserver"
args = ["--stdio"] args = ["--stdio"]
settings_section = "_"
[language_server.html-language-server.settings._]
# quotePreference = "single"
# javascript.format.semicolons = "insert"
[language.javascript] [language_server.typescript-language-server]
filetypes = ["javascript"] filetypes = ["javascript", "typescript"]
roots = [".flowconfig"] roots = ["package.json", "tsconfig.json", "jsconfig.json", ".git", ".hg"]
command = "flow"
args = ["lsp"]
[language.typescript]
filetypes = ["typescript"]
roots = ["package.json"]
command = "typescript-language-server" command = "typescript-language-server"
args = ["--stdio"] args = ["--stdio"]
settings_section = "_"
[language_server.typescript-language-server.settings._]
# quotePreference = "double"
# typescript.format.semicolons = "insert"
[language.json] [language_server.json-language-server]
filetypes = ["json"] filetypes = ["json"]
roots = ["package.json"] roots = ["package.json"]
command = "vscode-json-languageserver" command = "vscode-json-languageserver"
args = ["--stdio"] args = ["--stdio"]
[language.latex] [language_server.nil]
filetypes = ["latex"]
roots = [".git"]
command = "texlab"
[language.nim]
filetypes = ["nim"]
roots = ["*.nimble", ".git"]
command = "nimlsp"
[language.nix]
filetypes = ["nix"] filetypes = ["nix"]
command = "nil" command = "nil"
roots = ["flake.nix", "shell.nix", ".git"] roots = ["flake.nix", "shell.nix", ".git"]
[language.nix.settings.nil] [language_server.nil.settings.nil]
formatting.command = [ "nixpkgs-fmt" ] formatting.command = [ "nixpkgs-fmt" ]
[language.ocaml] [language_server.intelephense]
filetypes = ["ocaml"]
roots = ["Makefile", "opam", "*.opam", "dune"]
command = "ocaml-language-server"
args = ["--stdio"]
[language.php]
filetypes = ["php"] filetypes = ["php"]
roots = [".htaccess", "composer.json"] roots = [".htaccess", "composer.json"]
command = "intelephense" command = "intelephense"
args = ["--stdio"] args = ["--stdio"]
settings_section = "intelephense" settings_section = "intelephense"
[language.php.settings] [language_server.intelephense.settings.intelephense]
intelephense.format.braces = "k&r" storagePath = "/tmp/intelephense"
intelephense.storagePath = "/tmp/intelephense"
intelephense.environment.includePaths = [ format.braces = "k&r"
environment.includePaths = [
"./vendor", "./vendor",
"./vendor/autoload", "./vendor/autoload",
"./vendor/laravel/framework/", "./vendor/laravel/framework/",
"./vendor/laravel/framework/src/", "./vendor/laravel/framework/src/",
"./vendor/laravel/framework/src/Illuminate/" "./vendor/laravel/framework/src/Illuminate/"
] ]
intelephense.files.exclude = [ files.exclude = [
"**/.git/**", "**/.git/**",
"**/.svn/**", "**/.svn/**",
"**/.hg/**", "**/.hg/**",
@ -159,42 +105,9 @@ intelephense.files.exclude = [
"**/resources/views/**" "**/resources/views/**"
] ]
[language.python] [language_server.rust-analyzer]
filetypes = ["python"]
roots = ["requirements.txt", "setup.py", ".git", ".hg"]
command = "pyls"
offset_encoding = "utf-8"
[language.reason]
filetypes = ["reason"]
roots = ["package.json", "Makefile", ".git", ".hg"]
command = "ocaml-language-server"
args = ["--stdio"]
[language.ruby]
filetypes = ["ruby"]
roots = ["Gemfile"]
command = "solargraph"
args = ["stdio"]
# [language.rust]
# filetypes = ["rust"]
# roots = ["Cargo.toml"]
# command = "sh"
# args = [
# "-c",
# """
# if path=$(rustup which rls 2>/dev/null); then
# "$path"
# else
# rls
# fi
# """,
# ]
[language.rust]
filetypes = ["rust"] filetypes = ["rust"]
roots = ["rust-toolchain.toml", "rust-toolchain", "Cargo.toml"] roots = ["Cargo.toml"]
command = "sh" command = "sh"
args = [ args = [
"-c", "-c",
@ -206,99 +119,37 @@ args = [
fi fi
""", """,
] ]
[language.rust.settings.rust-analyzer] [language_server.rust-analyzer.settings.rust-analyzer]
## this can use too much space and processing power # See https://rust-analyzer.github.io/manual.html#configuration
# checkOnSave.extraArgs = ["--target-dir", "./target/check"] # cargo.features = []
checkOnSave.command = "clippy" checkOnSave.command = "clippy"
hoverActions.enable = false # kak-lsp doesn't support this at the moment hoverActions.enable = false # kak-lsp doesn't support this at the moment
# procMacro.enable = true
# cargo.loadOutDirsFromCheck = true
# rustfmt.rangeFormatting.enable = true
# rustfmt.extraArgs = ["+nightly"]
[language.terraform] [language_server.godot]
filetypes = ["terraform"]
roots = ["*.tf"]
command = "terraform-ls"
args = ["serve"]
[language.godot]
filetypes = ["gd", "gdscript", "gdscript3"] filetypes = ["gd", "gdscript", "gdscript3"]
roots = ["project.godot", ".git/"] roots = ["project.godot", ".git/"]
command = "nc" command = "nc"
args = [ "localhost", "6008"] args = [ "localhost", "6008"]
[language.clojure] # Semantic tokens support
filetypes = ["clojure"] # See https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_semanticTokens
roots = ["project.clj", ".git/"] # for the default list of tokens and modifiers.
command = "clojure-lsp" # However, many language servers implement their own values.
args = [] # Make sure to check the output of `lsp-capabilities` and each server's documentation and source code as well.
# Examples:
# - TypeScript: https://github.com/microsoft/vscode-languageserver-node/blob/main/client/src/common/semanticTokens.ts
# - Rust Analyzer: https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/syntax_highlighting.rs
[semantic_tokens]
[semantic_scopes] faces = [
# Map textmate scopes to kakoune faces for semantic highlighting {face="documentation", token="comment", modifiers=["documentation"]},
# the underscores are translated to dots, and indicate nesting. {face="comment", token="comment"},
# That is, if variable_other_field is omitted, it will try the face for {face="function", token="function"},
# variable_other and then variable {face="keyword", token="keyword"},
# {face="module", token="namespace"},
# To see a list of available scopes in the debug buffer, run lsp-semantic-available-scopes {face="operator", token="operator"},
variable = "variable" {face="string", token="string"},
entity_name_function = "function" {face="type", token="type"},
entity_name_type = "type" {face="default+d", token="variable", modifiers=["readonly"]},
variable_other_enummember = "variable" {face="default+d", token="variable", modifiers=["constant"]},
entity_name_namespace = "module" {face="variable", token="variable"},
]
[semantic_modifiers]
documentation = "documentation"
readonly = "default+d"
[[semantic_tokens]]
token = "comment"
face = "documentation"
modifiers = ["documentation"]
[[semantic_tokens]]
token = "comment"
face = "comment"
[[semantic_tokens]]
token = "function"
face = "function"
[[semantic_tokens]]
token = "keyword"
face = "keyword"
[[semantic_tokens]]
token = "namespace"
face = "module"
[[semantic_tokens]]
token = "operator"
face = "operator"
[[semantic_tokens]]
token = "string"
face = "string"
[[semantic_tokens]]
token = "type"
face = "type"
[[semantic_tokens]]
token = "variable"
face = "default+d"
modifiers = ["readonly"]
[[semantic_tokens]]
token = "variable"
face = "default+d"
modifiers = ["constant"]
[[semantic_tokens]]
token = "variable"
face = "variable"

View file

@ -52,7 +52,7 @@ in
}; };
output = { output = {
"*" = { "*" = {
adaptive_sync = "on"; adaptive_sync = "off";
bg = "${theme.background} fill"; bg = "${theme.background} fill";
mode = "1920x1080@144.000Hz"; mode = "1920x1080@144.000Hz";
}; };

View file

@ -33,12 +33,10 @@ lib.mkIf (desktop == "sway")
in in
{ gtk4 = shared; gtk3 = shared; } { gtk4 = shared; gtk3 = shared; }
); );
# qt = { qt = {
# enable = true; enable = true;
# platformTheme = "gtk"; platformTheme = "qtct";
# # style.package = pkgs.libsForQt5.qtstyleplugins; };
# # style.name = "gtk2";
# };
dconf.settings = { dconf.settings = {
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {
@ -79,10 +77,11 @@ lib.mkIf (desktop == "sway")
}; };
}; };
home.sessionVariables = { QT_QPA_PLATFORMTHEME = "gtk3"; };
home.packages = with pkgs; [ home.packages = with pkgs; [
libsForQt5.qt5ct libsForQt5.qt5ct
libsForQt5.qtstyleplugin-kvantum libsForQt5.qtstyleplugin-kvantum
qt6Packages.qt6ct
qt6Packages.qtstyleplugin-kvantum
pkgs.bibata-cursors pkgs.bibata-cursors
pkgs.orchis_theme_compact pkgs.orchis_theme_compact

View file

@ -1,8 +1,9 @@
{ config, pkgs, lib, inputs, ... }: { ... }: {
let inherit (pkgs.uservars) key theme color accent font;
in {
services.syncthing = { services.syncthing = {
enable = true; enable = true;
# tray.enable = true; tray = {
enable = true;
command = "syncthingtray --wait";
};
}; };
} }