-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
./modules/flake-parts/config.nix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ lib, ... }: | ||
{ | ||
options = { | ||
me = lib.mkOption { | ||
default = { }; | ||
type = lib.types.submodule { | ||
options = { | ||
username = lib.mkOption { | ||
type = lib.types.str; | ||
description = "Your username as shown by `id -un`"; | ||
}; | ||
fullname = lib.mkOption { | ||
type = lib.types.str; | ||
description = "Your full name for use in Git config"; | ||
}; | ||
email = lib.mkOption { | ||
type = lib.types.str; | ||
description = "Your email for use in Git config"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
{ lib, ... }: | ||
# Global configuration for this repo | ||
# | ||
# See ./modules/flake-parts/config-module.nix for schema | ||
{ | ||
options = { | ||
me = lib.mkOption { | ||
default = { }; | ||
type = lib.types.submodule { | ||
options = { | ||
username = lib.mkOption { | ||
type = lib.types.str; | ||
default = "runner"; | ||
description = "Your username as shown by `id -un`"; | ||
}; | ||
fullname = lib.mkOption { | ||
type = lib.types.str; | ||
default = "John Doe"; | ||
description = "Your full name for use in Git config"; | ||
}; | ||
email = lib.mkOption { | ||
type = lib.types.str; | ||
default = "[email protected]"; | ||
description = "Your email for use in Git config"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
me = { | ||
username = "runner"; | ||
fullname = "John Doe"; | ||
email = "[email protected]"; | ||
}; | ||
} |