nixops: converted to flakes

This commit is contained in:
Fiscal Velvet Poet 2022-07-20 14:13:22 +10:00
parent 0eacaed516
commit 05b661a495
Signed by: fiscalvelvetpoet
GPG key ID: D8EBFD58B023BD47
3 changed files with 21 additions and 21 deletions

2
.envrc
View file

@ -1,2 +1,4 @@
use flake use flake
watch_file flake.nix watch_file flake.nix
export NIXOPS_DEPLOYMENT=jfdic-ops

View file

@ -1,21 +0,0 @@
# NixOps configuration for the jfdic-ops nodes
{
network = {
description = "jfdic-ops nodes";
enableRollback = true;
};
network.storage.legacy = {
databasefile = "~/.nixops/deployments.nixops";
};
defaults =
{ config, pkgs, lib, ... }:
{
system.autoUpgrade.enable = false; # Disabled as it conflicts with NixOps
};
toscano = import ./hosts/toscano.nix;
}

View file

@ -20,6 +20,25 @@ in {
}; };
})) }))
// { // {
nixopsConfigurations.default = {
inherit nixpkgs;
network = {
description = "jfdic-ops nodes";
enableRollback = true;
storage.legacy = {
databasefile = "~/.nixops/deployments.nixops";
};
};
defaults = {
config,
pkgs,
lib,
...
}: {
system.autoUpgrade.enable = false; # Disabled as it conflicts with NixOps
};
toscano = import ./hosts/toscano.nix;
};
nixosConfigurations = import ./nixos/configurations.nix (inputs nixosConfigurations = import ./nixos/configurations.nix (inputs
// { // {
inherit inputs; inherit inputs;