Compare commits

...

4 commits

9 changed files with 52 additions and 29 deletions

21
flake.lock generated
View file

@ -739,6 +739,26 @@
"type": "github" "type": "github"
} }
}, },
"quickshell": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1745709547,
"narHash": "sha256-xfP/NVZomh+L2ka0omPkhA9mB+4PJXGPMCv/bh+G4YA=",
"ref": "refs/heads/master",
"rev": "67524f9d8e4ac5e09ea4427e11f2284e6a6f93fe",
"revCount": 506,
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
},
"original": {
"type": "git",
"url": "https://git.outfoxxed.me/outfoxxed/quickshell"
}
},
"root": { "root": {
"inputs": { "inputs": {
"helix": "helix", "helix": "helix",
@ -746,6 +766,7 @@
"impermanence": "impermanence", "impermanence": "impermanence",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"quickshell": "quickshell",
"schizofox": "schizofox", "schizofox": "schizofox",
"systems": "systems_3" "systems": "systems_3"
} }

View file

@ -61,5 +61,12 @@
}; };
helix.url = "github:helix-editor/helix"; helix.url = "github:helix-editor/helix";
quickshell = {
url = "git+https://git.outfoxxed.me/outfoxxed/quickshell";
# THIS IS IMPORTANT
# Mismatched system dependencies will lead to crashes and other issues.
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
} }

View file

@ -7,7 +7,6 @@ in {
anki anki
asciinema asciinema
beets beets
brave
bubblewrap bubblewrap
cachix cachix
calc calc

View file

@ -118,7 +118,7 @@
foot-wrapped = pkgs.symlinkJoin { foot-wrapped = pkgs.symlinkJoin {
name = "foot-wrapped"; name = "foot-wrapped";
paths = [pkgs.foot]; paths = [pkgs.foot];
buildInputs = [pkgs.makeWrapper]; nativeBuildInputs = [pkgs.makeWrapper];
postBuild = '' postBuild = ''
wrapProgram $out/bin/foot --add-flags "--config=${foot-config} --working-directory=/home/${username}" wrapProgram $out/bin/foot --add-flags "--config=${foot-config} --working-directory=/home/${username}"
''; '';

View file

@ -27,7 +27,7 @@
btop-wrapped = pkgs.symlinkJoin { btop-wrapped = pkgs.symlinkJoin {
name = "btop-wrapped"; name = "btop-wrapped";
paths = [pkgs.btop]; paths = [pkgs.btop];
buildInputs = [pkgs.makeWrapper]; nativeBuildInputs = [pkgs.makeWrapper];
postBuild = '' postBuild = ''
wrapProgram $out/bin/btop --set XDG_CONFIG_HOME "${btop-settings}" wrapProgram $out/bin/btop --set XDG_CONFIG_HOME "${btop-settings}"
''; '';

View file

@ -2,7 +2,7 @@
mako-wrapped = pkgs.symlinkJoin { mako-wrapped = pkgs.symlinkJoin {
name = "mako-wrapped"; name = "mako-wrapped";
paths = [pkgs.mako]; paths = [pkgs.mako];
buildInputs = [pkgs.makeWrapper]; nativeBuildInputs = [pkgs.makeWrapper];
postBuild = '' postBuild = ''
wrapProgram $out/bin/mako --add-flags "\ wrapProgram $out/bin/mako --add-flags "\
--font 'Lexend 11' \ --font 'Lexend 11' \

View file

@ -5,22 +5,16 @@
pkgs, pkgs,
... ...
}: let }: let
# inherit (inputs) quickshell; inherit (inputs) quickshell;
# inherit (lib.generators) toKeyValue;
in { in {
# environment.systemPackages = [ environment.systemPackages = with pkgs; [
# qt6.qtimageformats # amog quickshell.packages.x86_64-linux.default
# qt6.qt5compat # shader fx qt6.qtimageformats
# (quickshell.packages.x86_64-linux.default.override { qt6.qt5compat
# withJemalloc = true; qt6.qtmultimedia
# withQtSvg = true; qt6.qtdeclarative
# withX11 = true; ];
# withPipewire = true;
# withPam = true; # taken from outfoxxed.
# withHyprland = true; qt.enable = true;
# })
# pamtester # lockscreen
# grim
# imagemagick # screenshot
# ];
} }

View file

@ -26,6 +26,7 @@
shellcheck, shellcheck,
shfmt, shfmt,
superhtml, superhtml,
kdePackages,
taplo, taplo,
tinymist, tinymist,
typescript-language-server, typescript-language-server,
@ -137,7 +138,7 @@
} }
{ {
name = "nix"; name = "nix";
language-servers = ["nixd" "nil"]; language-servers = ["nil"];
} }
{ {
name = "qml"; name = "qml";
@ -241,12 +242,8 @@
nil = { nil = {
command = getExe nil; command = getExe nil;
};
nixd = {
command = getExe nixd;
# alejandro # alejandro
config.nixd.formatting.command = ["${getExe alejandra}" "-q"]; config.nil.formatting.command = ["${getExe alejandra}" "-q"];
}; };
typescript-language-server = { typescript-language-server = {
@ -266,6 +263,11 @@
command = lib.getExe ruff; command = lib.getExe ruff;
args = ["server"]; args = ["server"];
}; };
qmlls = {
command = lib.getExe' kdePackages.qtdeclarative "qmlls";
args = ["-E"];
};
basedpyright.command = "${basedpyright}/bin/basedpyright-langserver"; basedpyright.command = "${basedpyright}/bin/basedpyright-langserver";
vscode-css-language-server = { vscode-css-language-server = {
@ -309,7 +311,7 @@
# typst lsp # typst lsp
vscode-langservers-extracted vscode-langservers-extracted
]; ];
buildInputs = [makeWrapper]; nativeBuildInputs = [makeWrapper];
postBuild = '' postBuild = ''
mkdir -p $out/config/helix mkdir -p $out/config/helix
cp "${toml.generate "config.toml" helix-config}" $out/config/helix/config.toml cp "${toml.generate "config.toml" helix-config}" $out/config/helix/config.toml

View file

@ -25,7 +25,7 @@ in
(pkgs.symlinkJoin { (pkgs.symlinkJoin {
name = "fish"; name = "fish";
paths = [custom-fish] ++ packages; paths = [custom-fish] ++ packages;
buildInputs = [pkgs.makeWrapper]; nativeBuildInputs = [pkgs.makeWrapper];
postBuild = '' postBuild = ''
wrapProgram $out/bin/fish --set STARSHIP_CONFIG "${toml.generate "starship.toml" starship-config}" \ wrapProgram $out/bin/fish --set STARSHIP_CONFIG "${toml.generate "starship.toml" starship-config}" \
''; '';