2023-08-21 15:44:19 +00:00
|
|
|
# The main configuration file.
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix # Created by nixos-generate-config.
|
2023-08-23 12:34:32 +00:00
|
|
|
./packages.nix
|
2023-08-21 15:44:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
settings.experimental-features = [ "flakes" "nix-command" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs = {
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
packageOverrides = pkgs: {
|
|
|
|
# Add the unstable channel as a separate package set.
|
|
|
|
unstable = import <nixos-unstable> {
|
|
|
|
# Pass config through so everything is shared between all channels.
|
|
|
|
config = config.nixpkgs.config;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# Before changing this value read the documentation for this option!
|
2023-08-26 11:57:35 +00:00
|
|
|
# https://search.nixos.org/options?channel=23.05&show=system.stateVersion
|
|
|
|
system.stateVersion = "23.05";
|
2023-08-21 15:44:19 +00:00
|
|
|
}
|