48 lines
1.4 KiB
Nix
48 lines
1.4 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";
|
|
};
|
|
nix-home = {
|
|
url = "git+https://gitea.john-stream.com/john/nix-home";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, ... }@inputs:
|
|
let
|
|
inherit (self) outputs;
|
|
nixosSystem = inputs.nixpkgs.lib.nixosSystem;
|
|
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
|
|
in
|
|
{
|
|
nixosConfigurations.lxc = nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
(inputs.nixpkgs + "/nixos/modules/virtualisation/proxmox-lxc.nix")
|
|
inputs.nix-home.nixosModules.default { user = "john"; }
|
|
inputs.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
|
|
];
|
|
})
|
|
inputs.home-manager.nixosModules.home-manager {
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.users.root.home.stateVersion = "24.11";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|