mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-19 16:49:04 +05:30
45 lines
832 B
Nix
45 lines
832 B
Nix
{config, ...}: {
|
|
flake.modules.nixos.vps = {hostName, ...}: {
|
|
imports = with config.flake.modules.nixos; [
|
|
boot
|
|
networking
|
|
virtualisation
|
|
services
|
|
];
|
|
|
|
tnix = {
|
|
boot = {
|
|
legacy.enable = true;
|
|
|
|
impermanence = {
|
|
enable = true;
|
|
|
|
home = {
|
|
directories = [
|
|
".local/share/nvim"
|
|
".local/share/zsh"
|
|
".local/share/zoxide"
|
|
".local/state/lazygit"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
networking.openssh.enable = true;
|
|
|
|
virtualisation = {
|
|
docker.enable = true;
|
|
};
|
|
};
|
|
|
|
# --- Networking ---
|
|
networking = {
|
|
hostName = hostName;
|
|
networkmanager.enable = true;
|
|
firewall.enable = false;
|
|
};
|
|
|
|
system.stateVersion = "26.05";
|
|
};
|
|
}
|