Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2023-04-16 | Make it possible to not rebuild deploy-rs | Flakebi | 1 | -1/+1 | |
Use the deploy-rs from the final packages set. This can avoid rebuilding deploy-rs when using it in a nixos config. It can use the version cached in nixpkgs. Also add instructions to the readme on how to craft an overlay that uses nixpkgs deploy-rs. | |||||
2022-11-11 | More unique names for the checks generated by deploy-rs | Philipp Herzog | 1 | -2/+2 | |
Closes #162 | |||||
2022-10-09 | Add new activation strategy `boot` as equivalent to `nixos-rebuild boot` | Maximilian Bosch | 1 | -11/+20 | |
This can be useful when e.g. deploying a kernel update to a target host. You usually plan a reboot (or kexec) after that to activate the new kernel. However you don't want to wait for services to be restarted first since these will be "restarted" anyways on the reboot. In cases like GitLab or the Atlassian stack this actually makes a difference. This patch changes the following things: * If `--boot` is provided, `nix-env -p profile-to-activate --set` is called for each deployed profile to make sure that it is activated automatically after a reboot. * However, the actual activation (e.g. `switch-to-configuration switch`) is skipped. Instead: * For NixOS, `switch-to-configuration boot` is called to set the new profile as default in the bootloader. * For everything else, nothing else is done. The profile is already the new default (and thus picked up on the next boot). | |||||
2022-08-04 | Fetch system from `stdenv.hostPlatform` | Robert Helgesson | 1 | -1/+1 | |
The top-level `system` attribute has been deprecated for quite a while. See https://github.com/NixOS/nixpkgs/commit/4246d6ce21d2d8d33e2d30f42b3d9d446c5dc143 | |||||
2022-08-04 | Replace runCommandNoCC by runCommand | Robert Helgesson | 1 | -2/+2 | |
The `runCommand` function has been using `stdenvNoCC` for quite a while and `runCommandNoCC` is correspondingly deprecated. See https://github.com/NixOS/nixpkgs/commit/9feb144c8cc4f4b71a9c23b2f7fd6b2ea55649e5 | |||||
2022-05-14 | Update flake to support nix 2.8 | Xavier Vello | 1 | -3/+5 | |
nix 2.7 renamed defaultApp and defaultPackage. Both the old and new names are supported in 2.7, but 2.8 has removed support for the old names, breaking the nix run invocation. Old names are kept in this PR to keep compatibility with nix 2.6, but could be removed if support of this version is not needed anymore. | |||||
2021-09-28 | Fix darwin build | Alexander Bantyev | 1 | -4/+4 | |
Frameworks are libraries used at runtime, so should be in buildInputs and not nativeBuildInputs. Closes https://github.com/serokell/deploy-rs/issues/132 | |||||
2021-09-27 | add aarch64-darwin to built systems | Peter Woodman | 1 | -1/+1 | |
2021-09-15 | flake: replace naersk with buildRustPackage | Bernardo Meurer | 1 | -8/+8 | |
2021-08-04 | Add .envrc and fix devShell to work with more tools | notgne2 | 1 | -1/+11 | |
2021-06-25 | fix: add meta.description | David Arnold | 1 | -1/+1 | |
2021-06-25 | Add rustfmt and rust-analyzer to devShell | Alexander Bantyev | 1 | -1/+1 | |
2021-06-22 | flake.nix: refactor as overlay | Alexander Bantyev | 1 | -40/+54 | |
2021-05-20 | flake.nix: clean up dry-activation logic | Alexander Bantyev | 1 | -7/+3 | |
2021-05-18 | Fix rollback to old profiles | Alexander Bantyev | 1 | -1/+1 | |
In 5d5da48 (https://github.com/serokell/deploy-rs/pull/81), $DRY_ACTIVATE is used in a bash script with -u. When DRY_ACTIVATE is not set (which it is not for older profiles), the script fails. Fix this by setting a fallback. | |||||
2021-05-10 | Add helper activation function for home-manager | notgne2 | 1 | -0/+2 | |
2021-04-16 | Apply notgne2 suggestions. | Oleg Pykhalov | 1 | -10/+6 | |
2021-04-07 | flake: Add optional dryActivate argument to activate.custom | Oleg Pykhalov | 1 | -33/+47 | |
2021-04-07 | Add dry activate argument. | Oleg Pykhalov | 1 | -1/+5 | |
2021-02-08 | Work around NixOS/nixpkgs#73404 by `cd`-ing into `/tmp` during NixOS activation | notgne2 | 1 | -0/+3 | |
2021-01-26 | Add Nix-flake check for checking build and Rust tests | notgne2 | 1 | -0/+4 | |
2021-01-22 | Run `set -euo pipefail` in generated activation scripts | notgne2 | 1 | -0/+2 | |
2021-01-08 | Check if systemd-boot is enabled before attempting to delete default entry line | notgne2 | 1 | -1/+3 | |
2021-01-06 | Use boot path from configuration and ignore failures when updating loader conf | notgne2 | 1 | -1/+1 | |
2021-01-05 | Automatically filter out `default` line from loader.conf after NixOS activation | notgne2 | 1 | -1/+6 | |
2020-12-15 | Build "activate" binary on all platforms | Andreas Fuchs | 1 | -2/+0 | |
Now that activate uses a cross-platform fs notification library, we can build it on Darwin again (and build its deps separately, speeding up recompiles there). | |||||
2020-12-02 | Add SPDX-FileCopyrightText to the three files that I changed substantially | Andreas Fuchs | 1 | -0/+1 | |
2020-12-02 | activate flake check: confirm that activate-rs exists in the profile | Alexander Bantyev | 1 | -1/+3 | |
2020-12-02 | Write an "activate-rs" script into the profile path | Andreas Fuchs | 1 | -0/+9 | |
This should point to the correct path if the target platform differs fro the deploying platform. | |||||
2020-11-24 | Fix running & building under macOS (Big Sur) (#9) | Andreas Fuchs | 1 | -4/+14 | |
* Add xcbuild as native build input 2 ways & pass --verbose to cargo build * Make "deploy" build on macOS * Bump the nixpkgs version to one that ships Rust 1.47, which can produce binaries under macOS 11 (Big Sur). * Use darwin-specific options that let Naersk build the "deploy" binary under macOS. (With a work-around for https://github.com/nmattia/naersk/issues/127, which prevents this from being much more straight-forward). Unfortunately, the "activate" binary can't be built under macOS due to the inotify dependency; that means the best we can do is to run the deploy under macOS, not deploy *to* macOS. | |||||
2020-11-22 | Update `activate.nixos` to take a configuration, not a derivation | notgne2 | 1 | -1/+1 | |
2020-11-16 | Scope activation commands, deprecate setActivate | Alexander Bantyev | 1 | -17/+24 | |
2020-11-16 | Add activation presets for NixOS and noop activation | Alexander Bantyev | 1 | -0/+4 | |
2020-11-16 | fixup! [OPS-1085] Add CI | Christian Höppner | 1 | -11/+3 | |
2020-11-14 | Format flake.nix | notgne2 | 1 | -10/+11 | |
2020-11-14 | Remove deprecated `checkSchema` | notgne2 | 1 | -5/+1 | |
2020-11-14 | [OPS-1085] Add CI | Christian Höppner | 1 | -0/+12 | |
2020-11-07 | Greatly expand documentation | notgne2 | 1 | -1/+1 | |
2020-10-30 | Show name of profiles missing activation | notgne2 | 1 | -2/+8 | |
2020-10-29 | Add deprecation warning to checkSchema | notgne2 | 1 | -2/+1 | |
2020-10-26 | Improve checks usage, add check for activation script existing | notgne2 | 1 | -3/+21 | |
2020-10-11 | Move activate script location, use buildEnv for setActivate | notgne2 | 1 | -2/+2 | |
2020-10-08 | Minor flake and documentation fixes | notgne2 | 1 | -20/+30 | |
2020-10-05 | Add interface with json schema, fix flake-less issues, put setActivate and ↵ | notgne2 | 1 | -1/+24 | |
jsonSchema check in flake lib | |||||
2020-09-29 | Add license information, reformat Nix files, clean up | notgne2 | 1 | -2/+5 | |
2020-09-28 | use separate binary for activation, more cleanup | notgne2 | 1 | -1/+1 | |