refactor: simplify Nix configuration and update dependencies

Replaced custom Nerd Fonts overrides with predefined ones. Removed unused Neovim settings and plugins, and disabled Neovim for a specific user. Updated various flake dependencies to their latest versions.
This commit is contained in:
Harald Hoyer 2025-05-27 12:59:30 +02:00
parent 85a81dd054
commit bbc247aa23
17 changed files with 135 additions and 2015 deletions

2000
flake.lock generated

File diff suppressed because it is too large Load diff

View file

@ -2,23 +2,31 @@
description = "Harald Hoyer's Nix Configurations";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
# NixPkgs Unstable (nixos-unstable)
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.3.0";
crane.url = "github:ipetkov/crane/v0.20.3";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
inputs.nixpkgs.follows = "nixpkgs";
inputs.crane.follows = "crane";
inputs.rust-overlay.follows = "rust-overlay";
};
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
# macOS Support (master)
darwin.url = "github:lnl7/nix-darwin/nix-darwin-24.11";
darwin.url = "github:lnl7/nix-darwin/nix-darwin-25.05";
darwin.inputs.nixpkgs.follows = "nixpkgs";
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
@ -35,12 +43,11 @@
flake = false;
};
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.url = "github:nix-community/home-manager/release-25.05";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
neovim-flake.url = "github:NotAShelf/nvf/v0.6";
neovim-flake.url = "github:NotAShelf/nvf/";
neovim-flake.inputs.nixpkgs.follows = "nixpkgs";
neovim-flake.inputs.mnw.url = "github:Gerg-L/mnw?rev=5fe5c41975ed0af55f55dc37cd28ba906a5d015e";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";

View file

