le versionierung
This commit is contained in:
commit
c062f35d86
5 changed files with 321 additions and 0 deletions
29
flake.nix
Normal file
29
flake.nix
Normal 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 ]; };
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue