feat: add lazygit alias to lg

This commit is contained in:
2025-09-17 12:57:04 +09:00
parent d41f27f465
commit 678d9874ff
5 changed files with 43 additions and 7 deletions

View File

@@ -17,9 +17,33 @@ in {
nixpkgs.config.allowUnfree = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.device = "/dev/nvme1n1p1";
boot.loader = {
systemd-boot.enable = false;
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi";
};
grub = {
efiSupport = true;
device = "nodev";
extraConfig = ''
GRUB_DEFAULT=saved
GRUB_SAFEDEFAULT=false
'';
useOSProber = true;
};
};
security.sudo = {
enable = true;
extraRules = [{
commands = [{
command = "${pkgs.grub2}/bin/grub-reboot";
options = [ "NOPASSWD" ];
}];
groups = [ "wheel" ];
}];
};
networking.hostName = "haskell"; # Define your hostname.

View File

@@ -9,7 +9,8 @@
boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelParams = [ "intel_iommu=on" "modprobe.blacklist=dvb_usb_rtl28xxu" ];
boot.kernelParams =
[ "intel_iommu=on" "modprobe.blacklist=dvb_usb_rtl28xxu" ];
boot.kernelModules = [ "kvm-intel" "vfio_pci" ];
boot.extraModulePackages = [ ];
@@ -36,7 +37,7 @@
options = [ "subvol=nix" ];
};
fileSystems."/boot" = {
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/E808-5876";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];

View File

@@ -15,10 +15,18 @@
set -gx OPENSSL_LIB_DIR ${pkgs.openssl.out}/lib;
set -gx OPENSSL_INCLUDE_DIR ${pkgs.openssl.dev}/include;
set -gx PKG_CONFIG_PATH ${pkgs.openssl.dev}/lib/pkgconfig;
alias vi="nvim"
alias v="nvim"
alias c="clear"
alias rb="sudo nixos-rebuild switch --flake ~/nixos-config#"
alias boot-rb="sudo nixos-rebuild --install-bootloader boot --flake ~/nixos-config#"
alias dry-rb="sudo nixos-rebuild dry-build --flake ~/nixos-config#"
alias win="grub-reboot 'Windows Boot Manager (on /dev/sda2)' && reboot"
alias qwer="reboot"
alias zxcv="shutdown now"
alias lg="lazygit"
if test -f $HOME/.config/fish/kube.fish
source $HOME/.config/fish/kube.fish
end

View File

@@ -9,6 +9,8 @@ with pkgs; [
lldb
tokio-console
iaito
clang
valgrind
ghidra-bin
protobuf
buf
@@ -16,6 +18,7 @@ with pkgs; [
unityhub
python313Packages.r2pipe
python312Packages.r2pipe
gh
python312Packages.pip
nodejs
go
@@ -23,7 +26,6 @@ with pkgs; [
binwalk
dotnet-sdk_9
csharp-ls
gcc
cmake
gnumake
graalvmPackages.graalvm-ce

View File

@@ -11,6 +11,7 @@ with pkgs; [
xz
rtl-sdr
hyprpicker
grub2
zlib
unzip
p7zip