nix: modernize

This commit is contained in:
raf 2025-01-08 11:08:07 +03:00
commit 0e6979f684
No known key found for this signature in database
GPG key ID: EED98D11B85A2819
5 changed files with 48 additions and 39 deletions

View file

@ -1,6 +1,6 @@
{
description = "Batmon - battery monitor";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = {
self,
@ -11,7 +11,8 @@
pkgsForEach = nixpkgs.legacyPackages;
in {
nixosModules = {
batmon = ./nix/module.nix {inherit self;};
batmon = import ./nix/module.nix self;
default = self.nixosModules.batmon;
};
packages = forEachSystem (system: {