Skip to content

Commit c40296e

Browse files
committed
Temporary nix data example42#70
1 parent 0f5e1d7 commit c40296e

File tree

6 files changed

+144
-0
lines changed

6 files changed

+144
-0
lines changed

data/nix/default.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
---
2+
nix::settings:
3+
tp_prerequisites: {}
4+
exec_prerequisites:
5+
install:
6+
command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
7+
creates: '/nix'
8+
9+
urls:
10+
website: 'https://nixos.org'
11+
issues: 'https://github.com/nixos/nix/issues'
12+
documentation: 'https://nix.com/documentation'
13+
source: 'https://github.com/nix/nix'
14+
description: 'nix description'
15+
16+
# Configured: +package -source -file +image
17+
install_method: 'source'
18+
19+
packages: []
20+
manage_package: false
21+
prerequisites:
22+
exec:
23+
command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
24+
creates: '/nix'
25+
26+
services:
27+
main:
28+
name: nix-daemon
29+
process_name: nix
30+
process_extra_name: ~
31+
process_user: root
32+
process_group: root
33+
nodaemon_args: '-D'
34+
ensure: running
35+
enable: true
36+
pidfile: /run/nix.pid
37+
params: {}
38+
39+
40+
files:
41+
config:
42+
path: '/etc/nix/nix.conf'
43+
init:
44+
path: '/etc/sysconfig/nix-daemon.conf'
45+
format: 'inifile'
46+
systemd:
47+
path: '/etc/systemd/system/nix-daemon.service'
48+
format: 'inifile_with_stanzas'
49+
50+
dirs:
51+
config:
52+
path: '/etc/nix'
53+
metadata:
54+
path: /nix/var/nix
55+
log:
56+
path: /nix/var/log
57+
store:
58+
path: /nix
59+
60+
user_files:
61+
config:
62+
path: '$HOME/.config/nix/nix.conf'
63+
64+
user_dirs:
65+
config:
66+
path: '$HOME/.config/nix'
67+
68+
info_commands:
69+
list_profile: 'nix profile list'
70+
list_store: 'nix store ls'
71+
debug_commands:
72+
debug: 'nix store verify'
73+
test_commands:
74+
status: 'nix status'
75+
version_command: 'nix --version'
76+
help_command: 'nix --help'
77+
run_commands:
78+
start:
79+
command: 'nix start'
80+
81+
image:
82+
name: 'nixos/nix'
83+
systemd_options: {}
84+
85+
releases:
86+
latest_version: 2.13.2
87+
latest_url: ~
88+
base_url: 'https://releases.nixos.org/nix/nix-$VERSION/nix-$VERSION-$OS.tar.xz'
89+
file_name: 'nix-$VERSION-$OS.tar.xz'
90+
extracted_dir: 'nix-$VERSION-$OS'
91+
file_format: xz
92+
prerequisites:
93+
exec:
94+
command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
95+
creates: '/nix'

data/nix/hiera.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
:hierarchy:
3+
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}"
4+
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}"
5+
- "%{title}/%{repo}/osfamily/%{osfamily}%{operatingsystemmajrelease}"
6+
- "%{title}/%{repo}/osfamily/%{osfamily}"
7+
- "%{title}/%{repo}/default"
8+
- "%{title}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}"
9+
- "%{title}/operatingsystem/%{operatingsystem}"
10+
- "%{title}/osfamily/%{osfamily}%{operatingsystemmajrelease}"
11+
- "%{title}/osfamily/%{osfamily}"
12+
- "%{title}/default"
13+
- "default/%{operatingsystem}%{operatingsystemmajrelease}"
14+
- "default/%{operatingsystem}"
15+
- default

data/nix/osfamily/Darwin.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
nix::settings:
3+
brew_package_name: 'nix'
4+
5+
user_files:
6+
config:
7+
path: '$HOME/Library/Application\ Support/nix/nix.conf'
8+
9+
user_dirs:
10+
config:
11+
path: '$HOME/Library/Application\ Support/nix/nix.conf'

data/nix/osfamily/Debian.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
nix::settings:
3+
4+
files:
5+
init:
6+
path: '/etc/default/nix'

data/nix/osfamily/RedHat.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
nix::settings:
3+
dockerfile_prerequisites: 'RUN yum install -y wget which'

data/nix/osfamily/windows.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
nix::settings:
3+
4+
# If exe or msi package is available for direct download:
5+
package_provider: 'windows'
6+
package_source: 'https://github.com/nix/nix/releases/download/v$VERSION/nix_$VERSION_$OS_$ARCH.msi'
7+
8+
user_files:
9+
config:
10+
path: '%APPDATA%\nix\nix.conf'
11+
12+
user_dirs:
13+
config:
14+
path: '%APPDATA%\nix'

0 commit comments

Comments
 (0)