Add production system and add on-failure service restart for Node applications
parent
42b67c7378
commit
aa85f35cb6
@ -0,0 +1,15 @@
|
||||
{
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "sd_mod" "sr_mod" ];
|
||||
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
version = 2;
|
||||
device = "/dev/sda";
|
||||
};
|
||||
};
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
let
|
||||
removeNewlines = (import ../lib/util/remove-newlines.nix);
|
||||
presetRootSsh = (import ../lib/presets/root-ssh.nix);
|
||||
in {
|
||||
osmium = {config, pkgs, ...}@args: let
|
||||
presetTools = (import ../lib/presets/tools.nix) args;
|
||||
presetQemuGuest = (import ../lib/presets/qemu-guest.nix);
|
||||
in
|
||||
{
|
||||
deployment.targetHost = "80.255.0.137";
|
||||
|
||||
systems.osmium = {
|
||||
applications.pastebin-stream = {
|
||||
hostname = "pastebin-stream.cryto.net";
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/cf472470-0b3d-414b-93f8-b5e4298fad05";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "osmium";
|
||||
defaultGateway6 = "2a01:4a0:4a::1";
|
||||
interfaces.enp0s3 = {
|
||||
ipv6Address = "2a01:4a0:4a:5d::35c7";
|
||||
ipv6PrefixLength = 48;
|
||||
};
|
||||
};
|
||||
} // presetRootSsh // presetTools // presetQemuGuest;
|
||||
}
|
Loading…
Reference in New Issue