Deploy Nix Config

This commit is contained in:
2023-03-07 23:18:11 -05:00
parent 2039d4a258
commit b6fd31d510

26
deploy.nix Normal file
View File

@@ -0,0 +1,26 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.newalan.url = ./flake.nix;
outputs = { self, nixpkgs, newalan }: let
in {
nixosConfigurations.staging = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
({ config, pkgs, ... }: {
nixpkgs.overlays = [
(final: prev: {
newalan = newalan.newalan;
});
];
})
({lib, config, pkgs, ...}: {
system.stateVersion = "22.11";
environment.systemPackages = with pkgs; [
newalan
];
})
];
};
};
}