Git Product home page Git Product logo

nixos-homepage's Introduction

Source for nixos.org

GitHub Workflow Status of master branch Number of open GitHub issues Number of open GitHub pull requests Month of last commit Number of all contributors

Code and content for the nixos.org website.

Help us!

There are many ways how you can help:

If you feel lost where and how to contribute, ask the marketing team on the #marketing room on Matrix.

How to help?

To run local development instance follow this steps to start a local server

$ git clone [email protected]:NixOS/nixos-homepage.git
$ cd nixos-homepage
$ nix-shell
[nix-shell]$ npm install
[nix-shell]$ npm run dev

If you have Docker and Docker Compose installed, you can alternatively run

$ docker-compose up

Once everything's ready, you'll be able to access

Open your browser at: http://localhost:4321/

Before creating a pull request make sure that nix-build runs successfully.

Binary cache (Optional)

It can take some time to enter the development environment. To speed up and avoid building from source, you can use a binary cache. The same cache is used to speed up our GitHub Actions.

On NixOS

Add the following to your configuration.nix:

nix.settings.substituters = [ "https://nixos-homepage.cachix.org" ];
nix.settings.trusted-public-keys = [ "nixos-homepage.cachix.org-1:NHKBt7NjLcWfgkX4OR72q7LVldKJe/JOsfIWFDAn/tE=" ];

On non-NixOS

Add the following to the /etc/nix/nix.conf or ~/.config/nix/nix.conf:

substituters = ... https://nixos-homepage.cachix.org
trusted-public-keys = ... nixos-homepage.cachix.org-1:NHKBt7NjLcWfgkX4OR72q7LVldKJe/JOsfIWFDAn/tE=

License

The content of the website is licensed under the Creative Commons Attribution Share Alike 4.0 International license.

The software (including sample code) is licensed under the MIT license.

Some files might have a different license. See the files content for details.

nixos-homepage's People

Contributors

alyssais avatar andir avatar bpiv400 avatar davidak avatar dependabot[bot] avatar djacu avatar domenkozar avatar drupol avatar edolstra avatar fricklerhandwerk avatar garbas avatar github-actions[bot] avatar grahamc avatar infinisil avatar jameysharp avatar jonringer avatar jtojnar avatar milibopp avatar mweinelt avatar raboof avatar raitobezarius avatar rbvermaa avatar ryantm avatar samueldr avatar svanderburg avatar tfc avatar thilobillerbeck avatar tomberek avatar worldofpeace avatar zimbatm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nixos-homepage's Issues

Different logos for each project

It would be awesome if there were a distinct logo for Nix, NixOS etc.

Perhaps the mirrored lambda signs that make up the current logo could be used:

  • nix is a single sign
  • nixpkgs is three signs, like a forest
  • nixos is the circle
  • nixops is intertwined circles like the Olympic rings
  • hydra is a circular tree of signs, like a plasma lightning disk

Site navigation doesn't work on phone

On my phone I get the mobile view, and for nixos and nix that is simply two times the logo, no text.

Furthermore, the projects drop-down shows but doesn't allow clicking on a project.

[Wiki] Port "NixOS Manual" styles to wiki.

Currently the wiki seems to be using base styles, and it has a different feel to it than the manual. Making the wiki have the same look as the manual (at least in terms of typography) would make the wiki more readable.

Add possibility to link to packages

More and more projects link to their packages on github/nixos/nixpkgs - it would be nice (in manner of user experience) to link to the package on nixos.org/nixos/packages. Currently this is not possible.

A simple solution would be to pass the search term via HTTP GET, I think. I would file the PR for this myself, though I'm by no means a JS guy, so I guess I'll struggle hard to accomplish this.

[Wiki] The wiki is down, any page returns 404

If you visit e.g. https://nixos.org/wiki/NixOS_on_Amazon_EC2 (or any other page) you'll get

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404
nixos.org
Sun Apr 3 11:27:41 2016
Apache/2.2.31 (Unix) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2g

500 error when connecting to hydra.nixos.org

DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=hydra;user=hydra;','',...) failed: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"? at /nix/store/z3zxpa6b7wiaxs86117lmk7mr82xfp10-hydra-perl-deps/lib/perl5/site_perl/5.22.1/DBIx/Class/Storage/DBI.pm line 1489. at /nix/store/129hj3i7lafa1p3bm5v5vhvpda8wivkx-hydra-0.1.1234.abcdef/libexec/hydra/lib/Hydra/Helper/CatalystUtils.pm line 357

