From 665beb90f33b0c92e58ee4518a85179341c23c82 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Fri, 13 Dec 2024 18:47:25 -0600 Subject: [PATCH] initial commit --- .gitignore | 0 README.md | 1 + flake.nix | 29 +++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 flake.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md new file mode 100644 index 0000000..d5e2836 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# LXC Bootstrap diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..a8e0bcf --- /dev/null +++ b/flake.nix @@ -0,0 +1,29 @@ +{ + description = "A very basic flake"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + vscode-server.url = "github:nix-community/nixos-vscode-server"; + }; + + outputs = { self, ... }@args: + let + inherit (self) outputs; + nixosSystem = args.nixpkgs.lib.nixosSystem; + in + { + nixosConfigurations.lxc = nixosSystem { + system = "x86_64-linux"; + # specialArgs = { + # inherit systemSettings; + # inherit userSettings; + # }; + modules = [ + (args.nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix") + args.vscode-server.nixosModules.default + ({ ... }: { services.vscode-server.enable = true; }) + # ./configuration.nix + ]; + }; + }; +}