nixos-config/ahrc-pc/configuration.nix

26 lines
522 B
Nix
Raw Normal View History

2024-10-09 14:06:35 +02:00
{ pkgs, ... }:
2024-09-30 16:43:05 +02:00
{
imports = [ ../common/configuration.nix ./hardware-configuration.nix ];
networking.hostName = "ahrc-pc";
2024-10-01 19:54:30 +02:00
console.keyMap = "us";
2024-10-01 21:01:09 +02:00
services.openssh.enable = true;
2024-10-03 09:27:08 +02:00
environment.systemPackages = with pkgs; [ cryptsetup ];
2024-09-30 16:43:05 +02:00
programs.bash.promptInit = ''
if [ "$(whoami)" = root ]; then
2024-10-01 19:55:50 +02:00
color=31
2024-09-30 16:43:05 +02:00
else
2024-10-01 19:55:50 +02:00
color=35
2024-09-30 16:43:05 +02:00
user='\u@'
fi
2024-10-01 19:55:50 +02:00
PS1="\[\033[0m\][\[\033[1;''${color}m\]''${user}\h\[\033[0m\] \[\033[1;34m\]\W\[\033[0m\]]\\$ "
2024-09-30 16:43:05 +02:00
'';
system.stateVersion = "24.05";
}