35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{
|
|
description = "My system configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
|
|
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
vscode-server.url = "github:nix-community/nixos-vscode-server";
|
|
|
|
};
|
|
|
|
outputs = inputs@{ self, nixpkgs, nixpkgs-unstable, vscode-server, ... }: {
|
|
nixosConfigurations = {
|
|
# revision = self.shortRev or self.dirtyShortRev or self.lastModified or "unknown";
|
|
tartarus = nixpkgs.lib.nixosSystem rec {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
./hosts/tartarus/configuration.nix
|
|
vscode-server.nixosModules.default
|
|
({ config, pkgs, ... }: {
|
|
services.vscode-server.enable = true;
|
|
})
|
|
];
|
|
specialArgs = {
|
|
pkgs-unstable = import nixpkgs-unstable {
|
|
inherit system;
|
|
config.allowUnfree = true;
|
|
};
|
|
system-label =
|
|
self.shortRev or self.dirtyShortRev or self.lastModified or "unknown";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|