Nice and working

This commit is contained in:
niten 2021-12-09 09:12:54 -08:00
parent bde37636dd
commit e6e2fb04a4
4 changed files with 139 additions and 89 deletions

View File

@ -5,6 +5,10 @@ with inputs.nixpkgs.lib; let
network = { network = {
inherit description; inherit description;
enableRollback = enable-rollback; enableRollback = enable-rollback;
storage.legacy = {
databasefile = "~/.nixops/deployments.nixops";
};
}; };
}; };

View File

@ -263,11 +263,11 @@
}, },
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1637014545, "lastModified": 1638122382,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", "narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", "rev": "74f7e4319258e287b0f9cb95426c9853b282730b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -278,11 +278,11 @@
}, },
"flake-utils_2": { "flake-utils_2": {
"locked": { "locked": {
"lastModified": 1637014545, "lastModified": 1638122382,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", "narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", "rev": "74f7e4319258e287b0f9cb95426c9853b282730b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -315,11 +315,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638137290, "lastModified": 1638377832,
"narHash": "sha256-8Kjzn0jr4arVDDaOQUtT7VFd1ir1SB1X1xp1OoLZduo=", "narHash": "sha256-MWZ5h1kdQQbYhr5FqgWkGJpXJhvz9cX6ZyNCXj/usYE=",
"ref": "master", "ref": "master",
"rev": "45cb2ae34407530496a30c6121cad976bd186fc5", "rev": "067392bc5f3f38028d7a11e97eefe36164e67fa7",
"revCount": 8, "revCount": 12,
"type": "git", "type": "git",
"url": "ssh://fudo_git@git.fudo.org:2222/fudo-nix/entities.git" "url": "ssh://fudo_git@git.fudo.org:2222/fudo-nix/entities.git"
}, },
@ -338,17 +338,17 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638137290, "lastModified": 1638377832,
"narHash": "sha256-8Kjzn0jr4arVDDaOQUtT7VFd1ir1SB1X1xp1OoLZduo=", "narHash": "sha256-MWZ5h1kdQQbYhr5FqgWkGJpXJhvz9cX6ZyNCXj/usYE=",
"ref": "master", "ref": "master",
"rev": "45cb2ae34407530496a30c6121cad976bd186fc5", "rev": "067392bc5f3f38028d7a11e97eefe36164e67fa7",
"revCount": 8, "revCount": 12,
"type": "git", "type": "git",
"url": "https://git.fudo.org/nix/fudo-entities.git" "url": "https://git.fudo.org/fudo-nix/entities.git"
}, },
"original": { "original": {
"type": "git", "type": "git",
"url": "https://git.fudo.org/nix/fudo-entities.git" "url": "https://git.fudo.org/fudo-nix/entities.git"
} }
}, },
"fudo-home": { "fudo-home": {
@ -362,46 +362,62 @@
] ]
}, },
"locked": { "locked": {
"narHash": "sha256-NCvYqgBq3HCqBx+EO1grdiflR9tthm9bUIasB4XtI4U=", "lastModified": 1638231222,
"path": "/state/nixops/fudo-home", "narHash": "sha256-lvtfWFzAeK9YpNnuL28GMIoPCCimCFDI/M6BGq3e2BE=",
"type": "path" "ref": "master",
"rev": "9e5ca132cf4a353e78bb89d56ab0c8ca44ccce5e",
"revCount": 50,
"type": "git",
"url": "https://git.fudo.org/fudo-nix/home.git"
}, },
"original": { "original": {
"path": "/state/nixops/fudo-home", "type": "git",
"type": "path" "url": "https://git.fudo.org/fudo-nix/home.git"
} }
}, },
"fudo-lib": { "fudo-lib": {
"locked": { "locked": {
"narHash": "sha256-r8qffvJPWbBJmN32thMIxjdmY9X5VCc3TuyQyFAIdks=", "lastModified": 1638315265,
"path": "/state/fudo-lib", "narHash": "sha256-MoGnuM10hxHehr0TcmG5ssRfj3Xun7xPCVuHFy6yfjo=",
"type": "path" "ref": "master",
"rev": "976d47cf2d723bf8aefb32780311faf75164abe3",
"revCount": 21,
"type": "git",
"url": "https://git.fudo.org/fudo-nix/lib.git"
}, },
"original": { "original": {
"path": "/state/fudo-lib", "type": "git",
"type": "path" "url": "https://git.fudo.org/fudo-nix/lib.git"
} }
}, },
"fudo-lib_2": { "fudo-lib_2": {
"locked": { "locked": {
"narHash": "sha256-r8qffvJPWbBJmN32thMIxjdmY9X5VCc3TuyQyFAIdks=", "lastModified": 1638315265,
"path": "/state/fudo-lib", "narHash": "sha256-MoGnuM10hxHehr0TcmG5ssRfj3Xun7xPCVuHFy6yfjo=",
"type": "path" "ref": "master",
"rev": "976d47cf2d723bf8aefb32780311faf75164abe3",
"revCount": 21,
"type": "git",
"url": "https://git.fudo.org/fudo-nix/lib.git"
}, },
"original": { "original": {
"path": "/state/fudo-lib", "type": "git",
"type": "path" "url": "https://git.fudo.org/fudo-nix/lib.git"
} }
}, },
"fudo-lib_3": { "fudo-lib_3": {
"locked": { "locked": {
"narHash": "sha256-O2CsIArXcPyiBtDbAiFNU2IvIBTqEljrwDJkGF0STbw=", "lastModified": 1638315265,
"path": "/state/fudo-lib", "narHash": "sha256-MoGnuM10hxHehr0TcmG5ssRfj3Xun7xPCVuHFy6yfjo=",
"type": "path" "ref": "master",
"rev": "976d47cf2d723bf8aefb32780311faf75164abe3",
"revCount": 21,
"type": "git",
"url": "https://git.fudo.org/fudo-nix/lib.git"
}, },
"original": { "original": {
"path": "/state/fudo-lib", "type": "git",
"type": "path" "url": "https://git.fudo.org/fudo-nix/lib.git"
} }
}, },
"fudo-nixos": { "fudo-nixos": {
@ -416,7 +432,7 @@
] ]
}, },
"locked": { "locked": {
"narHash": "sha256-2SeObQF/+f9x8b9+8H7YObtF5brfwTBOaAGXjeES8gY=", "narHash": "sha256-aBzOCyjTffv6Dy/Ay6MtwodnRGoYzHoVpUonhLlNBrc=",
"path": "/state/fudo-nixos", "path": "/state/fudo-nixos",
"type": "path" "type": "path"
}, },
@ -427,13 +443,17 @@
}, },
"fudo-pkgs": { "fudo-pkgs": {
"locked": { "locked": {
"narHash": "sha256-XwEs/VkqJp1mNwYUeBUqCPrW6GUEwAxbXMVOy7bF2P8=", "lastModified": 1637050187,
"path": "/state/nixops/fudo-pkgs", "narHash": "sha256-E1Xz7MLL/ZZZcxVd/7VycBC0N/zFz+OjIHx2h0ki+Fo=",
"type": "path" "ref": "master",
"rev": "4dc41229084416562eb12d02c84020fb3800d96b",
"revCount": 17,
"type": "git",
"url": "https://git.fudo.org/fudo-nix/pkgs.git"
}, },
"original": { "original": {
"path": "/state/nixops/fudo-pkgs", "type": "git",
"type": "path" "url": "https://git.fudo.org/fudo-nix/pkgs.git"
} }
}, },
"fudo-secrets": { "fudo-secrets": {

View File

@ -48,6 +48,18 @@
"type": "path" "type": "path"
} }
}, },
"deployment-common": {
"flake": false,
"locked": {
"narHash": "sha256-+OirrRnBKlLiJmIKpuob37LzGKUuyqQJf/T2hL1hGbE=",
"path": "../../common",
"type": "path"
},
"original": {
"path": "../../common",
"type": "path"
}
},
"dnssec-keys": { "dnssec-keys": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -263,11 +275,11 @@
}, },
"flake-utils": { "flake-utils": {
"locked": { "locked": {
"lastModified": 1637014545, "lastModified": 1638122382,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", "narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", "rev": "74f7e4319258e287b0f9cb95426c9853b282730b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -278,11 +290,11 @@
}, },
"flake-utils_2": { "flake-utils_2": {
"locked": { "locked": {
"lastModified": 1637014545, "lastModified": 1638122382,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=", "narHash": "sha256-sQzZzAbvKEqN9s0bzWuYmRaA03v40gaJ4+iL1LXjaeI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "bba5dcc8e0b20ab664967ad83d24d64cb64ec4f4", "rev": "74f7e4319258e287b0f9cb95426c9853b282730b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -315,11 +327,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638317485, "lastModified": 1639000475,
"narHash": "sha256-L/lOrVjZAqwoC/gw/9BGdSK1YK0/Sl7VorBJgOd4gGk=", "narHash": "sha256-k/InAUmSfca0T1e+GyQbvuNez8wRY+43loR+YgunuxA=",
"ref": "master", "ref": "master",
"rev": "3dfcf3985223782c798fe5aab33d89e2eb78c370", "rev": "4984db90e84d31879f789b0eb5f91cc6b18e94b0",
"revCount": 9, "revCount": 15,
"type": "git", "type": "git",
"url": "ssh://fudo_git@git.fudo.org:2222/fudo-nix/entities.git" "url": "ssh://fudo_git@git.fudo.org:2222/fudo-nix/entities.git"
}, },
@ -338,11 +350,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638317485, "lastModified": 1639000475,
"narHash": "sha256-L/lOrVjZAqwoC/gw/9BGdSK1YK0/Sl7VorBJgOd4gGk=", "narHash": "sha256-k/InAUmSfca0T1e+GyQbvuNez8wRY+43loR+YgunuxA=",
"ref": "master", "ref": "master",
"rev": "3dfcf3985223782c798fe5aab33d89e2eb78c370", "rev": "4984db90e84d31879f789b0eb5f91cc6b18e94b0",
"revCount": 9, "revCount": 15,
"type": "git", "type": "git",
"url": "https://git.fudo.org/fudo-nix/entities.git" "url": "https://git.fudo.org/fudo-nix/entities.git"
}, },
@ -362,11 +374,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638231222, "lastModified": 1638991415,
"narHash": "sha256-lvtfWFzAeK9YpNnuL28GMIoPCCimCFDI/M6BGq3e2BE=", "narHash": "sha256-dRK4vyqMSJo4bXoKtynNPwHGoNzWAevnscIFwJIqQI0=",
"ref": "master", "ref": "master",
"rev": "9e5ca132cf4a353e78bb89d56ab0c8ca44ccce5e", "rev": "f0bb0be7c5250097858e74b283bb7bc082c3254d",
"revCount": 50, "revCount": 53,
"type": "git", "type": "git",
"url": "https://git.fudo.org/fudo-nix/home.git" "url": "https://git.fudo.org/fudo-nix/home.git"
}, },
@ -377,33 +389,41 @@
}, },
"fudo-lib": { "fudo-lib": {
"locked": { "locked": {
"narHash": "sha256-r8qffvJPWbBJmN32thMIxjdmY9X5VCc3TuyQyFAIdks=", "lastModified": 1638990149,
"path": "/state/fudo-lib", "narHash": "sha256-p1T0GMJXIJvTpVdn5nK7RZJX8izkabADJ/LsaL442zI=",
"type": "path" "ref": "master",
"rev": "c87448ff1365c3d5230690f68d1ba246652581d1",
"revCount": 24,
"type": "git",
"url": "https://git.fudo.org/fudo-nix/lib.git"
}, },
"original": { "original": {
"path": "/state/fudo-lib", "type": "git",
"type": "path" "url": "https://git.fudo.org/fudo-nix/lib.git"
} }
}, },
"fudo-lib_2": { "fudo-lib_2": {
"locked": { "locked": {
"narHash": "sha256-r8qffvJPWbBJmN32thMIxjdmY9X5VCc3TuyQyFAIdks=", "lastModified": 1638990149,
"path": "/state/fudo-lib", "narHash": "sha256-p1T0GMJXIJvTpVdn5nK7RZJX8izkabADJ/LsaL442zI=",
"type": "path" "ref": "master",
"rev": "c87448ff1365c3d5230690f68d1ba246652581d1",
"revCount": 24,
"type": "git",
"url": "https://git.fudo.org/fudo-nix/lib.git"
}, },
"original": { "original": {
"path": "/state/fudo-lib", "type": "git",
"type": "path" "url": "https://git.fudo.org/fudo-nix/lib.git"
} }
}, },
"fudo-lib_3": { "fudo-lib_3": {
"locked": { "locked": {
"lastModified": 1638315265, "lastModified": 1638990149,
"narHash": "sha256-MoGnuM10hxHehr0TcmG5ssRfj3Xun7xPCVuHFy6yfjo=", "narHash": "sha256-p1T0GMJXIJvTpVdn5nK7RZJX8izkabADJ/LsaL442zI=",
"ref": "master", "ref": "master",
"rev": "976d47cf2d723bf8aefb32780311faf75164abe3", "rev": "c87448ff1365c3d5230690f68d1ba246652581d1",
"revCount": 21, "revCount": 24,
"type": "git", "type": "git",
"url": "https://git.fudo.org/fudo-nix/lib.git" "url": "https://git.fudo.org/fudo-nix/lib.git"
}, },
@ -424,11 +444,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1638317530, "lastModified": 1639002003,
"narHash": "sha256-mz8zv2UJB06A1t2q3ZNiTjBMzSMo+95GpD7qZt7qqBk=", "narHash": "sha256-UORO94EJcJDpNUq+CEYejdZJmm7aCGV4AwFehnM+Vds=",
"ref": "master", "ref": "master",
"rev": "9ae99f0894a55671f11694873a5488779e9ce74e", "rev": "a17886e8e74fbb6978cbd341d1199fdc0aee3f9b",
"revCount": 396, "revCount": 410,
"type": "git", "type": "git",
"url": "ssh://fudo_git@git.fudo.org:2222/fudo-nix/nixos-config.git" "url": "ssh://fudo_git@git.fudo.org:2222/fudo-nix/nixos-config.git"
}, },
@ -505,16 +525,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1637019201, "lastModified": 1638553958,
"narHash": "sha256-lq4gz51fx4m5FXfx1SCB444aEBeaYtLMVm3P18Wi9ls=", "narHash": "sha256-leETjYMtD9y37CvfRSQhIGibcIl4dNVlFkY/8QgqmAM=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "bcf03fa16a1f06b8a0abb27bf49afa8d6fffe8f1", "rev": "6ce1d64073f48b9bc9425218803b1b607454c1e7",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-21.05", "ref": "release-21.11",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -593,16 +613,16 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1638196344, "lastModified": 1638887115,
"narHash": "sha256-fkOqSkfOkl8tqxDd+zJU4kAgyLXp/ouaP+U9gpjEZZs=", "narHash": "sha256-emjtIeqyJ84Eb3X7APJruTrwcfnHQKs55XGljj62prs=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2553aee74fed8c2205a4aeb3ffd206ca14ede60f", "rev": "1bd4bbd49bef217a3d1adea43498270d6e779d65",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "nixos-21.05", "ref": "nixos-21.11",
"type": "indirect" "type": "indirect"
} }
}, },
@ -744,6 +764,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"deployment-common": "deployment-common",
"fudo-entities": "fudo-entities", "fudo-entities": "fudo-entities",
"fudo-nixos": "fudo-nixos", "fudo-nixos": "fudo-nixos",
"fudo-secrets": "fudo-secrets_2", "fudo-secrets": "fudo-secrets_2",

