nix/server/test-configuration.nix

37 lines
717 B
Nix
Raw Normal View History

2023-06-27 11:52:45 +02:00
{ pkgs, ... }: # A pinned version of Nixpkgs passed to the configuration by Nix
{
# Enable Nix flakes and the unified Nix CLI
nix.settings = {
experimental-features = "nix-command flakes";
};
# Networking configuration
networking.hostName = "fedora-p1";
# Enable OpenSSH
services.openssh.enable = true;
# Root filesystem
fileSystems."/" = {
device = "/dev/sda1";
fsType = "ext4";
};
# Create a user
users.users.albert = {
isNormalUser = false;
initialPassword = "Password";
};
# CLI tools, language runtimes, shells, and other desired packages
environment.systemPackages = with pkgs; [
curl
jq
wget
git
python
openssl
zsh
];
}sssss