mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-09 18:27:00 +00:00
18 lines
441 B
Nix
18 lines
441 B
Nix
|
{ lib, inputs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
inherit (inputs) darwin nixpkgs;
|
||
|
in
|
||
|
|
||
|
{
|
||
|
config = {
|
||
|
system.darwinVersionSuffix = ".${darwin.shortRev or "dirty"}";
|
||
|
system.darwinRevision = mkIf (darwin ? rev) darwin.rev;
|
||
|
|
||
|
system.nixpkgsVersionSuffix = ".${substring 0 8 (nixpkgs.lastModifiedDate or nixpkgs.lastModified or "19700101")}.${nixpkgs.shortRev or "dirty"}";
|
||
|
system.nixpkgsRevision = mkIf (nixpkgs ? rev) nixpkgs.rev;
|
||
|
};
|
||
|
}
|