sane-deadlines, sane-sysload: fix ordering to not run before the environment is configured
This commit is contained in:
@@ -19,9 +19,12 @@ in
|
||||
sandbox.extraHomePaths = [ "knowledge/planner/deadlines.tsv" ];
|
||||
|
||||
fs.".profile".symlink.text = lib.mkIf cfg.config.showOnLogin ''
|
||||
if [ -z "$SSH_TTY" ]; then
|
||||
sane-deadlines
|
||||
fi
|
||||
maybeShowDeadlines() {
|
||||
if [ -z "$SSH_TTY" ]; then
|
||||
sane-deadlines
|
||||
fi
|
||||
}
|
||||
sessionCommands+=('maybeShowDeadlines')
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
@@ -7,11 +7,14 @@
|
||||
"/sys/devices"
|
||||
];
|
||||
fs.".profile".symlink.text = ''
|
||||
# show ssh users the current resource usage.
|
||||
# especially useful for moby (to see battery)
|
||||
if [ -n "$SSH_TTY" ]; then
|
||||
sane-sysload
|
||||
fi
|
||||
maybeShowSysload() {
|
||||
# show ssh users the current resource usage.
|
||||
# especially useful for moby (to see battery)
|
||||
if [ -n "$SSH_TTY" ]; then
|
||||
sane-sysload
|
||||
fi
|
||||
}
|
||||
sessionCommands+=('maybeShowSysload')
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user