All Projects → chaoflow → Nixos Configurations

chaoflow / Nixos Configurations

Labels

Projects that are alternatives of or similar to Nixos Configurations

Nix Home
Nix home environment
Stars: ✭ 38 (-34.48%)
Mutual labels:  nix
Workshops
Stars: ✭ 47 (-18.97%)
Mutual labels:  nix
Snabblab Nixos
NixOS configuration for the Snabb Lab
Stars: ✭ 53 (-8.62%)
Mutual labels:  nix
Nix Rehash
Nix development utils that will blow up your mind
Stars: ✭ 41 (-29.31%)
Mutual labels:  nix
Nixery
Container registry which transparently builds images using the Nix package manager
Stars: ✭ 1,023 (+1663.79%)
Mutual labels:  nix
Backerei
Automated reward payment & account management for Tezos bakers.
Stars: ✭ 51 (-12.07%)
Mutual labels:  nix
Nixdroid
building aosp roms (e.g. LineageOS) with nix. because why not?
Stars: ✭ 34 (-41.38%)
Mutual labels:  nix
Hs Nix Template
A Haskell project template that can be built with nix and developed by ghcid and cabal-install.
Stars: ✭ 57 (-1.72%)
Mutual labels:  nix
Rust Overlay
Pure and reproducible nix overlay for binary distributed rust toolchains
Stars: ✭ 46 (-20.69%)
Mutual labels:  nix
Neutron
🌠 Purely functional Apache Pulsar client for Scala built on top of Fs2
Stars: ✭ 53 (-8.62%)
Mutual labels:  nix
Dotfiles
💻 Public repo for my personal dotfiles
Stars: ✭ 43 (-25.86%)
Mutual labels:  nix
Base16 Zathura
base16 colors for zathura
Stars: ✭ 44 (-24.14%)
Mutual labels:  nix
Idempotent Desktop
🛸 NixOS, Xmonad, Neovim
Stars: ✭ 51 (-12.07%)
Mutual labels:  nix
Flake Compat
Stars: ✭ 41 (-29.31%)
Mutual labels:  nix
Nix Hs Hello Windows
Cross compiling Hello World (haskell) to Windows using nix.
Stars: ✭ 55 (-5.17%)
Mutual labels:  nix
Nix Query Tree Viewer
GTK viewer for the output of `nix-store --query --tree`
Stars: ✭ 36 (-37.93%)
Mutual labels:  nix
Nix Dotfiles
My personal nix and nixos configuration
Stars: ✭ 48 (-17.24%)
Mutual labels:  nix
Homelab
Configuration management for Matt Layher's machines. MIT Licensed.
Stars: ✭ 57 (-1.72%)
Mutual labels:  nix
Nix Gitignore
superseded / unmaintained
Stars: ✭ 56 (-3.45%)
Mutual labels:  nix
Microgram
ABANDONED
Stars: ✭ 52 (-10.34%)
Mutual labels:  nix

NixOS Configuration

Configuration and description of my nixos configuration. If you have some nice ideas how to improve, feel free to fork and let me know about your changes or just write me an email.

Also if I am explaining something wrong, please let me know.

Enjoy NixOS!

How I use this config::

% ls -l /etc/nixos total 8K drwx------ 3 root root 4096 Feb 13 2011 cfg-private/ drwxr-xr-x 4 cfl cfl 4096 Jul 16 00:50 cfg-public/ lrwxrwxrwx 1 root root 32 Jan 12 2012 configuration.nix -> cfg-public/configuration-eve.nix

cfg-public is the nixos-configurations repo, cfg-private contains credentials for e.g. postfix smtp delivery.

Hardware

Laptop, Lenovo x201s, Core i7 L640, WXGA+ screen

lspci::

00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06) 00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06) 00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06) 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06) 00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 06) 00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6) 00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06) 00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06) 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06) 00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06) 02:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35) ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02) ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02) ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02) ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02) ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02) ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)

Software

  • display manager: slim
  • window manager: xmonad
  • mailing: postfix, offlineimap, notmuch, emacs
  • calendar: emacs, orgmode
  • browser: conkeror, firefox, chrome

Dealing with non-NixOS builds

NixOS does not have /usr, instead there are profiles.

You can define environments_, and use them to create profiles::

$ nix-env -p $NIX_USER_PROFILE_DIR/py27 -i py27env

The same, but using a wrapper_::

$ pnix-env py27 -i py27env

To use the environment, I use another wrapper_::

$ py27env python bootstrap.py
$ py27env python ./bin/buildout

It can also be sourced::

$ source ~/bin/py27env

More on this you can find here_.

