mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
chore: fix lint
This commit is contained in:
parent
94194bf902
commit
b02ef14ef1
17 changed files with 46 additions and 48 deletions
|
|
@ -1,5 +1,4 @@
|
|||
{pkgsUnstable, ...}:
|
||||
let
|
||||
{pkgsUnstable, ...}: let
|
||||
pycharmPkg = pkgsUnstable.jetbrains.pycharm-professional.override {
|
||||
# -Dide.browser.jcef.enabled causes crashes on wayland
|
||||
vmopts = ''
|
||||
|
|
@ -11,7 +10,6 @@ let
|
|||
# pycharmWithPlugins = pkgsUnstable.jetbrains.plugins.addPlugins pycharmPkg [
|
||||
# "github-copilot"
|
||||
# ];
|
||||
|
||||
in {
|
||||
environment.systemPackages = [
|
||||
pycharmPkg
|
||||
|
|
|
|||
|
|
@ -17,20 +17,26 @@
|
|||
};
|
||||
};
|
||||
|
||||
mkMcpStdio = {name, command, env ? {}}: let
|
||||
mkMcpStdio = {
|
||||
name,
|
||||
command,
|
||||
env ? {},
|
||||
}: let
|
||||
# If any of the envs values starts with ${input:...}, then we should create a new password input
|
||||
envValues = lib.attrValues env;
|
||||
inputEnvs = lib.filter (value: lib.hasPrefix "\${input:" value) envValues;
|
||||
# Get the ids of the inputs
|
||||
# Get the ids of the inputs
|
||||
inputEnvsIds = lib.map (value: lib.substring 8 (lib.stringLength value - 9) value) inputEnvs;
|
||||
in {
|
||||
mcp = {
|
||||
inputs = lib.map (value: {
|
||||
"type" = "promptString";
|
||||
"id" = value; # Assigning the name as the id
|
||||
"description" = "Enter the password for ${value}";
|
||||
"password" = true;
|
||||
}) inputEnvsIds;
|
||||
inputs =
|
||||
lib.map (value: {
|
||||
"type" = "promptString";
|
||||
"id" = value; # Assigning the name as the id
|
||||
"description" = "Enter the password for ${value}";
|
||||
"password" = true;
|
||||
})
|
||||
inputEnvsIds;
|
||||
servers."${name}" = {
|
||||
"type" = "stdio";
|
||||
"command" = builtins.elemAt command 0;
|
||||
|
|
@ -40,7 +46,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
# I can't get nix-vscode-extensions to respect allowUnfree, so this is a workaround
|
||||
allowUnfree = ext: ext.override {meta.license = [];};
|
||||
in {
|
||||
|
|
@ -108,8 +113,14 @@ in {
|
|||
}
|
||||
(mkFormatter "esbenp.prettier-vscode" ["json" "jsonc" "markdown" "css" "scss" "typescript" "typescriptreact" "html" "yaml"])
|
||||
(mkFormatter "charliermarsh.ruff" ["python"])
|
||||
(mkMcpStdio {name = "linear"; command = ["npx" "mcp-remote" "https://mcp.linear.app/sse"];})
|
||||
(mkMcpStdio {name = "sentry"; command = ["npx" "mcp-remote" "https://mcp.sentry.dev/sse"];})
|
||||
(mkMcpStdio {
|
||||
name = "linear";
|
||||
command = ["npx" "mcp-remote" "https://mcp.linear.app/sse"];
|
||||
})
|
||||
(mkMcpStdio {
|
||||
name = "sentry";
|
||||
command = ["npx" "mcp-remote" "https://mcp.sentry.dev/sse"];
|
||||
})
|
||||
];
|
||||
extensions = with vscodePkgs; [
|
||||
# Remote
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
color: #DAD8CE;
|
||||
border-bottom: 2px solid #CF6A4C;
|
||||
}
|
||||
|
||||
|
||||
#workspaces button.focused {
|
||||
background: #CF6A4C;
|
||||
color: #1C1B1A;
|
||||
|
|
@ -96,8 +96,6 @@
|
|||
|
||||
programs.niri = {
|
||||
enable = true;
|
||||
# package = (pkgsUnstable.niri.override { inherit (mesa-nixpkgs) libgbm; });
|
||||
# package = pkgsUnstable.niri;
|
||||
package = inputs.niri.packages."${pkgs.system}".niri-unstable;
|
||||
};
|
||||
fireproof.home-manager.programs.niri.settings = {
|
||||
|
|
@ -149,19 +147,19 @@
|
|||
|
||||
workspaces = {
|
||||
"01" = {
|
||||
open-on-output = "DP-3";
|
||||
open-on-output = "DP-5";
|
||||
};
|
||||
"02" = {
|
||||
open-on-output = "DP-3";
|
||||
open-on-output = "DP-5";
|
||||
};
|
||||
"03" = {
|
||||
open-on-output = "DP-3";
|
||||
open-on-output = "DP-5";
|
||||
};
|
||||
"04" = {
|
||||
open-on-output = "DP-3";
|
||||
open-on-output = "DP-5";
|
||||
};
|
||||
"05" = {
|
||||
open-on-output = "DP-3";
|
||||
open-on-output = "DP-5";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,8 @@
|
|||
{pkgs, pkgsUnstable, ...}: {
|
||||
{
|
||||
pkgs,
|
||||
pkgsUnstable,
|
||||
...
|
||||
}: {
|
||||
environment.systemPackages = [
|
||||
pkgs.nodejs
|
||||
pkgsUnstable.pnpm
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
set -xg PLAYWRIGHT_BROWSERS_PATH ${pkgsUnstable.playwright-driver.browsers}
|
||||
set -xg PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS true
|
||||
'';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue