From 1707567e36d070f7025f86f53f634f7eb2eb91fc Mon Sep 17 00:00:00 2001 From: minco Date: Wed, 15 Oct 2025 20:06:14 +0900 Subject: [PATCH] feat: add `clc` command --- configuration.nix | 3 ++- modules/home/fish.nix | 1 + pkgs/programming.nix | 1 + services/virtual.nix | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 92a9945..ecbfb77 100644 --- a/configuration.nix +++ b/configuration.nix @@ -84,7 +84,8 @@ in { # Define a user account. Don't forget to set a password with ‘passwd’. users.users.allen = { isNormalUser = true; - extraGroups = [ "wheel" "wireshark" ]; # Enable ‘sudo’ for the user. + extraGroups = + [ "wheel" "wireshark" "podman" ]; # Enable ‘sudo’ for the user. shell = pkgs.fish; home = "/home/allen"; packages = with pkgs; [ tree ]; diff --git a/modules/home/fish.nix b/modules/home/fish.nix index 4bbec32..7b021c9 100644 --- a/modules/home/fish.nix +++ b/modules/home/fish.nix @@ -20,6 +20,7 @@ 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 clc="cloc . --exclude-dir=target,node_modules,.venv --exclude-ext=yml,yaml,csv -v" alias dry-rb="sudo nixos-rebuild dry-build --flake ~/nixos-config#" alias win="grub-reboot 'Windows Boot Manager (on /dev/sda2)' && reboot" diff --git a/pkgs/programming.nix b/pkgs/programming.nix index cd3e17c..8b574fd 100644 --- a/pkgs/programming.nix +++ b/pkgs/programming.nix @@ -9,6 +9,7 @@ with pkgs; [ zap lldb tokio-console + deno iaito clang valgrind diff --git a/services/virtual.nix b/services/virtual.nix index 028cb01..8c68132 100644 --- a/services/virtual.nix +++ b/services/virtual.nix @@ -6,6 +6,7 @@ podman = { enable = true; dockerCompat = true; + dockerSocket.enable = true; defaultNetwork.settings.dns_enabled = true; }; libvirtd.enable = true;