Skip to content

Instantly share code, notes, and snippets.

View fcoury's full-sized avatar

Felipe Coury fcoury

View GitHub Profile
@fcoury
fcoury / etc-nixos
Created January 12, 2024 16:22 — forked from p-alik/etc-nixos
NixOS config on Dell XPS 13 Plus 9320
# /etc/nixos/configuration.nix
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader.systemd-boot.enable = true;
@fcoury
fcoury / xps_9320.nix
Created January 12, 2024 04:19 — forked from notgne2/xps_9320.nix
It Just Works ™️
{
config,
pkgs,
lib,
inputs,
...
}: let
ipu6-camera-bin = with pkgs;
stdenv.mkDerivation rec {
pname = "ipu6-camera-bin";
@fcoury
fcoury / from-init.lua-to-default.nix.md
Created January 7, 2024 02:11 — forked from nat-418/from-init.lua-to-default.nix.md
Advanced Neovim configuration with Nix and Home Manager

From init.lua to default.nix

In a previous post I explained how to manage Neovim plugins with Nix and Home Manager. In this post I want to go further and show how to migrate Neovim configuration from ~/.config/nvim to ~/.config/home-manager entirely. The end result will be to split our Neovim setup into multiple modules that colocate plugin sourcing and configuration.

If you haven't read the post linked above, do so now. We will assume the

@fcoury
fcoury / nix-home-manager-neovim-setup.md
Created January 7, 2024 01:35 — forked from nat-418/nix-home-manager-neovim-setup.md
Manage Neovim plugins (and more!) with Nix and Home Manager

Manage Neovim plugins (and more!) with Nix and Home Manager

Highly extensible software like Emacs, Vim, and Neovim tend to grow their own package managers. A software developer, for example, might want to install editor plugins that hook into a particular programming language's linter or language server. The programmer's text editor is therefore extended to support managing additional software to extend the text editor. If this loop continues for too long, the programmer's editor becomes more delicate and complex. The remedy for this problem is to manage software using dedicated tools apart

@fcoury
fcoury / gist:b27ef9d3a5b7dca7ba315647485c5f23
Created January 5, 2024 17:55
Kanata config for XPS 13 keyboard
(defsrc
grv 1 2 3 4 5 6 7 8 9 0 - = bspc
tab q w e r t y u i o p [ ] \
caps a s d f g h j k l ; ' ret
lsft z x c v b n m , . / rsft
lctl lmet lalt spc ralt rmet rctl
)
(deflayer qwerty
@gsc 1 2 3 4 5 6 7 8 9 0 - = bspc
@fcoury
fcoury / 10-monitor.conf
Last active February 11, 2024 06:08
Install Arch Linux on UTM on macOS on M1/M2/M3
Section "Monitor"
Identifier "Virtual-1"
Modeline "2560x1600" 348.50 2560 2760 3032 3504 1600 1603 1609 1658 -hsync +vsync
Option "PreferredMode" "2560x1600"
EndSection
Section "Screen"
Identifier "Screen0"
Monitor "Virtual-1"
DefaultDepth 24
@fcoury
fcoury / gist:23e8fa748f37d7890fd5f5bf7df9085f
Last active July 25, 2024 13:56
Arch Linux on Mac M1/M2/M3 via UTM
loadkeys us-acentos
setfont Lat2-Terminus16
timedatectl
fdisk -l
fdisk /dev/vda
g
n
<default>
<enter>
+512M
@fcoury
fcoury / Cargo.toml
Created August 10, 2023 18:45 — forked from vchernetskyi993/Cargo.toml
Rust - Single testcontainer for multiple test functions
[package]
name = "testcontainers-sample"
version = "0.1.0"
edition = "2021"
[dev-dependencies]
async_once = "0.2.6"
aws-sdk-s3 = "0.28.0"
ctor = "0.2.4"
lazy_static = "1.4.0"
@fcoury
fcoury / rust-cross-compile-openssl.md
Last active February 6, 2023 14:42 — forked from marirs/rust-cross-compile-openssl
Rust OpenSSL Cross Compile for Linux on Mac M1

Install the toolchain

brew tap SergioBenitez/osxct
brew install x86_64-unknown-linux-gnu

this should get installed in:

/opt/homebrew/Cellar/x86_64-unknown-linux-gnu/

Installing the macOS OpenSSL - if not already installed

@fcoury
fcoury / README.md
Created October 19, 2021 02:13 — forked from gjreasoner/README.md
Expand Ubuntu 20 Proxmox Disk
# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button

# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME                      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                         8:0    0    1T  0 disk
├─sda1                      8:1    0    1M  0 part
├─sda2                      8:2    0    1G  0 part /boot
└─sda3                      8:3    0    1T  0 part