View File

@ -2,7 +2,7 @@
description = "Seattle Fudo NixOps network."; description = "Seattle Fudo NixOps network.";
inputs = { inputs = {
nixpkgs.url = "nixpkgs/nixos-21.05"; nixpkgs.url = "nixpkgs/nixos-21.11";
fudo-secrets.url = "path:/state/secrets"; fudo-secrets.url = "path:/state/secrets";
@ -15,9 +15,14 @@
url = "git+ssh://fudo_git@git.fudo.org:2222/fudo-nix/entities.git"; url = "git+ssh://fudo_git@git.fudo.org:2222/fudo-nix/entities.git";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
deployment-common = {
url = "path:../../common";
flake = false;
};
}; };
outputs = { self, nixpkgs, fudo-nixos, fudo-entities, fudo-secrets } @ inputs: outputs = { self, nixpkgs, fudo-nixos, fudo-entities, fudo-secrets, deployment-common } @ inputs:
with nixpkgs.lib; { with nixpkgs.lib; {
nixopsConfigurations.default = let nixopsConfigurations.default = let
domain = "sea.fudo.org"; domain = "sea.fudo.org";
@ -30,7 +35,7 @@
fudo-entities.entities.hosts; fudo-entities.entities.hosts;
deployment-config-generator = deployment-config-generator =
import ../../common/deployment.nix; import "${deployment-common}/deployment.nix";
in deployment-config-generator { in deployment-config-generator {
inherit inputs deployment-hosts description; inherit inputs deployment-hosts description;
}; };