30 lines
625 B
Nix
30 lines
625 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
imports = [ ../common/configuration.nix ./hardware-configuration.nix ];
|
|
|
|
networking.hostName = "ahrc-pc";
|
|
|
|
console.keyMap = "us";
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
settings = { PasswordAuthentication = false; };
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [ cryptsetup ];
|
|
|
|
programs.bash.promptInit = ''
|
|
if [ "$(whoami)" = root ]; then
|
|
color=31
|
|
else
|
|
color=35
|
|
user='\u@'
|
|
fi
|
|
PS1="\[\033[0m\][\[\033[1;''${color}m\]''${user}\h\[\033[0m\] \[\033[1;34m\]\W\[\033[0m\]]\\$ "
|
|
'';
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|