nixops: converted to flakes
This commit is contained in:
parent
0eacaed516
commit
05b661a495
21
nixops.nix
21
nixops.nix
|
@ -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;
|
||||
}
|
19
outputs.nix
19
outputs.nix
|
@ -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
|
||||
// {
|
||||
inherit inputs;
|
||||
|
|
Loading…
Reference in a new issue