40 lines
1,008 B
Nix
40 lines
1,008 B
Nix
{
|
|
description = "NixOS Configuration for extremist.software Hetzner VPS";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
disko.url = "github:nix-community/disko";
|
|
disko.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
mymx.url = "path:./services/mymx";
|
|
mymx.inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
|
|
};
|
|
|
|
outputs = { self, nixpkgs, disko, ... }@inputs: {
|
|
nixosConfigurations.extremist-software = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
disko.nixosModules.disko
|
|
|
|
./disk-config.nix
|
|
./configuration.nix
|
|
];
|
|
};
|
|
|
|
devShells.x86_64-linux.default = let
|
|
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
deploy = pkgs.writeShellScriptBin "nhs" ''
|
|
nh os switch --hostname extremist-software --target-host root@extremist-software --impure path:. "$@"
|
|
'';
|
|
in pkgs.mkShell {
|
|
packages = [
|
|
pkgs.nh
|
|
deploy
|
|
];
|
|
};
|
|
};
|
|
}
|