Skip to content

Instantly share code, notes, and snippets.

@Isabaellchen
Isabaellchen / configuration.nix
Created August 28, 2019 08:19
my nix configuration
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@Isabaellchen
Isabaellchen / nixos-install.sh
Last active August 28, 2019 08:20
A nixos install script for linux live sessions, to have nixos installed as the primary OS. Expects a configuration.nix (like https://gist.github.com/Isabaellchen/ffb8ba6646ea730a0dd334fe336ff173 ) to be in the same folder.
#!/bin/bash
##
## A nixos install script for linux live sessions,
## to have nixos installed as the primary OS.
##
## Derived from the nixos manual
## https://nixos.org/nixos/manual/index.html#sec-installing-from-other-distro
## and
## https://nixos.org/nixos/manual/index.html#sec-installation
##