chore: reformat codebase

This commit is contained in:
Gabriel Arazas 2024-01-16 15:19:51 +08:00
parent 26881be1b4
commit d3e0802d38
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
5 changed files with 51 additions and 51 deletions

View File

@ -1,7 +1,7 @@
# A very basic NixOS VM configuration intended for testing out the given
# workflow module. It's a good thing the baseline for the configuration is not
# tedious to set up for simpler configs like this.
{ workflow, extraModules ? [] }:
{ workflow, extraModules ? [ ] }:
let
pkgs = import <nixpkgs> { };

View File

@ -25,7 +25,7 @@ in
options = {
images = lib.mkOption {
type = with lib.types; attrsOf package;
default = {};
default = { };
description = ''
An attribute set of NixOS configurations built as an image output
supported by
@ -41,7 +41,7 @@ in
lib.mapAttrs
(k: v: v.images)
(lib.filterAttrs
(k: v: v.images != {})
(k: v: v.images != { })
config.allSystems
);

View File

@ -73,7 +73,7 @@ let
modules = lib.mkOption {
type = with lib.types; listOf raw;
default = [];
default = [ ];
description = ''
A list of NixOS modules specific for that host.
'';
@ -81,7 +81,7 @@ let
overlays = lib.mkOption {
type = with lib.types; listOf (functionTo raw);
default = [];
default = [ ];
example = lib.literalExpression ''
[
inputs.neovim-nightly-overlay.overlays.default
@ -154,7 +154,7 @@ in
options.setups.home-manager = {
sharedModules = lib.mkOption {
type = with lib.types; listOf raw;
default = [];
default = [ ];
description = ''
A list of modules to be shared by all of the declarative home-manager
setups.
@ -168,7 +168,7 @@ in
standaloneConfigModules = lib.mkOption {
type = with lib.types; listOf raw;
default = [];
default = [ ];
internal = true;
description = ''
A list of modules to be added alongside the shared home-manager modules
@ -182,7 +182,7 @@ in
configs = lib.mkOption {
type = with lib.types; attrsOf (submodule configType);
default = {};
default = { };
description = ''
An attribute set of metadata for the declarative home-manager setups.
'';
@ -208,7 +208,7 @@ in
};
};
config = lib.mkIf (cfg.configs != {}) {
config = lib.mkIf (cfg.configs != { }) {
flake =
let
# A quick data structure we can pass through multiple build pipelines.

View File

@ -114,7 +114,7 @@ let
modules = lib.mkOption {
type = with lib.types; listOf raw;
default = [];
default = [ ];
description = ''
A list of NixOS modules specific for that host.
'';
@ -122,7 +122,7 @@ let
overlays = lib.mkOption {
type = with lib.types; listOf (functionTo raw);
default = [];
default = [ ];
example = lib.literalExpression ''
[
inputs.neovim-nightly-overlay.overlays.default
@ -211,7 +211,7 @@ in
options.setups.nixos = {
sharedModules = lib.mkOption {
type = with lib.types; listOf raw;
default = [];
default = [ ];
description = ''
A list of modules to be shared by all of the declarative NixOS setups.
'';
@ -219,7 +219,7 @@ in
configs = lib.mkOption {
type = with lib.types; attrsOf (submodule configType);
default = {};
default = { };
description = ''
An attribute set of metadata for the declarative NixOS setups. This
will then be used for related flake outputs such as
@ -273,7 +273,7 @@ in
};
};
config = lib.mkIf (cfg.configs != {}) {
config = lib.mkIf (cfg.configs != { }) {
setups.nixos.sharedModules = [
{
home-manager.useUserPackages = lib.mkDefault true;