Jump to content

Sandbox: Difference between revisions

From NixOS Wiki
imported>Makefu
Pigs (talk | contribs)
m Add category contributions
 
(66 intermediate revisions by 8 users not shown)
Line 1: Line 1:
= Sandbox =
{{DISPLAYTITLE:The amazing SANDBOX!}}== Sandbox ==
== What is a sandbox? ==
=== What is a sandbox? ===
The sandbox page in this wiki is intended to test thing and toy around with syntax and features.
The sandbox page in this wiki is intended to test things and toy around with syntax and features.
Do not expect your content to stay here very long as any registered user can overwrite it at any time.
Do not expect your content to stay here very long as any registered user can overwrite it at any time.


Please keep this header intact and do all you testing below :)
Please keep this header intact and do all your testing below :)


= test =
[[Category:Contributions]]


{{warning}}
{{warning|text=Here is a long warning, which is sufficiently wordy to run onto a second line (unless you have a really large screen!), which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.}}


{{Notice|text=test}}
<hr />
This is a link to the meta-article Discussion: [[:Category:Discussion|Discussion]]
{{outdated}}
Sand that box
Shoop da whoop!
Herp Derp <syntaxhighlight lang="python" inline>shop</syntaxhighlight> da whoop


== Pything highlighting test ==
<!--
<syntaxhighlight lang="python" line='line'>
Cleaned up last 2023-09-09--><syntaxHighlight lang=shell>
def quickSort(arr):
ls -al ${date}
less = []
</syntaxHighlight>
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pass
</syntaxhighlight>


{{file|test.py|python|<nowiki>
<syntaxHighlight lang=nix>
def quickSort(arr):  
{ config, lib, pkgs, ... }:
less = []
{
pivotList = []
  imports = [
more = []
    ./hardware-configuration.nix
if len(arr) <= 1:
    # We rely on `nixos-hardware` to deal with HW quirks. This requires the `nixos-hardware` channel to be configured.
return arr
</syntaxHighlight>put sand in the box today. Retrieve it in years of scarcity
else:
pass
</nowiki>}}
 
{{#if: | yes | no}}
{{#if: string | yes | no}}
{{#if:      | yes | no}}
{{#if: | yes | no}}
{{#if: string | yes | no}}
{{#if:      | yes | no}}
{{#if: | yes | no}}
{{#if: string | yes | no}}
{{#if:      | yes | no}}

Latest revision as of 18:23, 18 May 2025

Sandbox

What is a sandbox?

The sandbox page in this wiki is intended to test things and toy around with syntax and features. Do not expect your content to stay here very long as any registered user can overwrite it at any time.

Please keep this header intact and do all your testing below :)



ls -al ${date}
{ config, lib, pkgs, ... }:
{
  imports = [
    ./hardware-configuration.nix
    # We rely on `nixos-hardware` to deal with HW quirks. This requires the `nixos-hardware` channel to be configured.

put sand in the box today. Retrieve it in years of scarcity