44 lines
1.3 KiB
Nix
44 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
|
|
];
|
|
})
|
|
args.home-manager.nixosModules.home-manager
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
# home-manager.useUserPackages = true;
|
|
home-manager.users.root = import ./git.nix;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|