@ -10,7 +10,7 @@
cli-apps = {
bash.enable = true;
fish.enable = true;
neovim.enable = true;
neovim.enable = false;
bat.enable = true;
starship.enable = true;
home-manager.enable = true;

View file

@ -17,7 +17,7 @@
cli-apps = {
bash.enable = true;
fish.enable = true;
neovim.enable = true;
neovim.enable = false;
bat.enable = true;
starship.enable = true;
#home-manager.enable = true;

View file

@ -19,7 +19,7 @@
cli-apps = {
bash.enable = true;
fish.enable = true;
neovim.enable = true;
neovim.enable = false;
bat.enable = true;
starship.enable = true;
home-manager.enable = true;

View file

@ -27,7 +27,7 @@
cli-apps = {
bash.enable = true;
fish.enable = true;
neovim.enable = true;
neovim.enable = false;
tmux.enable = true;
bat.enable = true;
starship.enable = true;

View file

@ -10,7 +10,7 @@
cli-apps = {
bash.enable = true;
fish.enable = true;
neovim.enable = true;
neovim.enable = false;
bat.enable = true;
starship.enable = true;
home-manager.enable = true;

View file

@ -10,7 +10,7 @@
cli-apps = {
bash.enable = true;
fish.enable = true;
neovim.enable = true;
neovim.enable = false;
bat.enable = true;
starship.enable = true;
home-manager.enable = true;

View file

@ -10,7 +10,7 @@
cli-apps = {
bash.enable = true;
fish.enable = true;
neovim.enable = true;
neovim.enable = false;
bat.enable = true;
starship.enable = true;
home-manager.enable = true;

View file

@ -10,7 +10,7 @@
cli-apps = {
bash.enable = true;
fish.enable = true;
neovim.enable = true;
neovim.enable = false;
bat.enable = true;
starship.enable = true;
home-manager.enable = true;

View file

@ -1,9 +1,8 @@
{
options,
config,
pkgs,
lib,
...
{ options
, config
, pkgs
, lib
, ...
}:
with lib;
@ -25,16 +24,11 @@ in
fonts = {
packages =
with pkgs;
[
(nerdfonts.override {
fonts = [
"Hack"
"FiraCode"
"DroidSansMono"
"JetBrainsMono"
];
})
pkgs.nerd-fonts.hack
pkgs.nerd-fonts.fira-code
pkgs.nerd-fonts.droid-sans-mono
pkgs.nerd-fonts.jetbrains-mono
]
++ cfg.fonts;
};

View file

@ -20,15 +20,12 @@ in
# your settings need to go into the settings attrset
settings = {
vim = {
viAlias = false;
vimAlias = false;
debugMode = {
enable = false;
level = 20;
logFile = "/tmp/nvim.log";
};
};
vim.lsp = {
formatOnSave = true;
lspkind.enable = false;
@ -36,7 +33,6 @@ in
lspsaga.enable = false;
trouble.enable = true;
lspSignature.enable = true;
lsplines.enable = true;
};
vim.debugger = {
@ -54,7 +50,7 @@ in
nix = {
enable = true;
format.type = "nixpkgs-fmt";
format.type = "nixfmt";
};
html.enable = true;
clang = {
@ -77,10 +73,8 @@ in
};
vim.visuals = {
enable = true;
nvimWebDevicons.enable = true;
scrollBar.enable = true;
smoothScroll.enable = true;
cellularAutomaton.enable = true;
fidget-nvim.enable = true;
indentBlankline = {
@ -106,13 +100,6 @@ in
transparent = false;
};
vim.autopairs.enable = true;
vim.autocomplete = {
enable = true;
type = "nvim-cmp";
};
vim.filetree = {
nvimTree = {
enable = true;

View file

@ -1,8 +1,7 @@
{
lib,
config,
pkgs,
...
{ lib
, config
, pkgs
, ...
}:
let
inherit (lib) mkEnableOption mkIf;
@ -16,13 +15,9 @@ in
config = mkIf cfg.enable {
home.packages = with pkgs; [
(pkgs.nerdfonts.override {
fonts = [
"FiraCode"
"DroidSansMono"
"JetBrainsMono"
];
})
pkgs.nerd-fonts.fira-code
pkgs.nerd-fonts.droid-sans-mono
pkgs.nerd-fonts.jetbrains-mono
];
programs.starship = {
enable = true;

View file

@ -1,9 +1,8 @@
{
options,
config,
lib,
pkgs,
...
{ options
, config
, lib
, pkgs
, ...
}:
with lib;
@ -20,13 +19,9 @@ in
home.sessionPath = [ "$HOME/.local/share/JetBrains/Toolbox/scripts" ];
home.packages = with pkgs; [
jetbrains-toolbox
(pkgs.nerdfonts.override {
fonts = [
"FiraCode"
"DroidSansMono"
"JetBrainsMono"
];
})
nerd-fonts.fira-code
nerd-fonts.droid-sans-mono
nerd-fonts.jetbrains-mono
];
};
}

View file

@ -1,9 +1,8 @@
{
options,
config,
lib,
pkgs,
...
{ options
, config
, lib
, pkgs
, ...
}:
with lib;
@ -164,7 +163,6 @@ in
tmux
vim
wl-clipboard
yubikey-manager-qt
yubikey-personalization
zellij
]
@ -184,13 +182,9 @@ in
noto-fonts-emoji
liberation_ttf
freefont_ttf
(nerdfonts.override {
fonts = [
"FiraCode"
"DroidSansMono"
"JetBrainsMono"
];
})
nerd-fonts.fira-code
nerd-fonts.droid-sans-mono
nerd-fonts.jetbrains-mono
];
fontconfig = {

View file

@ -1,13 +1,9 @@
{ channels, ... }:
final: prev: {
inherit (channels.unstable)
jetbrains-toolbox
ollama
open-webui
aider-chat
vscode
goose-cli
nodejs_20
# open-webui
# vscode
# nodejs_20
;
# goose-cli = channels.unstable.callPackage ./goose.nix { };

View file

@ -35,7 +35,7 @@ with lib.metacfg;
};
services.xrdp.enable = true;
services.xrdp.defaultWindowManager = "${pkgs.gnome.gnome-session}/bin/gnome-session";
services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session";
services.xrdp.openFirewall = true;
# Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!