2022-04-27 06:38:39 +00:00
|
|
|
|
# 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’).
|
|
|
|
|
|
2022-05-17 06:44:40 +00:00
|
|
|
|
# USEFUL COMMANDS:
|
|
|
|
|
# nix show-config
|
2022-05-17 09:29:56 +00:00
|
|
|
|
# nix eval --raw <expr> => print an expression. e.g. nixpkgs.raspberrypifw prints store path to the package
|
2022-05-17 06:44:40 +00:00
|
|
|
|
# nix-option ## query options -- including their SET VALUE; similar to search: https://search.nixos.org/options
|
2022-05-18 10:40:28 +00:00
|
|
|
|
# nixos-rebuild switch --upgrade ## pull changes from the nixos channel (e.g. security updates) and rebuild
|
2022-05-17 06:44:40 +00:00
|
|
|
|
|
2022-05-21 01:59:51 +00:00
|
|
|
|
{ config, pkgs, ... }:
|
2022-05-21 00:07:49 +00:00
|
|
|
|
|
2022-04-27 06:38:39 +00:00
|
|
|
|
{
|
2022-05-21 00:07:49 +00:00
|
|
|
|
|
|
|
|
|
# enable flake support.
|
|
|
|
|
# the real config root lives in flake.nix
|
|
|
|
|
nix = {
|
|
|
|
|
#package = pkgs.nixFlakes;
|
|
|
|
|
package = pkgs.nixUnstable;
|
|
|
|
|
extraOptions = ''
|
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
|
'';
|
|
|
|
|
};
|
2022-04-27 06:38:39 +00:00
|
|
|
|
}
|
|
|
|
|
|