30 lines
836 B
Nix
30 lines
836 B
Nix
{
|
|
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 ]; };
|
|
};
|
|
}
|
|
|