adding filen, fixing up emacs and lsps

This commit is contained in:
Matt Nish-Lapidus 2025-02-18 13:01:44 -05:00
parent 61ef5654ee
commit b8c6aa3ec0
17 changed files with 229 additions and 158 deletions

18
flake.lock generated
View file

@ -69,11 +69,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1739844449,
"narHash": "sha256-NtddqudRBSTT1FTkBKEo+CRhZjSwRvimyeAxoRcXTKo=",
"lastModified": 1739895788,
"narHash": "sha256-il5UJ8RpJA7DeeeguiBxQnDPGpRnqPJvQR5JS76pEH4=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "53b218d3d3d187724e86b2a63ce9a960d005faac",
"rev": "d3b44edf424120461ea2c3e4f0db3857d19fa21d",
"type": "github"
},
"original": {
@ -712,11 +712,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1739824279,
"narHash": "sha256-373u7+WYbKZDZ6gerTcXjdcqR0bR33nRfOU5XcY/MBY=",
"lastModified": 1739876011,
"narHash": "sha256-dER5F0i3gkEamO8WKHYO8JbTQZUY5PFmj9Vyl+gj8zI=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "fad7cbe279fb9a550896de1179982ce2d4734e5c",
"rev": "da9eb08bcff07dafcd1d563d89c43ab00ba5d07e",
"type": "github"
},
"original": {
@ -745,11 +745,11 @@
"niri-unstable": {
"flake": false,
"locked": {
"lastModified": 1739820990,
"narHash": "sha256-v+MmVqFyjzL9xzyRzfX+1qMIGgoHcW73P9b8RrM922k=",
"lastModified": 1739872242,
"narHash": "sha256-rk9yKCwmOrezXbRN/lqQsQxu/Wuv8HFKTs5RiDK9GUU=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "44c9797844ca7ce8a708d5034f1259ce3fc6bd2a",
"rev": "ad49e5820a857dea88cfb26ef71d56ffe88ca91d",
"type": "github"
},
"original": {

View file

@ -84,6 +84,7 @@
self,
...
} @inputs:
let
inherit (nixpkgs.lib) genAttrs replaceStrings;
inherit (nixpkgs.lib.filesystem) packagesFromDirectoryRecursive listFilesRecursive;

View file

@ -111,10 +111,6 @@
enable = true;
package = pkgs.playerctl;
};
syncthing = {
enable = true;
# tray.enable = true;
};
borgmatic = {
enable = true;
};
@ -137,6 +133,7 @@
MOZ_ENABLE_WAYLAND = 1;
XCURSOR_SIZE = 32;
XCURSOR_THEME = "Bibata-Modern-Classic";
DISPLAY = ":0";
};
};

View file

@ -0,0 +1,2 @@
cache_input: False
editor: "auto"

View file

@ -1,2 +1,3 @@
#!/bin/sh
brillo -e -O && brillo -e -u 150000 -S 15
brillo -e -O
brillo -e -u 150000 -S 15

View file

@ -1,2 +1,2 @@
#!/bin/sh
brillo -e -O && niri msg action power-off-monitors
niri msg action power-off-monitors

View file

@ -1,2 +1,2 @@
#!/bin/sh
brillo -e -O && systemctl suspend
systemctl suspend

View file

@ -1,2 +1,2 @@
#!/bin/sh
shikanectl reload && brillo -e -u 150000 -I
brillo -e -u 15000 -I

View file

@ -0,0 +1,2 @@
#!/bin/sh
pidof hyprlock || hyprlock

View file

@ -442,6 +442,7 @@
iosevka
spleen
fira-code-symbols
blackout
powerline-fonts
noto-fonts-color-emoji
noto-fonts

View file

