Initial commit
This commit is contained in:
commit
cfcc57a8bd
353 changed files with 18756 additions and 0 deletions
62
puter/030-vm-nixos-neru/neru.nix
Normal file
62
puter/030-vm-nixos-neru/neru.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
/*---------------------------------------------------
|
||||
|
||||
Nixos VPS Hostinger ~
|
||||
|
||||
---------------------------------------------------*/
|
||||
{ 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
|
||||
# ----------------
|
||||
root.nixos
|
||||
ssh-server.nixos
|
||||
# ----------------
|
||||
sops.nixos
|
||||
] ++ [ # ---- 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
|
||||
# -----
|
||||
code-editor-tty.homeManager
|
||||
version-control.homeManager
|
||||
# -----
|
||||
yazi.homeManager
|
||||
# -----
|
||||
protonvpn-cli.homeManager
|
||||
];};}];
|
||||
# ----- additional nixos config
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue