Compare commits

...

3 Commits

Author SHA1 Message Date
d84bfd4628 use network manager dns instead of resolved
Some checks failed
Update Nix Flake / update-flake (push) Failing after 12s
2025-12-24 06:48:22 +01:00
fb6ac408e1 format code 2025-12-24 06:47:56 +01:00
f01b079931 emacs: add ltex-ls-plus language server 2025-12-24 06:47:43 +01:00
5 changed files with 16 additions and 21 deletions

View File

@@ -68,6 +68,7 @@ in {
emacs-all-the-icons-fonts emacs-all-the-icons-fonts
frajul.typst-languagetool frajul.typst-languagetool
ltex-ls-plus
] ]
++ lib.optional config.is-nixos emacs; ++ lib.optional config.is-nixos emacs;

View File

@@ -3,9 +3,8 @@
pkgs, pkgs,
inputs, inputs,
... ...
}: }: {
{ imports = [inputs.nixvim.homeModules.nixvim];
imports = [ inputs.nixvim.homeModules.nixvim ];
home.sessionVariables = { home.sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
@@ -93,9 +92,9 @@
conform-nvim = { conform-nvim = {
enable = true; enable = true;
settings.formatters_by_ft = with pkgs; { settings.formatters_by_ft = with pkgs; {
lua = [ "stylua" ]; lua = ["stylua"];
python = [ "black" ]; python = ["black"];
nix = [ "nixfmt" ]; nix = ["nixfmt"];
}; };
# extraOptions = { # extraOptions = {
# default_format_opts.lsp_format = "fallback"; # default_format_opts.lsp_format = "fallback";
@@ -107,9 +106,9 @@
enable = true; enable = true;
autoEnableSources = true; autoEnableSources = true;
settings.sources = [ settings.sources = [
{ name = "nvim_lsp"; } {name = "nvim_lsp";}
{ name = "path"; } {name = "path";}
{ name = "buffer"; } {name = "buffer";}
]; ];
settings.mapping = { settings.mapping = {
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})"; "<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";

View File

@@ -30,12 +30,9 @@
networkmanager-openconnect networkmanager-openconnect
]; ];
}; };
services.resolved.enable = true; services.resolved.enable = false;
# MDNS Taken by avahi # MDNS Taken by avahi
services.resolved.extraConfig = '' # networking.networkmanager.dns = "none";
MulticastDNS=false
'';
networking.nameservers = lib.mkDefault [ networking.nameservers = lib.mkDefault [
"1.1.1.1" "1.1.1.1"
"8.8.8.8" "8.8.8.8"

View File

@@ -2,8 +2,7 @@
lib, lib,
outputs, outputs,
... ...
}: }: {
{
# Apply overlays # Apply overlays
nixpkgs = { nixpkgs = {
# TODO: apply this to hm and nixos without duplicate code # TODO: apply this to hm and nixos without duplicate code
@@ -36,7 +35,7 @@
}; };
nix.optimise = { nix.optimise = {
automatic = true; automatic = true;
dates = [ "weekly" ]; # Optional; allows customizing optimisation schedule dates = ["weekly"]; # Optional; allows customizing optimisation schedule
}; };
programs.nix-ld.enable = true; programs.nix-ld.enable = true;

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }: {pkgs, ...}: {
{
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
@@ -34,7 +33,7 @@
# Not using the drivers leads to way better results # Not using the drivers leads to way better results
# services.xserver.videoDrivers = [ "nvidia" ]; # services.xserver.videoDrivers = [ "nvidia" ];
networking.networkmanager.insertNameservers = [ "192.168.3.252" ]; networking.networkmanager.insertNameservers = ["192.168.3.252"];
programs.kdeconnect.enable = true; programs.kdeconnect.enable = true;
@@ -44,7 +43,7 @@
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
services.printing.browsing = true; services.printing.browsing = true;
services.printing.drivers = with pkgs; [ gutenprint ]; services.printing.drivers = with pkgs; [gutenprint];
services.libinput.enable = true; services.libinput.enable = true;
} }