some upd
This commit is contained in:
@@ -119,6 +119,9 @@
|
|||||||
|
|
||||||
s = ''
|
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"; }'';
|
(){ 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 = ''
|
initContent = ''
|
||||||
@@ -170,8 +173,20 @@
|
|||||||
add-zsh-hook chpwd _ls_after_cd
|
add-zsh-hook chpwd _ls_after_cd
|
||||||
fi
|
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'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
./modules/wm.nix
|
./modules/wm.nix
|
||||||
./modules/unsorted.nix
|
./modules/unsorted.nix
|
||||||
./modules/thunar.nix # ! edit for nemo
|
./modules/thunar.nix # ! edit for nemo
|
||||||
|
./modules/virtualbox.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
networking.nameservers = [ "8.8.8.8" "1.1.1.1" ];
|
networking.nameservers = [ "8.8.8.8" "1.1.1.1" ];
|
||||||
networking.networkmanager.insertNameservers = [ "1.1.1.1" "8.8.8.8" ];
|
networking.networkmanager.insertNameservers = [ "1.1.1.1" "8.8.8.8" ];
|
||||||
networking.firewall.enable = mkDefault false; # ! 🤡
|
networking.firewall.enable = lib.mkDefault false; # ! 🤡
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,12 @@
|
|||||||
toybox
|
toybox
|
||||||
];
|
];
|
||||||
|
|
||||||
|
virtualisation.podman = {
|
||||||
|
enable = true;
|
||||||
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
|
};
|
||||||
|
programs.zsh.shellAliases = { docker = "podman"; };
|
||||||
|
|
||||||
programs.ssh.startAgent = true;
|
programs.ssh.startAgent = true;
|
||||||
services.gnome.gcr-ssh-agent.enable = lib.mkForce false;
|
services.gnome.gcr-ssh-agent.enable = lib.mkForce false;
|
||||||
|
|
||||||
|
|||||||
@@ -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 ];
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user