2023-06-29 08:32:19 +02:00
|
|
|
{ config, pkgs, ... }: # A pinned version of Nixpkgs passed to the configuration by Nix
|
2023-06-27 11:52:45 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
# 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";
|
|
|
|
};
|
|
|
|
|
2023-06-29 08:32:19 +02:00
|
|
|
# Configure Tailscale
|
|
|
|
|
|
|
|
|
2023-06-27 11:52:45 +02:00
|
|
|
# CLI tools, language runtimes, shells, and other desired packages
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
curl
|
2023-06-29 08:32:19 +02:00
|
|
|
vim
|
2023-06-27 11:52:45 +02:00
|
|
|
git
|
2023-06-29 08:32:19 +02:00
|
|
|
htop
|
|
|
|
wget
|
|
|
|
tailscale
|
2023-06-27 11:52:45 +02:00
|
|
|
];
|
2023-06-29 08:32:19 +02:00
|
|
|
|
|
|
|
# Enable services:
|
|
|
|
services = {
|
|
|
|
tailscale = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
openssh = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|