-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NixOS:master' into starship-xonsh
- Loading branch information
Showing
616 changed files
with
10,108 additions
and
17,184 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
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
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
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
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
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
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,48 @@ | ||
{ | ||
lib, | ||
config, | ||
pkgs, | ||
... | ||
}: | ||
{ | ||
options.image = { | ||
baseName = lib.mkOption { | ||
type = lib.types.str; | ||
default = "nixos-image-${config.system.nixos.label}-${pkgs.stdenv.hostPlatform.system}"; | ||
description = '' | ||
Basename of the image filename without any extension (e.g. `image_1`). | ||
''; | ||
}; | ||
|
||
extension = lib.mkOption { | ||
type = lib.types.str; | ||
description = '' | ||
Extension of the image filename (e.g. `raw`). | ||
''; | ||
}; | ||
|
||
# FIXME: this should be marked readOnly, when there are no | ||
# mkRenamedOptionModuleWith calls with `image.fileName` as | ||
# as a target left anymore (i.e. 24.11). We can't do it | ||
# before, as some source options where writable before. | ||
# Those should use image.baseName and image.extension instead. | ||
fileName = lib.mkOption { | ||
type = lib.types.str; | ||
default = "${config.image.baseName}.${config.image.extension}"; | ||
description = '' | ||
Filename of the image including all extensions (e.g `image_1.raw` or | ||
`image_1.raw.zst`). | ||
''; | ||
}; | ||
|
||
filePath = lib.mkOption { | ||
type = lib.types.str; | ||
default = config.image.fileName; | ||
description = '' | ||
Path of the image, relative to `$out` in `system.build.image`. | ||
While it defaults to `config.image.fileName`, it can be different for builders where | ||
the image is in sub directory, such as `iso`, `sd-card` or `kexec` images. | ||
''; | ||
}; | ||
}; | ||
} |
Oops, something went wrong.