s/nixFlakes/nix/

pull/69/head
Astro 2 months ago
parent c9b0cc0713
commit d1abf63abb
  1. 11
      README.md
  2. 2
      hosts/hydra/updater.nix
  3. 2
      hosts/server10/microvm-staging.nix
  4. 2
      modules/autoupdate.nix

@ -34,16 +34,6 @@ Make sure you have access.
> Nix Flakes ist gegenwärtig bei Nix (Version 20.09) noch keine standardmäßige Funktionalität für Nix. Die Bereitstellung der Kommandos für Nix Flakes müssen als experimentelle Funktionalität für das Kommando ''nix'' festgelegt werden, um sie verfügbar zu machen.
A Nix environment with Nix Flakes support is required.
### Temporary Shell with Nix Flakes
Set up an environment (with the common command [nix-shell](https://nixos.org/manual/nix/unstable/command-ref/nix-shell.html)) in which the [package *nixFlakes*](https://search.nixos.org/packages?query=nixflakes) (for Nix Flakes) is available and jump into it
```bash
nix-shell -p nixFlakes
```
Set some configuration (do this only once):
```bash
@ -56,7 +46,6 @@ set this to your NixOS configuration:
```nix
{ pkgs, ... }: {
nix = {
package = pkgs.nixFlakes;
extraOptions = "experimental-features = nix-command flakes";
};
}

@ -17,7 +17,7 @@ in
# Timer-triggered service that updates flake.lock and pushes to a branch to be picked up by Hydra.
services.updater = {
wantedBy = [ "multi-user.target" ];
path = with pkgs; [ git nixFlakes curl openssh ];
path = with pkgs; [ git nix curl openssh ];
script = ''
git config --global user.email "astro@spaceboyz.net"
git config --global user.name "Astrobot"

@ -60,7 +60,7 @@ in
serviceConfig = {
Type = "oneshot";
};
path = with pkgs; [ nixFlakes git ];
path = with pkgs; [ nix git ];
environment.HOME = config.users.users.root.home;
scriptArgs = "%i";
script = ''

@ -18,7 +18,7 @@
# for the first time.
systemd.services.autoupdate = lib.mkIf config.c3d2.autoUpdate {
wantedBy = [ "multi-user.target" ];
path = with pkgs; [ nixFlakes nettools curl jq ];
path = with pkgs; [ nix nettools curl jq ];
serviceConfig = {
Type = "oneshot";
# switch-to-configuration may not return. HACK: cap running

Loading…
Cancel
Save