From 54fb7f42458ea8c4d970fb5ee0a675860364f8dc Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Thu, 5 Sep 2024 15:18:19 -0700 Subject: [PATCH] docker --- extras/dev.nix | 9 +++++++++ systems/NOlaptop.nix | 2 +- systems/NOriscv.nix | 3 +++ users/tao/nushell/stuff.nu | 14 +++++++++++--- 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 systems/NOriscv.nix diff --git a/extras/dev.nix b/extras/dev.nix index ec653c8..6ed2f30 100644 --- a/extras/dev.nix +++ b/extras/dev.nix @@ -83,4 +83,13 @@ SUBSYSTEM == "tty", GROUP="dialout", ATTRS{interface}=="Black Magic GDB Server", SYMLINK+="ttyBmpGdb" SUBSYSTEM == "tty", GROUP="dialout", ATTRS{interface}=="Black Magic UART Port", SYMLINK+="ttyBmpTarg" ''; + + virtualisation.docker = { + enable = true; + storageDriver = "btrfs"; + }; + virtualisation.docker.rootless = { + enable = true; + setSocketVariable = true; + }; } diff --git a/systems/NOlaptop.nix b/systems/NOlaptop.nix index 93e80cc..0335a54 100644 --- a/systems/NOlaptop.nix +++ b/systems/NOlaptop.nix @@ -77,7 +77,7 @@ AttrKeyboardIntegration=internal"; # macropad ACTION=="add", ATTRS{idVendor}="32ac", ATTRS{idProduct}="0013", ATTR{power/wakeup}="disabled" # - ACTION=="add", ATTRS{idVendor}="32ac", ATTRS{idProduct}="", ATTR{power/wakeup}="disabled" + # ACTION=="add", ATTRS{idVendor}="32ac", ATTRS{idProduct}="", ATTR{power/wakeup}="disabled" ''; boot.kernelPackages = pkgs.linuxPackages_latest; diff --git a/systems/NOriscv.nix b/systems/NOriscv.nix new file mode 100644 index 0000000..85e0679 --- /dev/null +++ b/systems/NOriscv.nix @@ -0,0 +1,3 @@ +{lib, ...}: { + nixpkgs.hostPlatform = "riscv64"; +} diff --git a/users/tao/nushell/stuff.nu b/users/tao/nushell/stuff.nu index cf0b465..13989b3 100644 --- a/users/tao/nushell/stuff.nu +++ b/users/tao/nushell/stuff.nu @@ -1,7 +1,7 @@ task alias xo = xdg-open -alias h = hx (sk) +# alias h = hx (sk) alias b = btm alias cringe = sudo bootctl set-oneshot auto-windows alias fetch = fastfetch @@ -10,13 +10,21 @@ alias pu = pueue alias t = task alias zl = zellij alias snapper = snapper -c home -alias quiet = sudo ectool fanduty 42 +alias quiet = sudo ectool fanduty 30 alias loud = sudo ectool autofanctrl alias jd = jj diff alias jc = jj desc alias js = jj status alias jp = jj git push alias jm = jj branch set main + +def h [] { + sk | complete | + if $in.exit_code == 0 { + $in.stdout | str trim | hx $in + } +} + def --env c [path: path = "~"] { cd $path l @@ -37,7 +45,7 @@ def l [ } | sort-by type name -i -n } -def srg [pattern] { +def srg [] { sk --ansi -i -c 'rg --color=always --line-number "{}"' } alias nd = nix develop