This commit is contained in:
Generated
+23
@@ -661,10 +661,33 @@
|
|||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"nvim": "nvim",
|
"nvim": "nvim",
|
||||||
|
"scripts": "scripts",
|
||||||
"sops-nix": "sops-nix",
|
"sops-nix": "sops-nix",
|
||||||
"stylix": "stylix"
|
"stylix": "stylix"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"scripts": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1791756354,
|
||||||
|
"narHash": "sha256-oBlr1pCkDwCrHapNpoU+AgwI+3IjV0jzheRMjJyHEeA=",
|
||||||
|
"ref": "main",
|
||||||
|
"rev": "36cef91b740a2e183aae2d2735d22d73951fab52",
|
||||||
|
"shallow": true,
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://git@github.com/hektor/scripts"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"ref": "main",
|
||||||
|
"shallow": true,
|
||||||
|
"type": "git",
|
||||||
|
"url": "ssh://git@github.com/hektor/scripts"
|
||||||
|
}
|
||||||
|
},
|
||||||
"sops-nix": {
|
"sops-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|||||||
@@ -58,6 +58,10 @@
|
|||||||
url = "path:./home/modules/nvim/config";
|
url = "path:./home/modules/nvim/config";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
scripts = {
|
||||||
|
url = "git+ssh://git@github.com/hektor/scripts?shallow=1&ref=main";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
pandoc.enable = true;
|
pandoc.enable = true;
|
||||||
photography.enable = true;
|
photography.enable = true;
|
||||||
reference-manager.enable = true;
|
reference-manager.enable = true;
|
||||||
|
scripts.enable = true;
|
||||||
secrets.enable = true;
|
secrets.enable = true;
|
||||||
shell = {
|
shell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.scripts.enable = lib.mkOption { default = false; };
|
||||||
|
|
||||||
|
config = lib.mkIf config.scripts.enable {
|
||||||
|
home.packages = [ inputs.scripts.packages.${pkgs.stdenv.hostPlatform.system}.default ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user