This commit is contained in:
tristan 2024-10-24 10:45:14 +01:00
parent ca39b169c2
commit 825381f98b
7 changed files with 31 additions and 23 deletions

View file

@ -60,7 +60,7 @@ in {
boot.plymouth.enable = true; boot.plymouth.enable = true;
boot.initrd.verbose = false; boot.initrd.verbose = false;
boot.consoleLogLevel = 1; boot.consoleLogLevel = 1;
boot.kernelParams = [ "quiet" "udev.log_level=3" ]; boot.kernelParams = ["quiet" "udev.log_level=3"];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's # (the default) this is the recommended approach. When using systemd-networkd it's
@ -110,5 +110,4 @@ in {
}; };
} }
]; ];
} }

View file

@ -1,7 +1,4 @@
{ {pkgs, ...}: {
pkgs,
...
}: {
imports = [ imports = [
./pcmanfm.nix ./pcmanfm.nix
./mpv.nix ./mpv.nix
@ -34,7 +31,6 @@
bitwarden bitwarden
]; ];
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = {
"application/pdf" = "sioyek.desktop"; "application/pdf" = "sioyek.desktop";
}; };

View file

@ -1,9 +1,14 @@
{config, pkgs, lib, ...}: { {
config,
pkgs,
lib,
...
}: {
programs.nixvim = programs.nixvim =
{ {
enable = true; enable = true;
} }
// ( import ../../../lib/nixvim.nix {inherit pkgs;} ); // (import ../../../lib/nixvim.nix {inherit pkgs;});
programs.vscode = { programs.vscode = {
extensions = [pkgs.vscode-extensions.asvetliakov.vscode-neovim]; extensions = [pkgs.vscode-extensions.asvetliakov.vscode-neovim];

View file

@ -41,7 +41,6 @@ in {
remoteWorkspaceFolder=$(echo $res | ${jq} -r '.remoteWorkspaceFolder') remoteWorkspaceFolder=$(echo $res | ${jq} -r '.remoteWorkspaceFolder')
docker exec -it --workdir=$remoteWorkspaceFolder $containerId bash docker exec -it --workdir=$remoteWorkspaceFolder $containerId bash
'')) ''))
]; ];
home.sessionVariables = { home.sessionVariables = {

View file

@ -202,7 +202,7 @@
cmp = { cmp = {
enable = true; enable = true;
settings = { settings = {
mapping = { mapping = {
"<C-Space>" = "cmp.mapping.complete()"; "<C-Space>" = "cmp.mapping.complete()";
"<C-u>" = "cmp.mapping.scroll_docs(4)"; "<C-u>" = "cmp.mapping.scroll_docs(4)";
@ -213,9 +213,9 @@
"<C-n>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; "<C-n>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
}; };
sources = [ sources = [
{ name = "nvim_lsp"; } {name = "nvim_lsp";}
{ name = "path"; } {name = "path";}
{ name = "buffer"; } {name = "buffer";}
]; ];
}; };
}; };
@ -256,9 +256,18 @@
enable = true; enable = true;
lookahead = true; lookahead = true;
keymaps = { keymaps = {
"af" = { query = "@function.outer"; desc = "Function Outer"; }; "af" = {
"ac" = { query = "@comment.outer"; desc = "Comment Outer"; }; query = "@function.outer";
"if" = { query = "@function.inner"; desc = "Function Inner"; }; desc = "Function Outer";
};
"ac" = {
query = "@comment.outer";
desc = "Comment Outer";
};
"if" = {
query = "@function.inner";
desc = "Function Inner";
};
}; };
}; };
}; };
@ -267,5 +276,4 @@
ts-autotag.enable = true; ts-autotag.enable = true;
guess-indent.enable = true; guess-indent.enable = true;
}; };
} }

View file

@ -17,7 +17,6 @@ in {
"openssl-1.1.1w" # required for mongodb "openssl-1.1.1w" # required for mongodb
]; ];
networking = { networking = {
networkmanager = { networkmanager = {
plugins = [pkgs.networkmanager-openvpn]; plugins = [pkgs.networkmanager-openvpn];

View file

@ -1,6 +1,9 @@
{stdenv, pkgs, ...}: {
let stdenv,
version = "6.0.14"; pkgs,
...
}: let
version = "6.0.14";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "mongodb"; name = "mongodb";
@ -29,4 +32,3 @@ in
runHook postInstall runHook postInstall
''; '';
} }