From c3c3649e21732c8b78034e8fca083383c86395a6 Mon Sep 17 00:00:00 2001 From: minco Date: Sat, 20 Sep 2025 16:10:39 +0900 Subject: [PATCH] feat: add personal tmp --- hardware-configuration.nix | 17 ++++++++++++++--- modules/home/fish.nix | 14 ++++++++++++++ 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 691d81f..3ce01eb 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -15,9 +15,14 @@ boot.extraModulePackages = [ ]; # 1050 passthrough - # boot.extraModprobeConfig = '' - # options vfio-pci ids=10de:1c81,10de:0fb9 - # ''; + boot.extraModprobeConfig = "" + # + "options vfio-pci ids=10de:1c81,10de:0fb9\n" + + '' + options hid_apple fnmode=2 + ''; + # hid_apple -> remove AK68 keyboard F1-F12 not pressing issue + + boot.kernel.sysctl = { "hid_apple.fnmode" = 2; }; fileSystems."/" = { device = "/dev/disk/by-uuid/4e08142c-1b09-4265-a497-822e4a83d4c8"; @@ -25,6 +30,12 @@ options = [ "subvol=root" ]; }; + fileSystems."/x" = { + device = "tmpfs"; + fsType = "tmpfs"; + options = [ "size=8G" "mode=1777" ]; + }; + fileSystems."/home" = { device = "/dev/disk/by-uuid/4e08142c-1b09-4265-a497-822e4a83d4c8"; fsType = "btrfs"; diff --git a/modules/home/fish.nix b/modules/home/fish.nix index ad739ad..4bbec32 100644 --- a/modules/home/fish.nix +++ b/modules/home/fish.nix @@ -15,6 +15,7 @@ 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; + set -x NIX_DEV_SHELL_DEFAULT_SHELL (which fish) alias v="nvim" alias c="clear" alias rb="sudo nixos-rebuild switch --flake ~/nixos-config#" @@ -27,6 +28,19 @@ alias zxcv="shutdown now" alias lg="lazygit" + function mkcd + if test (count $argv) -eq 0 + echo "Usage: mkcd " + return 1 + end + + mkdir -p $argv[1] + and cd $argv[1] + end + + funcsave mkcd + + if test -f $HOME/.config/fish/kube.fish source $HOME/.config/fish/kube.fish end