Option description is truncated

For example, boot.initrd.network.enable:

    boot.initrd.network.enable = mkOption {
      type = types.bool;
      default = false;
      description = ''
        Add network connectivity support to initrd. The network may be
        configured using the <literal>ip</literal> kernel parameter,
        as described in <link
        xlink:href="https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt">the
        kernel documentation</link>.  Otherwise, if
        <option>networking.useDHCP</option> is enabled, an IP address
        is acquired using DHCP.
      '';
    };

is viewed like

Description:        Add network connectivity support to initrd. The network may be configured using the ip kernel parameter, as described in
Default value:      false
Example value:      Not given
Declared in:        nixos/modules/system/boot/initrd-network.nix

Nixos.org/nixos doesn't exist any more

Old links will not end up where they should.

It would be great if that url had a more technical description of nixos, perhaps by simply including part of the manual.

Committing nixpkgs-comit-stats.json? Is this correct?

I did a little editing of the frontpage (changed text, removed the blogs, news, commit lists, to be put elsewhere. But as I'm trying to commit the changes to my github account I noticed that it tries to add the new file "nixpkgs-commit-stats.json".

Shouldn't that file be in .gitignore?

EDIT: Yes... it is inside .gitignore, and yet git wants to commit it. Is there something wrong with my logic today, perhaps?

Heading is too large

The heading is large and renders poorly at many sizes (that I consider reasonable on my laptop). Reducing the font size of same parts makes it somewhat better. I was just hacking around and changed the "The purely functional Linux distribution" to a <h2> and reduced the font size of the introduction 16px.

Related, the navbar collapses even when there is plenty of room to display everything (see the screenshots). Is it possible to change that?

ugly

less_ugly

The wiki logo is squashed.

The NixOS logo on the wiki is not in scale (is vertically squashed). Its resolution is 135x135, but a regular hexagon would have ratio of about 0.87:1. The picture in question is in this repository (logo/nix-wiki.png).

Click on some options in the Options Page fails with JavaScript

Hi,

wanted to search for some options, but if you click on for example

services.httpd.documentRoot
services.httpd.globalRedirect
boot.initrd.luks.devices.*.yubikey
containers.<name>.hostAddress

nothing shows up and you can see a javascript error in debugging console of your browser.

Installation instructions should mention installing Nix is not invasive

I considered installing Nix to test Stack's nix integration (commercialhaskell/stack#2537 (comment)) but was afraid it'd set up a different GHC and create potential configuration conflicts. Given my upcoming deadlines, it makes sense to be most conservative (I've used Gentoo as my main Linux distro time ago and customized lots of it, but these days I have another job to focus on).

It turns out it only installs nix- prefixed binaries, so there's no such risk, but the download page could tell me that.

More in general, I'd like to know what happens by installing Nix before I do decide to install it.

Get a link to a manual section

In [Python docs] if you see a section heading, you move your mouse pointer to it and link “¶” appears. If you press on it, your browser's address bar now contains full link to that section. Compare:

Is it possible to create such convenience links in Nix and NixOS manuals? This would improve manual UX and make easier to link to specific portions of the manual.

Options with null default values don't expand in Firefox 35.0.1

I went to the options page and searched for users.extraUsers.<name?>.passwordFile, but clicking on it wouldn't expand the details. There was an error on line 276 of options.html, which tests v._type == "literalExample". When the option's default is null, v is null and that is an error.

Actually, I don't know if it only happens in default values, they were the only examples I could find (e.g all the password options in users.extraUsers).

"Search NixOS packages" broken Nix expression links

Commits widget does not show commits after oct-08

On the nixos homepage, the widget displaying the newest nixpkgs commits somehow got stuck on oct-08. Clicking on "more" leads to the github page of current commits, showing that of course there are many commits every day, also after oct-08.

CSS hyphenation

On the home page especially, for non-widescreen window sizes, the columns can get too narrow and cause irregular whitespacing and readability problems. While this does not fix it in Chrome because it's not supported, this would adequately address the issue for now:

p {
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  hyphens: auto;
}

NixOS manual should have a single page variant.

Splitting the documentation is nice, because we have all these source links, but this breaks the browser search. We should enable both a single HTML page and the multi-page documentation as well.

Having a website search box is not an option, as this implies spending extra time loading even more pages which might not have the result/context that might interest me.

"Search NixOS packages" doesn't show License

checked the first 15 packages, always "License: Not specified" but it is in the Nix expression.

for example:

https://github.com/NixOS/nixpkgs/blob/release-15.09/pkgs/games/0ad/default.nix#L118
https://github.com/NixOS/nixpkgs/blob/release-15.09/pkgs/games/pong3d/default.nix#L20
https://github.com/NixOS/nixpkgs/blob/release-15.09/pkgs/applications/audio/aacgain/default.nix#L42

https://github.com/NixOS/nixos-homepage/blob/master/nixos/packages.tt#L194

source for data packages.json.gz:

"license":[  
            {  
               "fullName":"GNU General Public License v2.0 only",
               "shortName":"gpl2",
               "spdxId":"GPL-2.0",
               "url":"http://spdx.org/licenses/GPL-2.0"
            },
            {  
               "fullName":"GNU Library General Public License v2.1 only",
               "shortName":"lgpl21",
               "spdxId":"LGPL-2.1",
               "url":"http://spdx.org/licenses/LGPL-2.1"
            },
            {  
               "fullName":"MIT License",
               "shortName":"mit",
               "spdxId":"MIT",
               "url":"http://spdx.org/licenses/MIT"
            },
            {  
               "fullName":"Creative Commons Attribution Share Alike 3.0",
               "shortName":"cc-by-sa-30",
               "spdxId":"CC-BY-SA-3.0",
               "url":"http://spdx.org/licenses/CC-BY-SA-3.0"
            },
            {  
               "fullName":"zlib License",
               "shortName":"zlib",
               "spdxId":"Zlib",
               "url":"http://spdx.org/licenses/Zlib"
            }
         ],

output comma seperated list of spdxId.

Show Haskell packages in package search page

Because Haskell are no longer visible to nix-env -qa, they don't show up in the package search page anymore either. Would be nice if we can make them show up. Basically this would require adding the result of nix-env -qaP -A haskellPackages to packages.json.

Nix, NixOS etc pages are not visually distinct

When you click on Nix you get almost the same view as the home page.

Perhaps Nix needs a different logo, maybe the same one in gold or only a part so that it shows nixos is made from nix.

Add Package search to Nix homepage

Select channel: Linux or Mac, stable or unstable

stable unstable
Linux nixos-17.09 nixos-unstable
Mac nixpkgs-17.09-darwin nixpkgs-unstable

since unstable channels are very active, the packages.json.gz should get generated at least once a day from github source, better every hour.

Insecure content warnings in Chrome

Here are some resources causing insecure content warnings in Chrome when visiting various pages on https://nixos.org:

  • http://img2.wikia.nocookie.net/__cb20110509221950/cartoonnetwork/images/a/a2/Ir001.gif
  • http://www.ohloh.net/p/25550/widgets/project_basic_stats.js
  • http://farm1.static.flickr.com/185/367433201_9ee5ad0986_m.jpg
  • http://www.icfpconference.org/icfp2008/icfplarge.gif
  • http://www.google.com/search (this one is the site search)

Install script not working on RHEL anymore

Since dc30713 the install script fails on rhel with:

you do not have 'shasum' installed, which I need to verify the binary tarball

On rhel 7.2, shasum is not available (at least not directly) but there are sha512sum and cie.

EC2 Page is Out of Date

Not sure if this is the right place, but https://nixos.org/wiki/NixOS_on_Amazon_EC2 is out of date seemingly, specifically nixos-rebuild pull results in:

/run/current-system/sw/bin/nixos-rebuild: unknown option `pull'

I know it's a Wiki, I'd fix it if I knew enough yet to know what the right thing is now :) (looks like nixos-rebuild --upgrade switch might be it?)

(In an unrelated note which probably deserves to be elsewhere, all the tools [well the two there] seem to have --help but no -h. Is this intentional?)

Documentation for readDir incorrect

I couldn't find the source file for this, so I figured I'd make a ticket.

On this page, the following is stated:

builtins.readDir path

Return the contents of the directory path as a set mapping directory entries to the corresponding file type. For instance, if directory A contains a regular file B and another directory C, then builtins.readDir ./A will return the set

{ A = "regular"; B = "directory"; }

... however, wouldn't this be { B = "regular"; C = "directory" }?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.