Files
lxc-bootstrap/flake.nix
2025-05-26 18:43:16 +00:00

47 lines
1.3 KiB
Nix

{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
vscode-server.url = "github:nix-community/nixos-vscode-server";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, ... }@args:
let
inherit (self) outputs;
nixosSystem = args.nixpkgs.lib.nixosSystem;
pkgs = args.nixpkgs.legacyPackages.x86_64-linux;
in
{
nixosConfigurations.lxc = nixosSystem {
system = "x86_64-linux";
modules = [
(args.nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
args.vscode-server.nixosModules.default
({ pkgs, ... }: {
system.stateVersion = "24.11";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
services.vscode-server.enable = true;
virtualisation.docker.enable = true;
environment.systemPackages = with pkgs; [
git
devenv
];
})
args.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.users.root = {
home.stateVersion = "24.11";
imports = [ ./git.nix ];
};
}
];
};
};
}