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 00:07:49 +00:00
|
|
|
|
{ config, modulesPath, pkgs, specialArgs, options }:
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
|
(self: super: {
|
2022-05-10 07:34:49 +00:00
|
|
|
|
#### customized packages
|
|
|
|
|
# nixos-unstable pleroma is too far out-of-date for our db
|
2022-04-27 06:38:39 +00:00
|
|
|
|
pleroma = super.callPackage ./pkgs/pleroma { };
|
2022-05-10 07:34:49 +00:00
|
|
|
|
# jackett doesn't allow customization of the bind address: this will probably always be here.
|
2022-05-04 00:10:32 +00:00
|
|
|
|
jackett = self.callPackage ./pkgs/jackett { pkgs = super; };
|
2022-05-18 10:40:28 +00:00
|
|
|
|
# fix abrupt HDD poweroffs as during reboot. patching systemd requires rebuilding nearly every package.
|
|
|
|
|
# systemd = import ./pkgs/systemd { pkgs = super; };
|
2022-05-10 07:34:49 +00:00
|
|
|
|
|
|
|
|
|
#### nixos-unstable packages
|
|
|
|
|
# gitea: 1.16.5 contains a fix which makes manual user approval *actually* work.
|
|
|
|
|
# https://github.com/go-gitea/gitea/pull/19119
|
|
|
|
|
# safe to remove after 1.16.5 (or 1.16.7 if we need db compat?)
|
2022-05-21 00:07:49 +00:00
|
|
|
|
gitea = pkgs.unstable.gitea;
|
2022-05-17 01:58:12 +00:00
|
|
|
|
|
|
|
|
|
# try a newer rpi4 u-boot
|
2022-05-21 00:07:49 +00:00
|
|
|
|
# ubootRaspberryPi4_64bit = pkgs.unstable.ubootRaspberryPi4_64bit;
|
2022-05-17 01:58:12 +00:00
|
|
|
|
ubootRaspberryPi4_64bit = self.callPackage ./pkgs/ubootRaspberryPi4_64bit { pkgs = super; };
|
2022-04-27 06:38:39 +00:00
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "21.11"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|