mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-06-17 02:06:32 +05:30
82 lines
1.5 KiB
Nix
82 lines
1.5 KiB
Nix
{ config, ... }:
|
|
{
|
|
flake.modules.nixos.alpha =
|
|
{
|
|
hostName,
|
|
userName,
|
|
modulesPath,
|
|
...
|
|
}:
|
|
{
|
|
imports =
|
|
with config.flake.modules.nixos;
|
|
[
|
|
boot
|
|
hardware
|
|
networking
|
|
virtualisation
|
|
services
|
|
]
|
|
++ [
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
];
|
|
|
|
tnix = {
|
|
boot = {
|
|
legacy.enable = true;
|
|
|
|
impermanence = {
|
|
enable = true;
|
|
|
|
home = {
|
|
directories = [
|
|
".local/share/nvim"
|
|
".local/share/zsh"
|
|
".local/share/zoxide"
|
|
".local/state/lazygit"
|
|
".local/share/opencode"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
networking.openssh.enable = true;
|
|
|
|
virtualisation = {
|
|
docker.enable = true;
|
|
};
|
|
};
|
|
|
|
sops.secrets = {
|
|
tux-password = {
|
|
sopsFile = ./secrets.yaml;
|
|
neededForUsers = true;
|
|
};
|
|
|
|
gemini-api-key = {
|
|
sopsFile = ./secrets.yaml;
|
|
owner = userName;
|
|
};
|
|
|
|
openrouter-api-key = {
|
|
sopsFile = ./secrets.yaml;
|
|
owner = userName;
|
|
};
|
|
|
|
opencode-go-api-key = {
|
|
sopsFile = ./secrets.yaml;
|
|
owner = userName;
|
|
};
|
|
};
|
|
|
|
# --- Networking ---
|
|
networking = {
|
|
hostName = hostName;
|
|
networkmanager.enable = true;
|
|
firewall.enable = false;
|
|
};
|
|
|
|
system.stateVersion = "26.05";
|
|
};
|
|
}
|