nixos-config/ahrc-pc/configuration.nix

20 lines
415 B
Nix
Raw Normal View History

2024-09-30 16:43:05 +02:00
{ config, lib, pkgs, ... }:
{
imports = [ ../common/configuration.nix ./hardware-configuration.nix ];
networking.hostName = "ahrc-pc";
programs.bash.promptInit = ''
if [ "$(whoami)" = root ]; then
color=35
else
color=32
user='\u@'
fi
PS1="\[\033[0m\](\[\033[1;''${color}m\]''${user}\h\[\033[0m\] \[\033[1;34m\]\W\[\033[0m\])\\$ "
'';
system.stateVersion = "24.05";
}