summaryrefslogtreecommitdiffstats
path: root/nix-script-switch.sh
AgeCommit message (Collapse)Author
2017-05-30Fix bug when building non-switch and appending channel hashMatthias Beyer
When we build a non-switch (e.g. "boot") and append the channel hash in the config tag, we append the wrong hash (not the hash of the channel of the build generation but the hash of the current channel). This is a severe bug which is fixed with this commit (by simply failing to allow the combination of these two flags).
2017-01-08Add note that the arg -p is deprecatedMatthias Beyer
2017-01-08switch: Tag current channel commit hash in channel tagMatthias Beyer
2016-06-19Add flag (-C) to append channel generation to tag nameMatthias Beyer
2016-01-02Fix #114Matthias Beyer
2015-10-05Call git here without explanation outputMatthias Beyer
Fixes #105
2015-10-05Fix: move debug output in case blockMatthias Beyer
2015-10-04Merge pull request #102 from matthiasbeyer/switch-no_tag_if_buildMatthias Beyer
Do not generate config tag if cmd is "build"
2015-10-04Do not generate config tag if cmd is "build"Matthias Beyer
Closes #101. If the command for rebuilding the system is "build", the "switch" command should not generate a tag in the configuration. A tag in the nixpkgs clone can be generated, though.
2015-10-04Add option to update remote before generating tag in nixpkgsMatthias Beyer
Add config var: Remote name for upstream nixpkgs
2015-10-04Fetch commit hash before nixos-rebuildMatthias Beyer
As described in #81, we should fetch the hash of the current HEAD before starting the nixos-rebuild run, as if this run takes a lot of time, the HEAD could have changed in between and so we would generate a tag on a wrong commit.
2015-10-04Add "ready" outputMatthias Beyer
2015-10-04Integrate function code in scriptMatthias Beyer
As the function is only used once.
2015-10-04Fix typoMatthias Beyer
2015-10-04Remove else-branch from if-else by negating conditionMatthias Beyer
2015-10-04Fixed indentionMatthias Beyer
2015-10-04Minify ifMatthias Beyer
2015-10-04Default command setting simplifiedMatthias Beyer
2015-10-04Add debug output in arg parsingMatthias Beyer
2015-10-04Better overview over the help textMatthias Beyer
2015-09-27switch: Ability to parse alternative nixpkgs from normal argsMatthias Beyer
2015-09-22switch: Be quiet by defaultMatthias Beyer
2015-09-16Fix: switch: Generate tag only if argument for it is passedMatthias Beyer
2015-09-11Add missing arguments to help_end() callsMatthias Beyer
2015-08-01switch: Move variable printing, so we have proper debugging outputMatthias Beyer
2015-08-01Add help text for config file var use in switch commandMatthias Beyer
2015-08-01Add RC variable for tagging flags for tagging in nixpkgs repo on switch commandMatthias Beyer
2015-08-01Add default tagging flags in switch commandMatthias Beyer
2015-08-01switch: Use RC_NIXPKGS as default nixpkgs cloneMatthias Beyer
2015-08-01switch: Add RC_CONFIG as default config pathMatthias Beyer
2015-07-31Add feature to be able to do everything, but not nixos-rebuildMatthias Beyer
2015-07-28Merge pull request #69 from matthiasbeyer/switch-no_annotated_tagsMatthias Beyer
Switch no annotated tags
2015-07-28Fix: Use dbg() instead of stdout() in option parsingMatthias Beyer
2015-07-28switch: Add support for custom git-tag flags, to be able to do annotated taggingMatthias Beyer
2015-07-28switch command: Dont do annotated taggingMatthias Beyer
2015-07-28Merge pull request #62 from matthiasbeyer/switch-add-nixpkgs-taggingMatthias Beyer
Add flag to generate a tag in the local nixpkgs
2015-07-28Add note that "switch" is default for "switch" commandMatthias Beyer
2015-07-27Merge pull request #59 from matthiasbeyer/debug-outputMatthias Beyer
Debug output
2015-07-27Add flag to generate a tag in the local nixpkgsMatthias Beyer
This commit adds a flag to the switch command, so one can generate a tag in the local clone of nixpkgs as well. The tag should be generated on the commit the system is based on. The tag will be named exactly as the tag in the configuration.
2015-07-15Change user irrelevant outputs to dbg outputMatthias Beyer
2015-07-15Add more debugging outputMatthias Beyer
2015-07-15Add help text for -t switch for custom tagMatthias Beyer
2015-07-12Do include the hostname as default, but disable with -nMatthias Beyer
2015-07-11switch: Remove -g flag supportMatthias Beyer
2015-07-11Hotfix: Missing working directory in git commandMatthias Beyer
2015-07-10Merge pull request #50 from matthiasbeyer/fix-#40Matthias Beyer
Use git helper
2015-07-10Use git helperMatthias Beyer
Fixes #40
2015-07-10switch: Add more help textMatthias Beyer
2015-07-05Minify code in switch commandMatthias Beyer
2015-07-05Merge pull request #29 from matthiasbeyer/add-switch_hostnameMatthias Beyer
Add hostname in tagname