From e5f6e1e2c517b7961c675c5f7c1317a72e508b3e Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Fri, 13 Dec 2024 19:46:25 -0600 Subject: [PATCH] trying to add git --- flake.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 9671143..156bf11 100644 --- a/flake.nix +++ b/flake.nix @@ -10,21 +10,26 @@ let inherit (self) outputs; nixosSystem = args.nixpkgs.lib.nixosSystem; + pkgs = args.nixpkgs.legacyPackages.x86_64-linux; in { nixosConfigurations.lxc = nixosSystem { system = "x86_64-linux"; - packages = with args.nixpkgs.legacyPackages.x86_64-linux; [ - git - ]; - # specialArgs = { - # inherit systemSettings; - # inherit userSettings; - # }; + specialArgs = { + inherit pkgs; + # inherit systemSettings; + # inherit userSettings; + }; modules = [ (args.nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix") args.vscode-server.nixosModules.default - ({ ... }: { services.vscode-server.enable = true; }) + ({ pkgs, ... }: { + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + services.vscode-server.enable = true; + environment.systemPackages = with pkgs; [ + git + ]; + }) # ./configuration.nix ]; };