config: update comments

This commit is contained in:
Gabriel Arazas 2022-11-25 14:35:11 +08:00
parent afb86dd59a
commit 181de0406b

View File

@ -1,5 +1,5 @@
{ {
description = "foo-dogsquared's NixOS config as a flake"; description = "foo-dogsquared's abomination of a NixOS configuration";
nixConfig = { nixConfig = {
extra-substituters = extra-substituters =
@ -14,7 +14,7 @@
# looser when it comes to stability for the entirety of this configuration. # looser when it comes to stability for the entirety of this configuration.
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# We're using this library for other functions, mainly testing. # We're using these libraries for other functions.
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
# My personal dotfiles. # My personal dotfiles.
@ -49,8 +49,8 @@
devshell.inputs.nixpkgs.follows = "nixpkgs"; devshell.inputs.nixpkgs.follows = "nixpkgs";
devshell.inputs.flake-utils.follows = "flake-utils"; devshell.inputs.flake-utils.follows = "flake-utils";
# We're getting more unstable there should be a black hole at my home right now. # We're getting more unstable there should be a black hole at my home right
# Also, we're seem to be collecting text editors like it is Pokemon. # now. Also, we're seem to be collecting text editors like it is Pokemon.
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay"; neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
neovim-nightly-overlay.inputs.nixpkgs.follows = "nixpkgs"; neovim-nightly-overlay.inputs.nixpkgs.follows = "nixpkgs";
@ -104,6 +104,8 @@
]; ];
defaultSystem = inputs.flake-utils.lib.system.x86_64-linux; defaultSystem = inputs.flake-utils.lib.system.x86_64-linux;
# Just add systems here and it should add systems to the outputs.
systems = with inputs.flake-utils.lib.system; [ defaultSystem ]; systems = with inputs.flake-utils.lib.system; [ defaultSystem ];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
@ -208,7 +210,7 @@
[ "python3.10-django-3.1.14" ]; [ "python3.10-django-3.1.14" ];
# Stallman-senpai will be disappointed. # Stallman-senpai will be disappointed.
nixpkgs.config.allowUnfree = lib.mkDefault true; nixpkgs.config.allowUnfree = true;
# Extend nixpkgs with our overlays except for the NixOS-focused modules # Extend nixpkgs with our overlays except for the NixOS-focused modules
# here. # here.
@ -272,10 +274,13 @@
# since other parts of the home-manager config relies on it being # since other parts of the home-manager config relies on it being
# set properly. # set properly.
# #
# Here are some of the common cases for setting the home directory options. # Here are some of the common cases for setting the home directory
# options.
# #
# * For exporting home-manager configurations, this is done in this flake definition. # * For exporting home-manager configurations, this is done in this
# * For NixOS configs, this is done automatically by the home-manager NixOS module. # flake definition.
# * For NixOS configs, this is done automatically by the
# home-manager NixOS module.
# * Otherwise, you'll have to manually set them. # * Otherwise, you'll have to manually set them.
appendToHomeDir = path: "${config.home.homeDirectory}/${path}"; appendToHomeDir = path: "${config.home.homeDirectory}/${path}";
in in
@ -345,8 +350,8 @@
let let
extraModules = [ extraModules = [
({ pkgs, config, ... }: { ({ pkgs, config, ... }: {
# To be able to use the most of our config as possible, we want both to # To be able to use the most of our config as possible, we want
# use the same overlays. # both to use the same overlays.
nixpkgs.overlays = overlays; nixpkgs.overlays = overlays;
# Stallman-senpai will be disappointed. :/ # Stallman-senpai will be disappointed. :/
@ -375,7 +380,8 @@
packages = forAllSystems (system: let packages = forAllSystems (system: let
pkgs = import nixpkgs { inherit system overlays; }; pkgs = import nixpkgs { inherit system overlays; };
# An attrset of images with their metadata that is usually built. # A set of images with their metadata that is usually built for usual
# purposes.
images = { images = {
bootstrap.format = "install-iso"; bootstrap.format = "install-iso";
plover.format = "gce"; plover.format = "gce";