Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #176 from Ma27/activate-boot | Alexander Bantyev | 2022-12-29 | 1 | -11/+20 |
|\ | | | | | Add new activation strategy `boot` as equivalent to `nixos-rebuild boot` | ||||
| * | Add new activation strategy `boot` as equivalent to `nixos-rebuild boot` | Maximilian Bosch | 2022-10-09 | 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). | ||||
* | | More unique names for the checks generated by deploy-rs | Philipp Herzog | 2022-11-11 | 1 | -2/+2 |
|/ | | | | Closes #162 | ||||
* | Fetch system from `stdenv.hostPlatform` | Robert Helgesson | 2022-08-04 | 1 | -1/+1 |
| | | | | | | | The top-level `system` attribute has been deprecated for quite a while. See https://github.com/NixOS/nixpkgs/commit/4246d6ce21d2d8d33e2d30f42b3d9d446c5dc143 | ||||
* | Replace runCommandNoCC by runCommand | Robert Helgesson | 2022-08-04 | 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 | ||||
* | Update flake to support nix 2.8 | Xavier Vello | 2022-05-14 | 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. | ||||
* | Fix darwin build | Alexander Bantyev | 2021-09-28 | 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 | ||||
* | add aarch64-darwin to built systems | Peter Woodman | 2021-09-27 | 1 | -1/+1 |
| | |||||
* | flake: replace naersk with buildRustPackage | Bernardo Meurer | 2021-09-15 | 1 | -8/+8 |
| | |||||
* | Add .envrc and fix devShell to work with more tools | notgne2 | 2021-08-04 | 1 | -1/+11 |
| | |||||
* | Merge pull request #97 from blaggacao/patch-1 | Alexander Bantyev | 2021-07-08 | 1 | -1/+1 |
|\ | | | | | fix: add meta.description | ||||
| * | fix: add meta.description | David Arnold | 2021-06-25 | 1 | -1/+1 |
| | | |||||
* | | Add rustfmt and rust-analyzer to devShell | Alexander Bantyev | 2021-06-25 | 1 | -1/+1 |
|/ | |||||
* | flake.nix: refactor as overlay | Alexander Bantyev | 2021-06-22 | 1 | -40/+54 |
| | |||||
* | flake.nix: clean up dry-activation logic | Alexander Bantyev | 2021-05-20 | 1 | -7/+3 |
| | |||||
* | Fix rollback to old profiles | Alexander Bantyev | 2021-05-18 | 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. | ||||
* | Add helper activation function for home-manager | notgne2 | 2021-05-10 | 1 | -0/+2 |
| | |||||
* | Apply notgne2 suggestions. | Oleg Pykhalov | 2021-04-16 | 1 | -10/+6 |
| | |||||
* | flake: Add optional dryActivate argument to activate.custom | Oleg Pykhalov | 2021-04-07 | 1 | -33/+47 |
| | |||||
* | Add dry activate argument. | Oleg Pykhalov | 2021-04-07 | 1 | -1/+5 |
| | |||||
* | Work around NixOS/nixpkgs#73404 by `cd`-ing into `/tmp` during NixOS activation | notgne2 | 2021-02-08 | 1 | -0/+3 |
| | |||||
* | Add Nix-flake check for checking build and Rust tests | notgne2 | 2021-01-26 | 1 | -0/+4 |
| | |||||
* | Run `set -euo pipefail` in generated activation scripts | notgne2 | 2021-01-22 | 1 | -0/+2 |
| | |||||
* | Check if systemd-boot is enabled before attempting to delete default entry line | notgne2 | 2021-01-08 | 1 | -1/+3 |
| | |||||
* | Use boot path from configuration and ignore failures when updating loader conf | notgne2 | 2021-01-06 | 1 | -1/+1 |
| | |||||
* | Automatically filter out `default` line from loader.conf after NixOS activation | notgne2 | 2021-01-05 | 1 | -1/+6 |
| | |||||
* | Build "activate" binary on all platforms | Andreas Fuchs | 2020-12-15 | 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). | ||||
* | Add SPDX-FileCopyrightText to the three files that I changed substantially | Andreas Fuchs | 2020-12-02 | 1 | -0/+1 |
| | |||||
* | activate flake check: confirm that activate-rs exists in the profile | Alexander Bantyev | 2020-12-02 | 1 | -1/+3 |
| | |||||
* | Write an "activate-rs" script into the profile path | Andreas Fuchs | 2020-12-02 | 1 | -0/+9 |
| | | | | | This should point to the correct path if the target platform differs fro the deploying platform. | ||||
* | Fix running & building under macOS (Big Sur) (#9) | Andreas Fuchs | 2020-11-24 | 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. | ||||
* | Update `activate.nixos` to take a configuration, not a derivation | notgne2 | 2020-11-22 | 1 | -1/+1 |
| | |||||
* | Scope activation commands, deprecate setActivate | Alexander Bantyev | 2020-11-16 | 1 | -17/+24 |
| | |||||
* | Add activation presets for NixOS and noop activation | Alexander Bantyev | 2020-11-16 | 1 | -0/+4 |
| | |||||
* | fixup! [OPS-1085] Add CI | Christian Höppner | 2020-11-16 | 1 | -11/+3 |
| | |||||
* | Format flake.nix | notgne2 | 2020-11-14 | 1 | -10/+11 |
| | |||||
* | Remove deprecated `checkSchema` | notgne2 | 2020-11-14 | 1 | -5/+1 |
| | |||||
* | [OPS-1085] Add CI | Christian Höppner | 2020-11-14 | 1 | -0/+12 |
| | |||||
* | Greatly expand documentation | notgne2 | 2020-11-07 | 1 | -1/+1 |
| | |||||
* | Show name of profiles missing activation | notgne2 | 2020-10-30 | 1 | -2/+8 |
| | |||||
* | Add deprecation warning to checkSchema | notgne2 | 2020-10-29 | 1 | -2/+1 |
| | |||||
* | Improve checks usage, add check for activation script existing | notgne2 | 2020-10-26 | 1 | -3/+21 |
| | |||||
* | Move activate script location, use buildEnv for setActivate | notgne2 | 2020-10-11 | 1 | -2/+2 |
| | |||||
* | Minor flake and documentation fixes | notgne2 | 2020-10-08 | 1 | -20/+30 |
| | |||||
* | Add interface with json schema, fix flake-less issues, put setActivate and ↵ | notgne2 | 2020-10-05 | 1 | -1/+24 |
| | | | | jsonSchema check in flake lib | ||||
* | Add license information, reformat Nix files, clean up | notgne2 | 2020-09-29 | 1 | -2/+5 |
| | |||||
* | use separate binary for activation, more cleanup | notgne2 | 2020-09-28 | 1 | -1/+1 |
| | |||||
* | stuff | notgne2 | 2020-09-28 | 1 | -0/+22 |