This commit is contained in:
2026-02-18 10:03:29 +03:00
parent 1b5e642963
commit e20bc8c042
5 changed files with 35 additions and 1 deletions
+15
View File
@@ -119,6 +119,9 @@
s = ''
(){ local val=''${1:-true} vault=''${2:-default}; local file="$HOME/stats/''${vault}.tsv"; mkdir -p "''${file:h}"; printf "%s\t%s\n" "$(date "+%Y-%m-%d %H:%M:%S")" "$val" >> "$file"; }'';
startvm =
"VBoxManage startvm --type=headless src; socat -,cfmakeraw,echo=0,escape=15 TCP4:localhost:2026";
};
initContent = ''
@@ -170,8 +173,20 @@
add-zsh-hook chpwd _ls_after_cd
fi
# mini-neofetch
printf "--- Hi, %s! ---\n" "$USER"
printf "Battery: %s%%\n" "$(cat /sys/class/power_supply/BAT0/capacity 2>/dev/null || echo "N/A")"
printf "Time you live: %s years :)\n" "$(python3 -c "from datetime import datetime; age_years = (datetime.now() - datetime(2006, 6, 16)).total_seconds() / (365.25 * 24 * 3600); print(f'{age_years:.10f}')")"
printf "--\n"
printf "Task to do: \n"
todo sort && todo;
alias дт='f() { todo add "$*"; todo; unset -f f; }; f'
'';
};
}
+1
View File
@@ -15,6 +15,7 @@
./modules/wm.nix
./modules/unsorted.nix
./modules/thunar.nix # ! edit for nemo
./modules/virtualbox.nix
];
}
+1 -1
View File
@@ -6,5 +6,5 @@
networking.networkmanager.enable = true;
networking.nameservers = [ "8.8.8.8" "1.1.1.1" ];
networking.networkmanager.insertNameservers = [ "1.1.1.1" "8.8.8.8" ];
networking.firewall.enable = mkDefault false; # ! 🤡
networking.firewall.enable = lib.mkDefault false; # ! 🤡
}
+6
View File
@@ -13,6 +13,12 @@
toybox
];
virtualisation.podman = {
enable = true;
defaultNetwork.settings.dns_enabled = true;
};
programs.zsh.shellAliases = { docker = "podman"; };
programs.ssh.startAgent = true;
services.gnome.gcr-ssh-agent.enable = lib.mkForce false;
+12
View File
@@ -0,0 +1,12 @@
{ pkgs, ... }:
{
virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [ "krosh" ];
virtualisation.virtualbox.host.enableExtensionPack = true;
virtualisation.virtualbox.guest.enable = true;
virtualisation.virtualbox.guest.dragAndDrop = true;
environment.systemPackages = with pkgs; [ socat ];
}