commit 56be6b49d5c6204d50d4a003f3dd1cb08ca5b834 Author: DIvan2000 Date: Thu May 7 20:10:15 2026 +0400 first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a357584 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Ignore build outputs from performing a nix-build or `nix build` command +result +result-* + +# Ignore automatically generated direnv output +.direnv + +# Ignore NixOS interactive test driver history +**/.nixos-test-history diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..078ae5e --- /dev/null +++ b/flake.nix @@ -0,0 +1,32 @@ +{ + description = "DIvan package set"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + + ponyfetch = { + url = "git+https://git.divan2000.su/DIvan2000/ponyfetch"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + terminal-oscilloscope = { + url = "git+https://git.divan2000.su/DIvan2000/terminal-oscilloscope"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { nixpkgs, flake-utils, ... }@inputs: + flake-utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + + callPackage = pkgs.callPackage; + in { + packages = { + ponyfetch = inputs.ponyfetch.packages.${system}.default; + } // lib.optionalAttrs (hasPackage inputs.terminal-oscilloscope) { + terminal-oscilloscope = defaultPackage inputs.terminal-oscilloscope; + }; + }); +}