Merge branch 'main' of paperclover.dev:nix/config
This commit is contained in:
commit
fa1fc5801a
9 changed files with 46 additions and 28 deletions
|
@ -69,7 +69,7 @@
|
|||
|
||||
# custom packages
|
||||
(_: pkgs: {
|
||||
autofmt = pkgs.callPackage ./packages/autofmt.nix { };
|
||||
autofmt = pkgs.callPackage ./packages/autofmt { };
|
||||
})
|
||||
];
|
||||
|
||||
|
|
|
@ -120,6 +120,9 @@
|
|||
enable = true;
|
||||
setupOpts = {
|
||||
fzf_colors = true;
|
||||
keymap.fzf = {
|
||||
"ctrl-q" = "select-all+accept";
|
||||
};
|
||||
};
|
||||
};
|
||||
autocomplete.blink-cmp = {
|
||||
|
|
|
@ -24,11 +24,12 @@ in
|
|||
|
||||
# pickers
|
||||
pick-file = keyCmd "n" "<leader><leader>" "FzfLua files";
|
||||
pick-buffer = keyCmd "n" "<leader>b" "FzfLua buffers";
|
||||
pick-mark = keyCmd "n" "<leader>'" "FzfLua marks";
|
||||
#pick-buffer = keyCmd "n" "<leader>b" "FzfLua buffers";
|
||||
pick-grep = keyCmd "n" "<leader>ff" "FzfLua grep_project";
|
||||
pick-recent-command = keyCmd "n" "<leader>fc" "FzfLua command_history";
|
||||
pick-other = keyCmd "n" "<leader>f?" "FzfLua builtin"; # picker of Fzf pickers
|
||||
pick-other = keyCmd "n" "<leader><tab>" "FzfLua builtin"; # picker of Fzf pickers
|
||||
find-fuzzy = keyCmd "n" "<leader>ff" "FzfLua grep_project";
|
||||
find-grep = keyCmd "n" "<leader>fg" "FzfLua live_grep";
|
||||
|
||||
# lsp
|
||||
code-action =
|
||||
|
@ -38,7 +39,7 @@ in
|
|||
# subtle nice features
|
||||
visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
|
||||
visual-indent = keyRemap "v" ">" ">gv"; # keep selection
|
||||
clear-search-highlights = keyRemap "n" "<esc" ":noh<Return><esc>";
|
||||
clear-search-highlights = keyRemap "n" "<esc>" ":noh<Return><esc>";
|
||||
};
|
||||
|
||||
# implementation
|
||||
|
|
2
nvim
2
nvim
|
@ -11,4 +11,4 @@ if [ -z "$name" ]; then
|
|||
echo "Configure this wrapper script with your name." >&2
|
||||
exit 1
|
||||
fi
|
||||
exec nix run ".#nvim-$name" -- "$@"
|
||||
exec nix run "$(dirname "$0")#nvim-$name" -- "$@"
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env node
|
||||
// autofmt v1 - https://paperclover.dev/nix/config/src/branch/main/files/autofmt.js
|
||||
// autofmt v1 by paper clover
|
||||
// https://paperclover.dev/nix/config/src/branch/main/packages/autofmt/autofmt.js
|
||||
//
|
||||
// Different codebases use different formatters. Autofmt looks for project
|
||||
// configuration to pick the correct formatter, allowing an editor to simply
|
|
@ -10,5 +10,5 @@ pkgs.writeShellApplication {
|
|||
zig
|
||||
clang-tools
|
||||
];
|
||||
text = ''exec deno run -A ${../files/autofmt.js} "$@"'';
|
||||
text = ''exec deno run -A ${./autofmt.js} "$@"'';
|
||||
}
|
|
@ -44,6 +44,25 @@
|
|||
# Enable the GNOME Desktop Environment.
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.desktopManager.gnome.enable = true;
|
||||
environment.gnome.excludePackages = (
|
||||
with pkgs;
|
||||
[
|
||||
atomix
|
||||
cheese
|
||||
epiphany
|
||||
geary
|
||||
gedit
|
||||
gnome-characters
|
||||
gnome-music
|
||||
gnome-photos
|
||||
gnome-terminal
|
||||
gnome-tour
|
||||
hitori
|
||||
iagno
|
||||
totem
|
||||
|
||||
]
|
||||
);
|
||||
|
||||
# Configure keymap in X11
|
||||
# services.xserver.xkb.layout = "us";
|
||||
|
@ -66,7 +85,10 @@
|
|||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.fish = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
extraGroups = [
|
||||
"wheel" # Enable ‘sudo’ for the user.
|
||||
"dialout" # Enable serial access for the user.
|
||||
];
|
||||
packages = with pkgs; [
|
||||
tree
|
||||
git
|
||||
|
@ -77,6 +99,7 @@
|
|||
};
|
||||
|
||||
programs.firefox.enable = true;
|
||||
programs.neovim.defaultEditor.enable = true;
|
||||
|
||||
# List packages installed in system profile.
|
||||
# You can use https://search.nixos.org/ to find more packages (and options).
|
||||
|
|
|
@ -17,23 +17,14 @@
|
|||
ghostty
|
||||
stremio
|
||||
julia
|
||||
qbittorrent
|
||||
calibre
|
||||
mpv
|
||||
signal-desktop
|
||||
python3
|
||||
gh
|
||||
spotify
|
||||
|
||||
# Gaming
|
||||
bottles
|
||||
lutris
|
||||
mangohud
|
||||
dxvk_2
|
||||
steam-run
|
||||
vulkan-tools
|
||||
path-of-building
|
||||
wineWowPackages.stable
|
||||
winetricks
|
||||
(prismlauncher.override { gamemodeSupport = true; })
|
||||
|
||||
# System & desktop tools
|
||||
|
@ -47,18 +38,17 @@
|
|||
grub2
|
||||
efibootmgr
|
||||
distrobox
|
||||
pqiv
|
||||
|
||||
# Dev tools
|
||||
legcord
|
||||
hyfetch
|
||||
arduino-cli
|
||||
rust-bin.stable.latest.default
|
||||
tytools
|
||||
inputs.zls.packages.x86_64-linux.zls
|
||||
platformio
|
||||
usbutils
|
||||
teensy-loader-cli
|
||||
teensyduino
|
||||
kicad
|
||||
|
||||
# Unsorted
|
||||
ripgrep
|
||||
busybox
|
||||
imagemagick
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
rec {
|
||||
username = "fish"; # username
|
||||
name = "Fish"; # name/identifier
|
||||
email = "fish@fishcat.fish"; # email (used for certain configurations)
|
||||
email = "77413091+JulianBarbera@users.noreply.github.com"; # email (used for certain configurations)
|
||||
dotfilesDir = "~/config"; # absolute path of the local repo
|
||||
theme = "catppuccin-mocha"; # name of theme that stylix will use
|
||||
browser = "firefox"; # Default browser; must select one from ./user/app/browser/
|
||||
|
|
Loading…
Reference in a new issue