Removed formatters and self formmated some stuff, also nixd is broken

idk why will try to fix it later
This commit is contained in:
2024-12-26 19:12:44 +02:00
parent 8bb6abc6d4
commit 56690260ef
4 changed files with 26 additions and 38 deletions

View File

@@ -137,21 +137,21 @@ return {
},
},
}, -- zig
nixd = {
mason = false,
cmd = { 'nixd' },
settings = {
nixd = {
nixpkgs = { expr = 'import <nixpkgs> { }' },
options = {
nixos = {
expr = '(builtins.getFlake "/home/kyren/dotfiles/flake.nix").nixosConfigurations.laptop-nixos.options',
},
home_manager = {
expr = '(builtins.getFlake "/home/kyren/dotfiles/flake.nix").homeConfigurations.laptop-nixos.options',
},
},
},
},
},
-- nixd = {
-- mason = false,
-- cmd = { 'nixd' },
-- settings = {
-- nixd = {
-- nixpkgs = { expr = 'import <nixpkgs> { }' },
-- -- options = {
-- -- nixos = {
-- -- expr = '(builtins.getFlake \\"/home/kyren/dotfiles/flake.nix").nixosConfigurations.laptop-nixos.options',
-- -- },
-- -- home_manager = {
-- -- expr = '(builtins.getFlake \\"/home/kyren/dotfiles/flake.nix").homeConfigurations.laptop-nixos.options',
-- -- },
-- -- },
-- },
-- },
-- },
}

View File

@@ -24,8 +24,6 @@ return {
['css'] = { 'prettierd', 'prettier', stop_after_first = true },
['javascript'] = { 'prettierd', 'prettier', stop_after_first = true },
['typescript'] = { 'prettierd', 'prettier', stop_after_first = true },
-- ['nix'] = { 'nixfmt' },
-- ['nix'] = { 'alejandra' },
},
format_on_save = function(bufnr)
-- Disable with a global or buffer local variable

View File

@@ -1,14 +1,8 @@
# Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, inputs, ... }:
{
imports =
[
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
];
{ config, pkgs, inputs, ... }: {
imports = [
./hardware-configuration.nix
inputs.home-manager.nixosModules.default
];
# Bootloader.
boot.loader.systemd-boot.enable = true;

View File

@@ -1,6 +1,4 @@
{ config, pkgs, inputs, ... }:
{
{ config, pkgs, inputs, ... }: {
home.username = "kyren";
home.homeDirectory = "/home/kyren";
@@ -70,7 +68,7 @@
tokei
graphviz
kdePackages.kmines # Minesweeper for fun lol
kdePackages.kpat # Solitaire
kdePackages.kpat # Solitaire
# btw missing the card/brick thing with weird symbols, not sure what that game was called
gimp
kdePackages.korganizer
@@ -78,12 +76,10 @@
gitleaks
rar
gomodifytags
nixfmt-rfc-style
alejandra
nixd
];
nix.nixPath = ["nixpkgs=${inputs.nixpkgs}"];
# For nixd LSP to recognize what nixpkgs version I use
nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.