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
frajul.typst-languagetool
ltex-ls-plus
]
++ lib.optional config.is-nixos emacs;

View File

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

View File

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

View File

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

View File

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