.. _environments: https://github.com/chaoflow/skel/blob/master/.nixpkgs/config.nix .. _wrapper: https://github.com/chaoflow/skel/blob/master/bin/pnix-env .. _another wrapper: https://github.com/chaoflow/skel/blob/master/bin/py27env .. _here: http://wiki.nixos.org/wiki/Howto_keep_multiple_packages_up_to_date_at_once

Advantages ^^^^^^^^^^

  • rollback in case something is broken

  • possibility for having dedicated build environments

  • Packages that search things in /usr still won't work, but you can use one such profile and link it to /usr. However, better would be to patch the offending packages.

FAQ

Q: How can I get a shell in an nix build environment? A: "exit 1" in the corresponding phase + nix-env -K

  1. "exit 1" in the corresponding phase
  2. nix-env -K -> will print the temp dir that is left over

or:

nix-build -K -A emacs23Packages.org /etc/nixos/nixpkgs/default.nix

TODO

  • emacs speedup man pages

  • create config dir in nixos svn and point to github, wait for github migration

  • suspend and hibernate vie Fn-, used to work via awesome mappings

  • (semi-)automatic backup

  • hibernate on very low battery

  • modularize config so generic parts can be reused by others directly

  • grub menu: indicate number of profile used as default, eg. in brackets

Issues ^^^^^^

  • iwconfig wlan0 mode ad-hoc (with >3_0?)

  • notmuch asks twice for passphrase, probably something about the gpg-agent

  • sudo does not remember me after system restart, /var/run/sudo is on tmpfs

  • anacron or is it somehow else ensured that commands are run, if powered off at given time

  • collisions in system-environment, priorization?

  • mail (from mailutils) expects /usr/bin/sendmail

  • postfix issues several warnings

  • postfix, received header (Local time zone must be set--see zic manual page)

  • postfix, verify server certificate

  • postfix, check whether it runs chrooted

  • postconf: smtp_sasl_tls_security_options = $var_smtp_sasl_opts ?! manually overwritten

nice to have ^^^^^^^^^^^^

  • get pm-suspend-hybrid to work, I think it does hibernate but then only suspends. Good if you forget that your laptop is in suspend for a couple of days. On the other hand, hibernate and resume from it is fast enough. so basically no need for suspend.

  • pm-powersave true|false support?

  • package qbittorrent

  • how could profiles be tested? including then packaged vim plugins, zc.buildouts depending on them, ... Would be great to build a new profile and automatically test it

  • can system profiles be labelled so they show up more meaningful in grub?

  • replace rsyslog with something that buffers and only rarely writes to disk (old, from ubuntu)

  • check sata link, host1 does not like min_power or something sets them to max_performance again (old, from ubuntu)

  • console keymap (alt, ctrl on caps)

  • mail relay should pretend mails coming via submission are locally generated to hide ip of the client sending it (server issue, not nixos related)

  • nix store optimise reports far less savings than achieved::

    [[email protected]:~]# df -h
    Filesystem Size Used Avail Use% Mounted on /dev/mapper/eve-nixos 7.9G 5.0G 2.6G 67% / none 3.9G 2.0M 3.9G 1% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm none 3.9G 720K 3.9G 1% /var/run /dev/mapper/eve-home 119G 100G 14G 89% /home

    [[email protected]:~]# nix-store --optimise skipping suspicious writable file /nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.ccwmap' skipping suspicious writable file/nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.ofmap' skipping suspicious writable file /nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.pcimap' skipping suspicious writable file/nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.seriomap' skipping suspicious writable file /nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.symbols' skipping suspicious writable file/nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.ieee1394map' skipping suspicious writable file /nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.isapnpmap' skipping suspicious writable file/nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.alias' skipping suspicious writable file /nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.inputmap' skipping suspicious writable file/nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.dep' skipping suspicious writable file `/nix/store/h531fraz114nyf7bh15aqfdk9nif6j8q-linux-2.6.36.2/lib/modules/2.6.36.2/modules.usbmap' 816411305 bytes (778.59 MiB, 3690712 blocks) freed by hard-linking 308398 files; there are 308398 files with equal contents out of 404000 files in total

    [[email protected]:~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/eve-nixos 7.9G 3.2G 4.3G 43% / none 3.9G 2.0M 3.9G 1% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm none 3.9G 720K 3.9G 1% /var/run /dev/mapper/eve-home 119G 100G 14G 89% /home

Credits

A big thank you for patient support via irc and mail:

  • Cillian de Róiste
  • Eelco Dolstra
  • Evgeny Egorochkin
  • Lluís Batlle i Rossell
  • Marc Weber
  • Micheal Raskin
  • Nicolas Pierron
  • Peter Simons
  • Vladimír Čunát
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].