feat(scripts): declare scripts module
check / lint (push) Successful in 47s

This commit is contained in:
2026-10-12 23:28:53 +02:00
parent 14f8c83cf3
commit 034a010547
4 changed files with 43 additions and 0 deletions
Generated
+23
View File
@@ -661,10 +661,33 @@
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2",
"nvim": "nvim",
"scripts": "scripts",
"sops-nix": "sops-nix",
"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": {
"inputs": {
"nixpkgs": [
+4
View File
@@ -58,6 +58,10 @@
url = "path:./home/modules/nvim/config";
inputs.nixpkgs.follows = "nixpkgs";
};
scripts = {
url = "git+ssh://git@github.com/hektor/scripts?shallow=1&ref=main";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
+1
View File
@@ -49,6 +49,7 @@
pandoc.enable = true;
photography.enable = true;
reference-manager.enable = true;
scripts.enable = true;
secrets.enable = true;
shell = {
enable = true;
+15
View File
@@ -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 ];
};
}