fmt: reformat
This commit is contained in:
parent
9dbe1605e0
commit
a057d9bcc7
@ -1 +0,0 @@
|
||||
indentation = "Tabs"
|
14
flake.nix
14
flake.nix
@ -54,7 +54,8 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
outputs =
|
||||
{
|
||||
self,
|
||||
systems,
|
||||
nixpkgs,
|
||||
@ -62,7 +63,8 @@
|
||||
spaceport-nvim,
|
||||
nomodoro,
|
||||
...
|
||||
} @ inputs: let
|
||||
}@inputs:
|
||||
let
|
||||
customPackageOverlay =
|
||||
(import ./overlays/default.nix {
|
||||
inherit cmp-vimtex;
|
||||
@ -70,14 +72,14 @@
|
||||
inherit inputs;
|
||||
inherit nomodoro;
|
||||
parrot-nvim = inputs.parrot-nvim;
|
||||
})
|
||||
.overlay;
|
||||
}).overlay;
|
||||
# Small tool to iterate over each systems
|
||||
eachSystem = f: nixpkgs.lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
|
||||
|
||||
# Eval the treefmt modules from ./treefmt.nix
|
||||
treefmtEval = eachSystem (pkgs: inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
|
||||
in {
|
||||
in
|
||||
{
|
||||
nixosConfigurations = (
|
||||
import ./hosts/hosts.nix {
|
||||
inherit inputs;
|
||||
@ -98,6 +100,8 @@
|
||||
kubectl
|
||||
jq
|
||||
stern
|
||||
nixfmt-rfc-style
|
||||
alejandra
|
||||
];
|
||||
};
|
||||
});
|
||||
|
@ -1,4 +1,7 @@
|
||||
{pkgs ? import <nixpkgs> {}}: let
|
||||
{
|
||||
pkgs ? import <nixpkgs> { },
|
||||
}:
|
||||
let
|
||||
custom-fonts = pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "input";
|
||||
version = "1.0.2";
|
||||
@ -16,6 +19,7 @@
|
||||
description = "Input DJR font";
|
||||
};
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
inherit custom-fonts;
|
||||
}
|
||||
|
@ -4,7 +4,8 @@
|
||||
specialArgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
pkgs-unstable = specialArgs.nixpkgs-unstable;
|
||||
in
|
||||
# default_python = pkgs-unstable.python313;
|
||||
@ -68,9 +69,11 @@ in
|
||||
"$HOME/.local/bin"
|
||||
];
|
||||
|
||||
home.sessionVariables = let
|
||||
home.sessionVariables =
|
||||
let
|
||||
win_home_dir = specialArgs.win_home_dir or "/mnt/c/Users/Deepak";
|
||||
in {
|
||||
in
|
||||
{
|
||||
# Namespace our own nixconf variables with DPK
|
||||
|
||||
# Set a common directory for Windows for WSL installs
|
||||
|
@ -1,4 +1,5 @@
|
||||
{config}: ''
|
||||
{ config }:
|
||||
''
|
||||
inoremap jj <Esc>
|
||||
inoremap kk <Esc>
|
||||
|
||||
|
@ -6,9 +6,11 @@
|
||||
modulesPath,
|
||||
hostname,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
custom-fonts = import ../fonts { inherit pkgs; };
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
"${modulesPath}/profiles/minimal.nix"
|
||||
];
|
||||
|
@ -2,17 +2,20 @@
|
||||
inputs,
|
||||
customPackageOverlay,
|
||||
# ...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
linuxSystem = "x86_64-linux";
|
||||
lib = inputs.nixpkgs.lib;
|
||||
nixpkgs-unstable = import inputs.nixpkgs {
|
||||
system = linuxSystem;
|
||||
config.allowUnfreePredicate = pkg:
|
||||
config.allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
"claude-code"
|
||||
];
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
"maxos" = inputs.nixpkgs-24-11.lib.nixosSystem {
|
||||
system = linuxSystem;
|
||||
specialArgs = {
|
||||
|
@ -5,9 +5,11 @@
|
||||
pkgs,
|
||||
customPackageOverlay,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
custom-fonts = import ../../fonts { inherit pkgs; };
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
|
@ -6,7 +6,8 @@
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}: {
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
@ -30,7 +31,8 @@
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."nixosroot".device = "/dev/disk/by-uuid/3b0d4c02-d9e5-44ab-8461-30797547ed70";
|
||||
boot.initrd.luks.devices."nixosroot".device =
|
||||
"/dev/disk/by-uuid/3b0d4c02-d9e5-44ab-8461-30797547ed70";
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-uuid/67E3-17ED";
|
||||
|
@ -3,9 +3,11 @@
|
||||
customPackageOverlay,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
custom-fonts = import ../../fonts { inherit pkgs; };
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
"${modulesPath}/profiles/minimal.nix"
|
||||
];
|
||||
|
@ -3,9 +3,11 @@
|
||||
customPackageOverlay,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
custom-fonts = import ../../fonts { inherit pkgs; };
|
||||
in {
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
"${modulesPath}/profiles/minimal.nix"
|
||||
];
|
||||
|
@ -4,8 +4,11 @@
|
||||
nomodoro,
|
||||
parrot-nvim,
|
||||
inputs,
|
||||
}: let
|
||||
pluginoverlay = _final: prev: let
|
||||
}:
|
||||
let
|
||||
pluginoverlay =
|
||||
_final: prev:
|
||||
let
|
||||
cmpVimtexPlugin = prev.vimUtils.buildVimPlugin {
|
||||
src = cmp-vimtex;
|
||||
name = "cmp-vimtex";
|
||||
@ -33,7 +36,8 @@
|
||||
name = "zsh-completions";
|
||||
src = inputs.zsh-completions;
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
customVimPlugins = {
|
||||
cmp-vimtex = cmpVimtexPlugin;
|
||||
spaceport-nvim = spaceportNvimPlugin;
|
||||
@ -46,7 +50,8 @@
|
||||
zsh-completions = zshCompletionPlugin;
|
||||
};
|
||||
};
|
||||
in {
|
||||
in
|
||||
{
|
||||
overlay = inputs.nixpkgs.lib.composeManyExtensions [
|
||||
pluginoverlay
|
||||
inputs.claude-mcp-bundle.overlays.default
|
||||
|
17
treefmt.nix
17
treefmt.nix
@ -1,5 +1,6 @@
|
||||
# treefmt.nix
|
||||
{...}: {
|
||||
{ ... }:
|
||||
{
|
||||
projectRootFile = "treefmt.nix";
|
||||
settings.global.excludes = [
|
||||
"*.toml"
|
||||
@ -14,23 +15,17 @@
|
||||
|
||||
programs.mdsh.enable = true;
|
||||
|
||||
# programs.nixfmt.enable = true;
|
||||
# settings.formatter.nixfmt.indent = " ";
|
||||
programs.alejandra.enable = true;
|
||||
settings.formatter.alejandra.indentation = "Tabs";
|
||||
programs.nixfmt.enable = true;
|
||||
|
||||
programs.shellcheck.enable = true;
|
||||
|
||||
programs.shfmt.enable = true;
|
||||
settings.formatter.shfmt.indent = "\t";
|
||||
settings.formatter.shfmt.indent_size = 0;
|
||||
|
||||
programs.yamlfmt.enable = true;
|
||||
settings.formatter.yamlfmt.indent = 1; # yamlfmt uses number of tab characters for indent
|
||||
settings.formatter.yamlfmt.use_tabs = true;
|
||||
|
||||
programs.just.enable = true; # just format uses tabs by default if first line has tabs
|
||||
programs.just.enable = true;
|
||||
|
||||
programs.stylua.enable = true; # Already configured for tabs in stylua.toml
|
||||
programs.stylua.enable = true;
|
||||
|
||||
# Formatter specific settings
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user