Skip to content

Commit f3c9ce7

Browse files
committed
Data for nix example42#70
1 parent c40296e commit f3c9ce7

File tree

5 files changed

+18
-56
lines changed

5 files changed

+18
-56
lines changed

data/nix/default.yaml

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,34 @@ nix::settings:
33
tp_prerequisites: {}
44
exec_prerequisites:
55
install:
6-
command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
6+
# command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
7+
command: 'curl -L https://nixos.org/nix/install -o /tmp/nix_install ; sh /tmp/nix_install --daemon | yes'
78
creates: '/nix'
9+
provider: posix
810

911
urls:
1012
website: 'https://nixos.org'
1113
issues: 'https://github.com/nixos/nix/issues'
12-
documentation: 'https://nix.com/documentation'
13-
source: 'https://github.com/nix/nix'
14-
description: 'nix description'
14+
documentation: 'https://nixos.org/learn.html'
15+
source: 'https://github.com/nixos/nix'
16+
description: 'The purely functional package manager'
1517

1618
# Configured: +package -source -file +image
17-
install_method: 'source'
19+
install_method: 'package'
1820

19-
packages: []
21+
packages: {}
2022
manage_package: false
21-
prerequisites:
22-
exec:
23-
command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
24-
creates: '/nix'
2523

2624
services:
27-
main:
28-
name: nix-daemon
25+
nix-daemon:
2926
process_name: nix
3027
process_extra_name: ~
3128
process_user: root
3229
process_group: root
3330
nodaemon_args: '-D'
34-
ensure: running
35-
enable: true
3631
pidfile: /run/nix.pid
3732
params: {}
3833

39-
4034
files:
4135
config:
4236
path: '/etc/nix/nix.conf'
@@ -74,22 +68,24 @@ nix::settings:
7468
status: 'nix status'
7569
version_command: 'nix --version'
7670
help_command: 'nix --help'
77-
run_commands:
78-
start:
79-
command: 'nix start'
8071

8172
image:
8273
name: 'nixos/nix'
8374
systemd_options: {}
8475

85-
releases:
76+
release:
8677
latest_version: 2.13.2
8778
latest_url: ~
8879
base_url: 'https://releases.nixos.org/nix/nix-$VERSION/nix-$VERSION-$OS.tar.xz'
8980
file_name: 'nix-$VERSION-$OS.tar.xz'
9081
extracted_dir: 'nix-$VERSION-$OS'
9182
file_format: xz
92-
prerequisites:
83+
84+
setupa:
85+
enable: true
86+
resources:
9387
exec:
94-
command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
95-
creates: '/nix'
88+
install_nix:
89+
command: 'curl -L https://nixos.org/nix/install --daemon | bash'
90+
creates: '/nix'
91+
provider: shell

data/nix/osfamily/Darwin.yaml

Lines changed: 0 additions & 11 deletions
This file was deleted.

data/nix/osfamily/Debian.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

data/nix/osfamily/RedHat.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

data/nix/osfamily/windows.yaml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)