+vserver template

This commit is contained in:
m3tam3re 2025-01-13 10:32:08 +01:00
parent cd113583af
commit e3b89a2d24

View File

@ -10,28 +10,33 @@
Please also check out the starter configs mentioned above. Please also check out the starter configs mentioned above.
''; '';
inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; }; inputs = {nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";};
outputs = { nixpkgs, ... }: outputs = {nixpkgs, ...}: let
let systems = [
systems = [ "aarch64-linux"
"aarch64-linux" "i686-linux"
"i686-linux" "x86_64-linux"
"x86_64-linux" "aarch64-darwin"
"aarch64-darwin" "x86_64-darwin"
"x86_64-darwin" ];
]; forAllSystems = nixpkgs.lib.genAttrs systems;
forAllSystems = nixpkgs.lib.genAttrs systems; in {
in { templates = {
templates = { nixos-standard = {
nixos-standard = { description = ''
description = '' NIXOS Standard - contains the basic flake structure I use to configure multiple machines and user environtments.
NIXOS Standard - contains the basic flake structure I use to configure multiple machines and user environtments. '';
''; path = ./nixos/standard;
path = ./nixos/standard; };
}; vserver = {
description = ''
NIXOS Vserver - basic vserver with traefik and podman to be run on a vps.
'';
path = ./nixos/vps;
}; };
formatter =
forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
}; };
formatter =
forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
};
} }