mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[General+Flake] convert "default" module directory to subflake
Also move flatpak config from packages to desktop
This commit is contained in:
parent
397282c7c6
commit
6d061dce0e
12 changed files with 577 additions and 78 deletions
12
lib/math.nix
Normal file
12
lib/math.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{lib
|
||||
, myLib
|
||||
}:
|
||||
|
||||
rec {
|
||||
log2 = let
|
||||
mylog = x: y: if (x >= 2) then mylog (x / 2) (y + 1) else y;
|
||||
in x: mylog x 0;
|
||||
|
||||
clamp = min_x: max_x: x: lib.min ( lib.max x min_x ) max_x;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue