use gibbr.org derivation target for optional cv

Changed files
+12 -36
+11 -29
flake.lock
···
{
"nodes": {
"cv": {
-
"inputs": {
-
"flake-utils": [
-
"flake-utils"
-
],
-
"nixpkgs": [
-
"nixpkgs"
-
]
-
},
+
"flake": false,
"locked": {
-
"lastModified": 1666452494,
-
"narHash": "sha256-EfeA+ndzlYwQadp4bq+0tTfKSGHqOC1gFis20p1XZnQ=",
-
"ref": "main",
-
"rev": "a21b3ad535c7f7ceb5b768c0ccc71d9438fa290e",
-
"revCount": 24,
-
"type": "git",
-
"url": "ssh://git@github.com/RyanGibb/cv.git"
+
"lastModified": 1,
+
"narHash": "sha256-TIEAoFhFsRyU0zX8sD6cyMgr3lujKfVnb23wKQSKuKU=",
+
"path": "/nix/store/rb5hxmyjcvsy2s1aq3145aa8ch6k7dhi-source/flake.nix",
+
"type": "path"
},
"original": {
-
"ref": "main",
-
"type": "git",
-
"url": "ssh://git@github.com/RyanGibb/cv.git"
+
"path": "/nix/store/rb5hxmyjcvsy2s1aq3145aa8ch6k7dhi-source/flake.nix",
+
"type": "path"
}
},
"flake-compat": {
···
"type": "github"
},
"original": {
-
"owner": "numtide",
-
"repo": "flake-utils",
-
"type": "github"
+
"id": "flake-utils",
+
"type": "indirect"
}
},
"gibbrdotorg": {
"inputs": {
-
"cv": [
-
"cv"
-
],
+
"cv": "cv",
"flake-compat": "flake-compat",
-
"flake-utils": [
-
"flake-utils"
-
],
+
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
]
···
},
"root": {
"inputs": {
-
"cv": "cv",
-
"flake-utils": "flake-utils",
"gibbrdotorg": "gibbrdotorg",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs",
+1 -7
flake.nix
···
home-manager.inputs.nixpkgs.follows = "nixpkgs";
gibbrdotorg.url = "github:RyanGibb/gibbr.org";
gibbrdotorg.inputs.nixpkgs.follows = "nixpkgs";
-
gibbrdotorg.inputs.cv.follows = "cv";
-
gibbrdotorg.inputs.flake-utils.follows = "flake-utils";
-
flake-utils.url = "github:numtide/flake-utils";
-
cv.url = "git+ssh://git@github.com/RyanGibb/cv.git?ref=main";
-
cv.inputs.nixpkgs.follows = "nixpkgs";
-
cv.inputs.flake-utils.follows = "flake-utils";
};
outputs = { self, nixpkgs, nixpkgs-unstable, home-manager, gibbrdotorg, ... }@inputs: {
···
(final: prev: {
unstable = import nixpkgs-unstable { inherit system; config.allowUnfree = true; };
# `gibbrdotorg.nixosModules.default` uses `pkgs."gibbr.org"`
-
"gibbr.org" = gibbrdotorg.packages.${system}.default;
+
"gibbr.org" = gibbrdotorg.packages.${system}.with-cv;
})
]; in
import nixpkgs { inherit overlays system; config.allowUnfree = true; };