bash: put directory in prompt
Some checks failed
ci/woodpecker/push/ci Pipeline failed

This commit is contained in:
Daniel Lundin 2024-10-13 23:18:17 +02:00
parent d65e479bef
commit ae825ff709
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI
4 changed files with 13 additions and 5 deletions

View file

@ -31,7 +31,7 @@
# Make the current system version visible in the prompt.
programs.bash.promptInit = ''
export PS1="\u@\h (version ${config.system.image.version}) $ "
export PS1="\u@\h (version ${config.system.image.version}) \w $ "
'';
# Not compatible with system.etc.overlay.enable yet.

View file

@ -1,4 +1,9 @@
{ lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
{
boot.kernelPackages =
let
@ -10,7 +15,7 @@
modDirVersion = version;
src = pkgs.fetchurl {
url = "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-${version}.tar.xz";
hash = "sha256:ec9ef7a0b9cebb55940e1ef87a1f9e1004b10456a119dc386bb3e565b0d39c42";
sha256 = "ec9ef7a0b9cebb55940e1ef87a1f9e1004b10456a119dc386bb3e565b0d39c42";
};
configfile = ./generic.config;
allowImportFromDerivation = true;

View file

@ -21,7 +21,7 @@
mkfsOptions = {
erofs = [
"-zzstd,6" # Zstd compression
# "-zzstd,6" # Zstd compression
"-T0" # Fixed timestamp for all files
"-Efragments,dedupe,ztailpacking" # Extended options
];

View file

@ -11,5 +11,8 @@ let
'';
in
{
environment.systemPackages = [ script ];
environment.systemPackages = [
# pkgs.ncdu
script
];
}