le versionierung

This commit is contained in:
Stefan Kempinger 2025-07-23 15:39:09 +02:00
commit c062f35d86
5 changed files with 321 additions and 0 deletions

29
flake.nix Normal file
View file

@ -0,0 +1,29 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
vscode-server.url = "github:nix-community/nixos-vscode-server";
};
outputs = { self, nixpkgs, vscode-server, ... }@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = false;
};
nixosSystem = { ... }@args:
(nixpkgs.lib.nixosSystem ({
inherit pkgs system;
# pass flake inputs to individual module files
specialArgs = { inherit inputs; };
} // args));
in {
packages."${system}".default =
self.nixosConfigurations.nixos-server.config.system.build.toplevel;
# NixOS configuration
nixosConfigurations.nixos-server =
nixosSystem { modules = [ ./configuration.nix ]; };
};
}