mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
Compare commits
2 commits
14f5ba5345
...
fae392d3af
Author | SHA1 | Date | |
---|---|---|---|
fae392d3af | |||
919505c43f |
3 changed files with 26 additions and 14 deletions
|
@ -114,7 +114,8 @@ the `--packages/-p` argument for `nix-shell`
|
|||
|
||||
`nix-shell -p` creates a shell using the nixpkgs stdenv (and thus depends on
|
||||
nixpkgs) by calling `pkgs.mkShell`, which includes all packages in the nixpkgs
|
||||
stdenv plus the ones you specified.
|
||||
stdenv plus the ones you specified. It also places you in a Bash shell, and is
|
||||
integrated with Bash only.
|
||||
|
||||
`nix shell` only appends the packages you passed in to the `PATH` environment
|
||||
variable. It is much lighter, as a natural result of not using nixpkgs or its
|
||||
|
@ -122,6 +123,10 @@ stdenv. It also doesn't have as much of a questionable implementation, as it is
|
|||
in C++ and in Nix natively instead of being a Perl script that uses string
|
||||
interpolation to produce Nix expressions.
|
||||
|
||||
However, `nix shell` does NOT replace `nix-shell`, the `nix-shell` replacement
|
||||
is `nix develop`, which does not expose a `--packages` option or assume anything
|
||||
about the way you are creating the devshell passed into it. It also uses flakes.
|
||||
|
||||
## hydra is 17 000 lines of perl
|
||||
|
||||
[Hydra](http://github.com/NixOS/hydra), the Nix-based continuous build system is
|
||||
|
@ -890,7 +895,7 @@ in [ a foo ]
|
|||
However, this behaviour might get removed in the future. But currently, in the
|
||||
Nix version that I am using which is `2.28.3`, it prints this warning instead:
|
||||
|
||||
```text
|
||||
```
|
||||
warning: at «string»:4:6: This expression uses `or` as an identifier in a way that will change in a future Nix release.
|
||||
Wrap this entire expression in parentheses to preserve its current meaning:
|
||||
(a or)
|
||||
|
@ -927,13 +932,18 @@ sandbox.
|
|||
[Cloudscale hydra](https://web.archive.org/web/20220624223053/https://cloudscalehydra.com/)
|
||||
was
|
||||
Graham[^]
|
||||
Christensen's previous failed project.
|
||||
Christensen's previous venture.
|
||||
|
||||
It wasn't exactly a "failed" project, the reason it did not make it far was
|
||||
because Graham, in his infinite wisdom, realized that it wasn't particularly
|
||||
smart trying to manage 17kloc of Perl for a thousand or more users (yes, he did
|
||||
get >1000 pre-registrations!).
|
||||
|
||||
He then went on to create [FlakeHub](https://flakehub.com/), which could be said
|
||||
is the successor to Cloudscale Hydra.
|
||||
is the successor to the ideals of Cloudscale Hydra.
|
||||
|
||||
It is curious that the following links are the only non-automated mentions of
|
||||
the project on the open internet:
|
||||
It however is quite curious that the following links are the only non-automated
|
||||
mentions of the project on the open internet:
|
||||
|
||||
- [Meeting about nixpkgs `cudaPackages` from February 13th, 2025.](https://pad.lassul.us/p/KXm3h1AS-?print-pdf#/)
|
||||
([archive](https://archive.is/fbNMP)) (Search for `cloud-scale hydra`)
|
||||
|
@ -947,6 +957,8 @@ the project on the open internet:
|
|||
|
||||
If you can't find the mentions in these pages, check the archives out.
|
||||
|
||||
Here is a screenshot of the Cloudscale Hydra landing page:
|
||||
|
||||

|
||||
|
||||
## `(_:_) != (_:_)` but `(a:a) == (a:a)`
|
||||
|
|
|
@ -85,8 +85,8 @@ keys:
|
|||
include "/usr/share/keymaps/i386/qwerty/trq.map"
|
||||
|
||||
keycode 23 = i
|
||||
altgr keycode 23 = +icircumflex
|
||||
altgr shift keycode 23 = +Icircumflex
|
||||
altgr keycode 23 = +icircumflex
|
||||
altgr shift keycode 23 = +Icircumflex
|
||||
|
||||
keycode 40 = +dotlessi +Idotabove
|
||||
```
|
||||
|
@ -107,8 +107,8 @@ This is how it is done on NixOS:
|
|||
include "${pkgs.kbd}/share/keymaps/i386/qwerty/trq.map"
|
||||
|
||||
keycode 23 = i
|
||||
altgr keycode 23 = +icircumflex
|
||||
altgr shift keycode 23 = +Icircumflex
|
||||
altgr keycode 23 = +icircumflex
|
||||
altgr shift keycode 23 = +Icircumflex
|
||||
|
||||
keycode 40 = +dotlessi +Idotabove
|
||||
'';
|
||||
|
@ -122,8 +122,8 @@ cat << :end
|
|||
include "/usr/share/kbd/keymaps/i386/qwerty/trq.map"
|
||||
|
||||
keycode 23 = i
|
||||
altgr keycode 23 = +icircumflex
|
||||
altgr shift keycode 23 = +Icircumflex
|
||||
altgr keycode 23 = +icircumflex
|
||||
altgr shift keycode 23 = +Icircumflex
|
||||
|
||||
keycode 40 = +dotlessi +Idotabove
|
||||
:end > /usr/share/kbd/keymaps/i386/qwerty/trq-swapped-i.map
|
||||
|
|
|
@ -22,7 +22,7 @@ on, `hwmon4` under this directory corresponds to the CPU.
|
|||
|
||||
Let's run a `tree`:
|
||||
|
||||
```text
|
||||
```
|
||||
/sys/class/hwmon/hwmon4 -> ../../devices/platform/coretemp.0/hwmon/hwmon4
|
||||
├── device -> ../../../coretemp.0
|
||||
│ ├── driver_override
|
||||
|
@ -169,7 +169,7 @@ Let's run a `tree`:
|
|||
|
||||
Let's `cat` all the `_label` files:
|
||||
|
||||
```text
|
||||
```
|
||||
/sys/class/hwmon/hwmon4/temp1_label:
|
||||
Package id 0
|
||||
/sys/class/hwmon/hwmon4/temp2_label:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue