Deploy Nix Config
This commit is contained in:
26
deploy.nix
Normal file
26
deploy.nix
Normal 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
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user