disko + impermanence pc
This commit is contained in:
parent
c98173ce23
commit
1682c71bdf
9 changed files with 224 additions and 29 deletions
|
|
@ -1,3 +1,4 @@
|
|||
{ hwconfig, first-nixos-install, ... }:
|
||||
{
|
||||
programs.fastfetch = {
|
||||
enable = true;
|
||||
|
|
@ -84,14 +85,14 @@
|
|||
"break"
|
||||
{
|
||||
type = "custom";
|
||||
format = "┌────────────────────Uptime / Age────────────────────┐";
|
||||
format = "┌────────────────────Age / Uptime────────────────────┐";
|
||||
}
|
||||
{
|
||||
type = "command";
|
||||
key = "│ ";
|
||||
text = #bash
|
||||
''
|
||||
birth_install=$(stat -c %W /)
|
||||
birth_install=${if hwconfig.useImpermanence then "${first-nixos-install}" else "$(stat -c %W /)"}
|
||||
current=$(date +%s)
|
||||
delta=$((current - birth_install))
|
||||
delta_days=$((delta / 86400))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue