smooooth/flake.nix
2025-05-21 18:08:49 +10:00

46 lines
1.0 KiB
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nix-systems.url = "github:nix-systems/default-linux";
};
outputs =
inputs:
with inputs;
let
forAllSystems =
function:
nixpkgs.lib.genAttrs (import nix-systems) (system: function nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (pkgs: {
default = pkgs.writeShellApplication {
name = "smooooth";
runtimeInputs = builtins.attrValues {
inherit (pkgs)
polkit
gnugrep
coreutils
libnotify
inotify-tools
nix
;
};
text = builtins.readFile ./smooooth.sh;
};
});
nixosModules.smooooth =
{
config,
options,
pkgs,
lib,
...
}:
{
imports = [ ./module.nix ];
services.smooooth.package = self.packages.${pkgs.system}.default;
};
};
}