From 93fc78685925083bd7fa1ce488b468fb9ecb78ac Mon Sep 17 00:00:00 2001 From: Callum Leslie Date: Tue, 10 Sep 2024 20:51:16 +0100 Subject: [PATCH] add my custom packages --- flake.lock | 328 ++++++++++++++++++++++++++++++-- flake.nix | 16 ++ hosts/artemis/configuration.nix | 2 + packages/default.nix | 2 + 4 files changed, 335 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index 47a3157..435842d 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "advisory-db": { + "flake": false, + "locked": { + "lastModified": 1725883717, + "narHash": "sha256-QifFNLfu5bzKPO4iznCj1h+nHhqGZ8NR2Lo7tzh9FRc=", + "owner": "rustsec", + "repo": "advisory-db", + "rev": "7fbf1e630ae52b7b364791a107b5bee5ff929496", + "type": "github" + }, + "original": { + "owner": "rustsec", + "repo": "advisory-db", + "type": "github" + } + }, "agenix": { "inputs": { "darwin": [], @@ -168,6 +184,21 @@ } }, "crane": { + "locked": { + "lastModified": 1725409566, + "narHash": "sha256-PrtLmqhM6UtJP7v7IGyzjBFhbG4eOAHT6LPYOFmYfbk=", + "owner": "ipetkov", + "repo": "crane", + "rev": "7e4586bad4e3f8f97a9271def747cf58c4b68f3c", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, + "crane_2": { "inputs": { "nixpkgs": [ "omnix", @@ -332,6 +363,22 @@ } }, "flake-compat_5": { + "flake": false, + "locked": { + "lastModified": 1688025799, + "narHash": "sha256-ktpB4dRtnksm9F5WawoIkEneh1nrEvuxb5lJFt1iOyw=", + "owner": "nix-community", + "repo": "flake-compat", + "rev": "8bf105319d44f6b9f0d764efa4fdef9f1cc9ba1c", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_6": { "flake": false, "locked": { "lastModified": 1673956053, @@ -347,7 +394,7 @@ "type": "github" } }, - "flake-compat_6": { + "flake-compat_7": { "flake": false, "locked": { "lastModified": 1673956053, @@ -445,6 +492,39 @@ "type": "indirect" } }, + "flake-parts_5": { + "inputs": { + "nixpkgs-lib": "nixpkgs-lib_2" + }, + "locked": { + "lastModified": 1698882062, + "narHash": "sha256-HkhafUayIqxXyHH1X8d9RDl1M2CkFgZLjKD3MzabiEo=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "8c9fa2545007b49a5db5f650ae91f227672c3877", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-root": { + "locked": { + "lastModified": 1692742795, + "narHash": "sha256-f+Y0YhVCIJ06LemO+3Xx00lIcqQxSKJHXT/yk1RTKxw=", + "owner": "srid", + "repo": "flake-root", + "rev": "d9a70d9c7a5fd7f3258ccf48da9335e9b47c3937", + "type": "github" + }, + "original": { + "owner": "srid", + "repo": "flake-root", + "type": "github" + } + }, "flake-schemas": { "locked": { "lastModified": 1719857163, @@ -494,6 +574,24 @@ } }, "flake-utils_3": { + "inputs": { + "systems": "systems_3" + }, + "locked": { + "lastModified": 1710146030, + "narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "flake-utils_4": { "locked": { "lastModified": 1667395993, "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", @@ -508,7 +606,7 @@ "type": "github" } }, - "flake-utils_4": { + "flake-utils_5": { "inputs": { "systems": [ "stylix", @@ -833,16 +931,40 @@ "type": "github" } }, + "nish": { + "inputs": { + "advisory-db": "advisory-db", + "crane": "crane", + "flake-utils": "flake-utils_2", + "nixpkgs": [ + "unstable" + ], + "rust-overlay": "rust-overlay" + }, + "locked": { + "lastModified": 1725999292, + "narHash": "sha256-nrzEuty76ZWGno9w74j7cDekvaRn9gtHN0gsuSyqRpw=", + "owner": "callumio", + "repo": "nish", + "rev": "fb22da828f4aad704123dd8dd31404eb545e9df3", + "type": "github" + }, + "original": { + "owner": "callumio", + "repo": "nish", + "type": "github" + } + }, "nix": { "inputs": { - "flake-compat": "flake-compat_5", + "flake-compat": "flake-compat_6", "flake-parts": [ "omnix", "flake-parts" ], "flake-schemas": "flake-schemas", "libgit2": "libgit2", - "nixpkgs": "nixpkgs_3", + "nixpkgs": "nixpkgs_4", "nixpkgs-23-11": "nixpkgs-23-11", "nixpkgs-regression": "nixpkgs-regression", "pre-commit-hooks": "pre-commit-hooks" @@ -884,6 +1006,22 @@ "type": "github" } }, + "nix-visualize": { + "flake": false, + "locked": { + "lastModified": 1687577587, + "narHash": "sha256-Z1r8XHszoUnQinl63yXvQG6Czp5HnYNG37AY+EEiT4w=", + "owner": "craigmbooth", + "repo": "nix-visualize", + "rev": "cafaba50cd63ba9c759c56af71fd0d22fd60a548", + "type": "github" + }, + "original": { + "owner": "craigmbooth", + "repo": "nix-visualize", + "type": "github" + } + }, "nixinate": { "inputs": { "nixpkgs": [ @@ -948,6 +1086,24 @@ "url": "https://github.com/NixOS/nixpkgs/archive/356624c12086a18f2ea2825fed34523d60ccc4e3.tar.gz" } }, + "nixpkgs-lib_2": { + "locked": { + "dir": "lib", + "lastModified": 1698611440, + "narHash": "sha256-jPjHjrerhYDy3q9+s5EAsuhyhuknNfowY6yt6pjn9pc=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "0cbe9f69c234a7700596e943bfae7ef27a31b735", + "type": "github" + }, + "original": { + "dir": "lib", + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, "nixpkgs-regression": { "locked": { "lastModified": 1643052045, @@ -997,6 +1153,22 @@ } }, "nixpkgs_3": { + "locked": { + "lastModified": 1711163522, + "narHash": "sha256-YN/Ciidm+A0fmJPWlHBGvVkcarYWSC+s3NTPk/P+q3c=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "44d0940ea560dee511026a53f0e2e2cde489b4d4", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_4": { "locked": { "lastModified": 1717432640, "narHash": "sha256-+f9c4/ZX5MWDOuB1rKoWj+lBNm0z0rs4CK47HBLxy1o=", @@ -1067,9 +1239,39 @@ "type": "github" } }, + "nsbm": { + "inputs": { + "flake-parts": [ + "flake-parts" + ], + "nixpkgs": [ + "unstable" + ], + "sbomnix": "sbomnix", + "systems": [ + "systems" + ], + "treefmt-nix": [ + "treefmt-nix" + ] + }, + "locked": { + "lastModified": 1725996481, + "narHash": "sha256-dDobRr906wky/lH4hKkKAEnxmrnUzOYL0IuuCPv7t6Y=", + "owner": "callumio", + "repo": "nsbm", + "rev": "6146544f3ca96c1d8d27711ee1278d1973031df8", + "type": "github" + }, + "original": { + "owner": "callumio", + "repo": "nsbm", + "type": "github" + } + }, "nuschtosSearch": { "inputs": { - "flake-utils": "flake-utils_2", + "flake-utils": "flake-utils_3", "nixpkgs": [ "nixvim", "nixvim", @@ -1133,7 +1335,7 @@ "omnix", "nix" ], - "flake-utils": "flake-utils_3", + "flake-utils": "flake-utils_4", "gitignore": [ "omnix", "nix" @@ -1212,25 +1414,27 @@ "flake-compat": "flake-compat", "flake-parts": "flake-parts", "home-manager": "home-manager_2", + "nish": "nish", "nixinate": "nixinate", "nixpkgs": "nixpkgs", "nixvim": "nixvim", + "nsbm": "nsbm", "omnix": "omnix", "pre-commit-hooks": "pre-commit-hooks_2", "stylix": "stylix", - "systems": "systems_4", - "treefmt-nix": "treefmt-nix_2", + "systems": "systems_5", + "treefmt-nix": "treefmt-nix_3", "unstable": "unstable" } }, "rust-flake": { "inputs": { - "crane": "crane", + "crane": "crane_2", "nixpkgs": [ "omnix", "nixpkgs" ], - "rust-overlay": "rust-overlay" + "rust-overlay": "rust-overlay_2" }, "locked": { "lastModified": 1725522236, @@ -1248,6 +1452,27 @@ } }, "rust-overlay": { + "inputs": { + "nixpkgs": [ + "nish", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1725935143, + "narHash": "sha256-mVtTVQMlXkydSXVwFClE0ckxHrOQ9nb2DrCjNwW5pUE=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "c3c175c74cd0e8c2c40a0e22bc6e3005c4d28d64", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "rust-overlay_2": { "flake": false, "locked": { "lastModified": 1725243956, @@ -1263,6 +1488,30 @@ "type": "github" } }, + "sbomnix": { + "inputs": { + "flake-compat": "flake-compat_5", + "flake-parts": "flake-parts_5", + "flake-root": "flake-root", + "nix-visualize": "nix-visualize", + "nixpkgs": "nixpkgs_3", + "treefmt-nix": "treefmt-nix_2", + "vulnix": "vulnix" + }, + "locked": { + "lastModified": 1724929558, + "narHash": "sha256-3CkgwrPws+7Z+mEJbq4f8SNo2b4hrta+vdCCGoNrpiU=", + "owner": "tiiuae", + "repo": "sbomnix", + "rev": "444ba45f30dad718e51b7043418cff5ef83583ea", + "type": "github" + }, + "original": { + "owner": "tiiuae", + "repo": "sbomnix", + "type": "github" + } + }, "stylix": { "inputs": { "base16": "base16", @@ -1272,8 +1521,8 @@ "base16-kitty": "base16-kitty", "base16-tmux": "base16-tmux", "base16-vim": "base16-vim", - "flake-compat": "flake-compat_6", - "flake-utils": "flake-utils_4", + "flake-compat": "flake-compat_7", + "flake-utils": "flake-utils_5", "gnome-shell": "gnome-shell", "home-manager": [ "home-manager" @@ -1281,7 +1530,7 @@ "nixpkgs": [ "unstable" ], - "systems": "systems_3" + "systems": "systems_4" }, "locked": { "lastModified": 1725290973, @@ -1357,6 +1606,21 @@ "type": "github" } }, + "systems_5": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ @@ -1380,6 +1644,28 @@ } }, "treefmt-nix_2": { + "inputs": { + "nixpkgs": [ + "nsbm", + "sbomnix", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1699786194, + "narHash": "sha256-3h3EH1FXQkIeAuzaWB+nK0XK54uSD46pp+dMD3gAcB4=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "e82f32aa7f06bbbd56d7b12186d555223dc399d1", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, + "treefmt-nix_3": { "inputs": { "nixpkgs": [ "nixpkgs" @@ -1414,6 +1700,22 @@ "repo": "nixpkgs", "type": "github" } + }, + "vulnix": { + "flake": false, + "locked": { + "lastModified": 1676379453, + "narHash": "sha256-KXvmnaMjv//zd4aSwu4qmbon1Iyzdod6CPms7LIxeVU=", + "owner": "henrirosten", + "repo": "vulnix", + "rev": "ad28b2924027a44a9b81493a0f9de1b0e8641005", + "type": "github" + }, + "original": { + "owner": "henrirosten", + "repo": "vulnix", + "type": "github" + } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 90a1e1b..af4b7cf 100644 --- a/flake.nix +++ b/flake.nix @@ -159,5 +159,21 @@ treefmt-nix.url = "github:numtide/treefmt-nix"; treefmt-nix.inputs.nixpkgs.follows = "nixpkgs"; + + # my custom programs + nish = { + url = "github:callumio/nish"; + inputs.nixpkgs.follows = "unstable"; + }; + + nsbm = { + url = "github:callumio/nsbm"; + inputs = { + nixpkgs.follows = "unstable"; + treefmt-nix.follows = "treefmt-nix"; + flake-parts.follows = "flake-parts"; + systems.follows = "systems"; + }; + }; }; } diff --git a/hosts/artemis/configuration.nix b/hosts/artemis/configuration.nix index 2021cd0..7915feb 100644 --- a/hosts/artemis/configuration.nix +++ b/hosts/artemis/configuration.nix @@ -36,6 +36,8 @@ killall gcc pkg-config + nish + nsbm ]; environment = { diff --git a/packages/default.nix b/packages/default.nix index 028509c..d7249c1 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -9,6 +9,8 @@ agenix = inputs'.agenix.packages.default; vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;}; devour-flake = pkgs.callPackage inputs.devour-flake {}; + nish = inputs'.nish.packages.default; + nsbm = inputs'.nsbm.packages.default; jellyfin-ffmpeg = pkgs.jellyfin-ffmpeg.override { ffmpeg_6-full = pkgs.ffmpeg_6-full.override { withMfx = false;