s/nixFlakes/nix/

This commit is contained in:
Astro 2022-09-27 02:01:38 +02:00
parent c9b0cc0713
commit d1abf63abb
4 changed files with 3 additions and 14 deletions

View File

@ -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";
};
}

View File

@ -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"

View File

@ -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 = ''

View File

@ -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