From e3b89a2d24339776dcc0e9c852a48afa2f2f01e2 Mon Sep 17 00:00:00 2001 From: m3tam3re Date: Mon, 13 Jan 2025 10:32:08 +0100 Subject: [PATCH] +vserver template --- flake.nix | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/flake.nix b/flake.nix index 0549156..b9ee70e 100644 --- a/flake.nix +++ b/flake.nix @@ -10,28 +10,33 @@ 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, ... }: - let - systems = [ - "aarch64-linux" - "i686-linux" - "x86_64-linux" - "aarch64-darwin" - "x86_64-darwin" - ]; - forAllSystems = nixpkgs.lib.genAttrs systems; - in { - templates = { - nixos-standard = { - description = '' - NIXOS Standard - contains the basic flake structure I use to configure multiple machines and user environtments. - ''; - path = ./nixos/standard; - }; + outputs = {nixpkgs, ...}: let + systems = [ + "aarch64-linux" + "i686-linux" + "x86_64-linux" + "aarch64-darwin" + "x86_64-darwin" + ]; + forAllSystems = nixpkgs.lib.genAttrs systems; + in { + templates = { + nixos-standard = { + description = '' + NIXOS Standard - contains the basic flake structure I use to configure multiple machines and user environtments. + ''; + 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); + }; }