update tooling

This commit is contained in:
Grimmauld 2024-05-11 11:37:59 +02:00
parent 5a48afaccc
commit 95d2252b1e
Signed by: Grimmauld
GPG key ID: C2946668769F91FB
7 changed files with 44 additions and 26 deletions

View file

@ -67,9 +67,7 @@ in
"sd_mod" "sd_mod"
]; ];
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;
extraModulePackages = [ extraModulePackages = [ config.boot.kernelPackages.ddcci-driver ];
config.boot.kernelPackages.ddcci-driver
];
kernelModules = [ kernelModules = [
"ddcci_backlight" "ddcci_backlight"
"i2c-dev" "i2c-dev"

View file

@ -106,10 +106,12 @@ in
services.dbus.implementation = "broker"; services.dbus.implementation = "broker";
grimmShared.tooling.nvim.plugins = with pkgs.vimPlugins; [ grimmShared.tooling.nvim = {
vim-scala plugins = with pkgs.vimPlugins; [
fugitive fugitive
]; nvim-lspconfig
];
};
boot.tmp.cleanOnBoot = true; boot.tmp.cleanOnBoot = true;
zramSwap.enable = true; zramSwap.enable = true;

View file

@ -27,7 +27,9 @@ in
environment.sessionVariables = lib.mkIf pkgs.config.allowUnfree { NIXPKGS_ALLOW_UNFREE = "1"; }; environment.sessionVariables = lib.mkIf pkgs.config.allowUnfree { NIXPKGS_ALLOW_UNFREE = "1"; };
grimmShared.tooling.nvim.plugins = with pkgs.vimPlugins; [ vim-nix ]; grimmShared.tooling.nvim.extraLuaRC = lib.singleton ''
require'lspconfig'.nixd.setup{}
'';
nix.settings = { nix.settings = {
experimental-features = [ experimental-features = [

View file

@ -13,7 +13,18 @@ in
lib.mkIf (enable && tooling.enable) { lib.mkIf (enable && tooling.enable) {
environment.systemPackages = environment.systemPackages =
with pkgs; with pkgs;
[ python3 ] ++ lib.optionals cfg.graphical [ jetbrains.pycharm-community ]; [
(python3.withPackages (
python-pkgs: with python-pkgs; [
requests
matplotlib
numpy
scipy
pygobject3
]
))
]
++ lib.optionals cfg.graphical [ jetbrains.pycharm-community ];
programs.xonsh = { programs.xonsh = {
enable = true; enable = true;
@ -22,7 +33,7 @@ in
name: value: ''aliases["${name}"] = "${value}"'' name: value: ''aliases["${name}"] = "${value}"''
) config.environment.shellAliases ) config.environment.shellAliases
); );
package = pkgs.xonsh.override { package = pkgs.xonsh.wrapper.override {
extraPackages = extraPackages =
ps: with ps; [ ps: with ps; [
requests requests

View file

@ -28,11 +28,11 @@ let
}; };
nixpkgs_patches = [ nixpkgs_patches = [
# { {
# # tlpui # xonsh update
# url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/305278.patch"; url = "https://patch-diff.githubusercontent.com/raw/NixOS/nixpkgs/pull/305316.patch";
# hash = "sha256-vmzj7gF8jwHdqxN+dQiJ4MRxKpHvBTzbrUvFgt1DK8I="; hash = "sha256-oUjCyA18RvIChTUwPqkO4+v2skTqLBYf2DMd+ADiGE8=";
# } }
]; ];
# enable ccache for lix if ccache is enabled # enable ccache for lix if ccache is enabled

View file

@ -1,8 +1,9 @@
{config, ...}: let { config, ... }:
let
inherit (config.serverConfig) ports vhosts; inherit (config.serverConfig) ports vhosts;
inherit (config.networking) domain; inherit (config.networking) domain;
in { in
{
services.authentik = { services.authentik = {
enable = true; enable = true;
@ -30,6 +31,6 @@ in {
}; };
disable_startup_analytics = true; disable_startup_analytics = true;
avatars = "initials"; avatars = "initials";
}; };
}; };
} }

View file

@ -51,15 +51,19 @@ in
type = types.attrsOf ( type = types.attrsOf (
types.submodule ( types.submodule (
{ config, ... }: { config, ... }:
let let
type_lookup = { type_lookup = {
proxy = { locations."/".proxyPass = "http://127.0.0.1:${builtins.toString config.port}"; }; proxy = {
redirect = { locations."/".return = "307 https://${domain}"; }; locations."/".proxyPass = "http://127.0.0.1:${builtins.toString config.port}";
custom = {}; };
none = {}; redirect = {
}; locations."/".return = "307 https://${domain}";
};
custom = { };
none = { };
};
in in
{ {
options = { options = {
port = mkOption { port = mkOption {
type = types.int; type = types.int;