@ -1,8 +1,13 @@
{ pkgs, nix-config, ... }:
{ pkgs, nix-config, lib, ... }:
{
home.packages = with pkgs; [
home.packages = lib.mkMerge [
(with nix-config.packages.x86_64-linux; [
filen-desktop
])
(with pkgs; [
appimage-run
libappimage
transmission_4-gtk
@ -116,6 +121,7 @@
wineWowPackages.stagingFull
winetricks
])
];
home.pointerCursor = {

View file

@ -9,8 +9,9 @@ let
epkgs.geiser-racket
epkgs.editorconfig
epkgs.shfmt
epkgs.nixpkgs-fmt
epkgs.nixfmt
# epkgs.nixpkgs-fmt
# epkgs.nixfmt
epkgs.apheleia
epkgs.parinfer-rust-mode
epkgs.manualPackages.tree-sitter-langs
epkgs.manualPackages.treesit-grammars.with-all-grammars

View file

@ -5,8 +5,8 @@
package = inputs.hypridle.packages.x86_64-linux.default;
settings = {
general = {
lock_cmd = "brillo -e -O && pidof hyprlock || hyprlock";
before_sleep_cmd = "brillo -e -O && loginctl lock-session";
lock_cmd = "/home/emenel/.local/bin/session-lock";
before_sleep_cmd = "loginctl lock-session";
after_sleep_cmd = "/home/emenel/.local/bin/on-unlock";
ignore_dbus_inhibit = false;
ignore_systemd_inhibit = false;

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, nix-config, pkgs, ... }:
with pkgs.lib.nix-rice;
let strPalette = palette.toRGBHex pkgs.rice.colorPalette;
in {
@ -11,10 +11,10 @@ in {
prefer-no-csd = true;
spawn-at-startup = [
{ command = ["maestral_qt"]; }
{ command = ["clipse" "-listen"]; }
{ command = ["waybar"]; }
{ command = [ "systemctl" "--user" "restart" "xwayland-satellite.service" "shikane.service" ]; }
{ command = [ "${nix-config.packages.x86_64-linux.filen-desktop}/bin/filen-desktop" ]; }
# { command = ["waybar"]; }
{ command = [ "systemctl" "--user" "restart" "xwayland-satellite.service" "shikane.service" "waybar.service" ]; }
];
workspaces = {

View file

@ -59,8 +59,6 @@
nvd
ripgrep-all
silver-searcher
maestral
maestral-gui
powertop
age
kdotool
@ -68,19 +66,35 @@
caligula
# global node packages
nodePackages.typescript-language-server
nodePackages.vscode-langservers-extracted
nodePackages.prettier
# nodePackages.javascript-typescript-langserver
nodePackages.stylelint
nodePackages.svelte-language-server
nodePackages.typescript
nodePackages.js-beautify
yaml-language-server
typescript-language-server
svelte-language-server
bash-language-server
nginx-language-server
lua-language-server
lemminx
stylelint-lsp
htmx-lsp
autotools-language-server
arduino-language-server
ccls
vscode-langservers-extracted
java-language-server
nix-config.pkgs-stable.javascript-typescript-langserver
haskell-language-server
cmake-language-server
stylelint-lsp
black
jsbeautifier
typescript
prettierd
stylelint
nixd
nixdoc
nix-init
alejandra
git-annex
bfg-repo-cleaner
@ -263,6 +277,8 @@
xdg.configFile."just/justfile".source = ../../homes/emenel/dotfiles/dot_config/just/justfile;
xdg.configFile."git".source = ../../homes/emenel/dotfiles/dot_config/git;
xdg.configFile."rbw".source = ../../homes/emenel/dotfiles/dot_config/rbw;
xdg.configFile."isd_tui/config.yaml".source = ../../homes/emenel/dotfiles/dot_config/isd_tui/config.yaml;
home.file.".config/fish/functions" = {
source = ../../homes/emenel/dotfiles/dot_config/fish/functions;
recursive = true;

View file

@ -6,7 +6,7 @@ in {
programs.waybar = {
enable = true;
package = pkgs.waybar;
systemd.enable = false;
systemd.enable = true;
style = ''
* {
border: none;

View file

@ -0,0 +1,44 @@
{ lib
, fetchurl
, makeWrapper
, appimageTools
, libappindicator-gtk3
, pkgs
}:
let
pname = "filen-desktop";
version = "latest";
src = pkgs.fetchurl {
url =
"https://cdn.filen.io/@filen/desktop/release/latest/Filen_linux_x86_64.AppImage";
sha256 = "sha256-keaD5PUjkoFrFTCuap4DvmYq5X3Tjnq+njtiLgAZ9W8=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
name = "filendesktop";
# Needed for the tray to function
libPath = lib.makeLibraryPath [ libappindicator-gtk3 ];
in
appimageTools.wrapType2 rec {
inherit pname version src name;
extraInstallCommands = ''
source "${pkgs.makeWrapper}/nix-support/setup-hook"
wrapProgram $out/bin/${pname} \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}" \
--prefix LD_LIBRARY_PATH : ${libPath}
install -m 444 -D ${appimageContents}/@${name}.desktop $out/share/applications/${pname}.desktop
substituteInPlace $out/share/applications/${pname}.desktop \
--replace 'Exec=AppRun' 'Exec=filen-desktop'
cp -r ${appimageContents}/usr/share/icons $out/share
'';
meta = with lib; {
description = "Desktop client for Filen.io";
homepage = "https://filen.io/";
license = licenses.agpl3Plus;
platforms = [ "x86_64-linux" ];
};
}