A simple command-line nixie clock which shows the date and time
- A truecolour terminal
cargo install --git https://github.com/NewDawn0/nixie-clock.git
git clone https://github.com/NewDawn0/nixie-clock
nix profile install .
-
Add it as an input to your system flake as follows
{ inputs = { # Your other inputs ... nixie-clock = { url = "github:NewDawn0/nixie-clock"; inputs.nixpkgs.follows = "nixpkgs"; # Optional: If you use nix-systems or rust-overlay inputs.nix-systems.follows = "nix-systems"; inputs.rust-overlay.follows = "rust-overlay"; }; }; }
-
Add the overlay to expose nixie-clock to your pkgs
overlays = [ inputs.nixie-clock.overlays.default ];
-
Then you can either install it in your
environment.systemPackages
usingenvironment.systemPackages = with pkgs; [ nixie-clock ];
or install it to your
home.packages
home.packages = with pkgs; [ nixie-clock ];
$ nixie-clock