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
|
# custom packages
|
||||||
(_: pkgs: {
|
(_: pkgs: {
|
||||||
autofmt = pkgs.callPackage ./packages/autofmt.nix { };
|
autofmt = pkgs.callPackage ./packages/autofmt { };
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -120,6 +120,9 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
setupOpts = {
|
setupOpts = {
|
||||||
fzf_colors = true;
|
fzf_colors = true;
|
||||||
|
keymap.fzf = {
|
||||||
|
"ctrl-q" = "select-all+accept";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
autocomplete.blink-cmp = {
|
autocomplete.blink-cmp = {
|
||||||
|
|
|
@ -24,11 +24,12 @@ in
|
||||||
|
|
||||||
# pickers
|
# pickers
|
||||||
pick-file = keyCmd "n" "<leader><leader>" "FzfLua files";
|
pick-file = keyCmd "n" "<leader><leader>" "FzfLua files";
|
||||||
|
pick-buffer = keyCmd "n" "<leader>b" "FzfLua buffers";
|
||||||
pick-mark = keyCmd "n" "<leader>'" "FzfLua marks";
|
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-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
|
# lsp
|
||||||
code-action =
|
code-action =
|
||||||
|
@ -38,7 +39,7 @@ in
|
||||||
# subtle nice features
|
# subtle nice features
|
||||||
visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
|
visual-dedent = keyRemap "v" "<" "<gv"; # keep selection
|
||||||
visual-indent = 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
|
# implementation
|
||||||
|
|
2
nvim
2
nvim
|
@ -11,4 +11,4 @@ if [ -z "$name" ]; then
|
||||||
echo "Configure this wrapper script with your name." >&2
|
echo "Configure this wrapper script with your name." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
exec nix run ".#nvim-$name" -- "$@"
|
exec nix run "$(dirname "$0")#nvim-$name" -- "$@"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env node
|
#!/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
|
// Different codebases use different formatters. Autofmt looks for project
|
||||||
// configuration to pick the correct formatter, allowing an editor to simply
|
// configuration to pick the correct formatter, allowing an editor to simply
|
|
@ -10,5 +10,5 @@ pkgs.writeShellApplication {
|
||||||
zig
|
zig
|
||||||
clang-tools
|
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.
|
# Enable the GNOME Desktop Environment.
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
services.xserver.desktopManager.gnome.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
|
# Configure keymap in X11
|
||||||
# services.xserver.xkb.layout = "us";
|
# services.xserver.xkb.layout = "us";
|
||||||
|
@ -66,7 +85,10 @@
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.fish = {
|
users.users.fish = {
|
||||||
isNormalUser = true;
|
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; [
|
packages = with pkgs; [
|
||||||
tree
|
tree
|
||||||
git
|
git
|
||||||
|
@ -77,6 +99,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
programs.neovim.defaultEditor.enable = true;
|
||||||
|
|
||||||
# List packages installed in system profile.
|
# List packages installed in system profile.
|
||||||
# You can use https://search.nixos.org/ to find more packages (and options).
|
# You can use https://search.nixos.org/ to find more packages (and options).
|
||||||
|
|
|
@ -17,23 +17,14 @@
|
||||||
ghostty
|
ghostty
|
||||||
stremio
|
stremio
|
||||||
julia
|
julia
|
||||||
qbittorrent
|
|
||||||
calibre
|
calibre
|
||||||
mpv
|
mpv
|
||||||
signal-desktop
|
signal-desktop
|
||||||
python3
|
python3
|
||||||
gh
|
gh
|
||||||
|
spotify
|
||||||
|
|
||||||
# Gaming
|
# Gaming
|
||||||
bottles
|
|
||||||
lutris
|
|
||||||
mangohud
|
|
||||||
dxvk_2
|
|
||||||
steam-run
|
|
||||||
vulkan-tools
|
|
||||||
path-of-building
|
|
||||||
wineWowPackages.stable
|
|
||||||
winetricks
|
|
||||||
(prismlauncher.override { gamemodeSupport = true; })
|
(prismlauncher.override { gamemodeSupport = true; })
|
||||||
|
|
||||||
# System & desktop tools
|
# System & desktop tools
|
||||||
|
@ -47,18 +38,17 @@
|
||||||
grub2
|
grub2
|
||||||
efibootmgr
|
efibootmgr
|
||||||
distrobox
|
distrobox
|
||||||
|
pqiv
|
||||||
|
|
||||||
# Dev tools
|
# Dev tools
|
||||||
legcord
|
legcord
|
||||||
hyfetch
|
hyfetch
|
||||||
arduino-cli
|
kicad
|
||||||
rust-bin.stable.latest.default
|
|
||||||
tytools
|
# Unsorted
|
||||||
inputs.zls.packages.x86_64-linux.zls
|
ripgrep
|
||||||
platformio
|
busybox
|
||||||
usbutils
|
imagemagick
|
||||||
teensy-loader-cli
|
|
||||||
teensyduino
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
rec {
|
rec {
|
||||||
username = "fish"; # username
|
username = "fish"; # username
|
||||||
name = "Fish"; # name/identifier
|
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
|
dotfilesDir = "~/config"; # absolute path of the local repo
|
||||||
theme = "catppuccin-mocha"; # name of theme that stylix will use
|
theme = "catppuccin-mocha"; # name of theme that stylix will use
|
||||||
browser = "firefox"; # Default browser; must select one from ./user/app/browser/
|
browser = "firefox"; # Default browser; must select one from ./user/app/browser/
|
||||||
|
|
Loading…
Reference in a new issue