infra/puter/030-vm-nixos-neru/neru.nix

109 lines
11 KiB
Nix
Raw Normal View History

2025-12-01 13:23:24 +07:00
/*---------------------------------------------------
2025-12-01 15:36:29 +07:00
Nixos VPS Hostinger
2025-12-01 13:23:24 +07:00
---------------------------------------------------*/
{ inputs, den, ... }:
let
hostname = "neru";
username = "kirbara";
platform = "nixos";
architecture = "x86_64-linux";
# ----
in
{
den.hosts.${architecture} = {
${hostname} = {
class = platform;
users.${username} = { };
};
};
den.aspects = {
${hostname} = {
${platform} = {
networking.hostName = hostname;
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ inputs.self.overlays.default ];
imports = with den.aspects; [
# -------------------------------------------------
base.nixos
software-tty.nixos
2025-12-05 18:44:17 +07:00
# -----
2025-12-01 13:23:24 +07:00
root.nixos
ssh-server.nixos
2025-12-05 18:44:17 +07:00
# -----
2025-12-01 13:23:24 +07:00
sops.nixos
2025-12-05 18:44:17 +07:00
# -----
2025-12-01 13:23:24 +07:00
] ++ [ # ---- nixos home-manager
inputs.home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = { inherit inputs; }; # fix infinite recursion
home-manager.backupFileExtension = "backup"; # important
home-manager.users.${username} = {
nixpkgs.overlays = [ inputs.self.overlays.default ];
nixpkgs.config.allowUnfree = true;
imports = with den.aspects; [
# -----
base.homeManager
software-tty.homeManager
# -----
2025-12-01 15:22:04 +07:00
home-manager.homeManager
# -----
2025-12-01 13:23:24 +07:00
code-editor-tty.homeManager
version-control.homeManager
# -----
yazi.homeManager
# -----
protonvpn-cli.homeManager
];};}];
# ----- additional nixos config
};
};
};
}