Skip to content

Commit

Permalink
Temporary nix data #70
Browse files Browse the repository at this point in the history
  • Loading branch information
alvagante committed Aug 9, 2023
1 parent 0f5e1d7 commit c40296e
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 0 deletions.
95 changes: 95 additions & 0 deletions data/nix/default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
nix::settings:
tp_prerequisites: {}
exec_prerequisites:
install:
command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
creates: '/nix'

urls:
website: 'https://nixos.org'
issues: 'https://github.com/nixos/nix/issues'
documentation: 'https://nix.com/documentation'
source: 'https://github.com/nix/nix'
description: 'nix description'

# Configured: +package -source -file +image
install_method: 'source'

packages: []
manage_package: false
prerequisites:
exec:
command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
creates: '/nix'

services:
main:
name: nix-daemon
process_name: nix
process_extra_name: ~
process_user: root
process_group: root
nodaemon_args: '-D'
ensure: running
enable: true
pidfile: /run/nix.pid
params: {}


files:
config:
path: '/etc/nix/nix.conf'
init:
path: '/etc/sysconfig/nix-daemon.conf'
format: 'inifile'
systemd:
path: '/etc/systemd/system/nix-daemon.service'
format: 'inifile_with_stanzas'

dirs:
config:
path: '/etc/nix'
metadata:
path: /nix/var/nix
log:
path: /nix/var/log
store:
path: /nix

user_files:
config:
path: '$HOME/.config/nix/nix.conf'

user_dirs:
config:
path: '$HOME/.config/nix'

info_commands:
list_profile: 'nix profile list'
list_store: 'nix store ls'
debug_commands:
debug: 'nix store verify'
test_commands:
status: 'nix status'
version_command: 'nix --version'
help_command: 'nix --help'
run_commands:
start:
command: 'nix start'

image:
name: 'nixos/nix'
systemd_options: {}

releases:
latest_version: 2.13.2
latest_url: ~
base_url: 'https://releases.nixos.org/nix/nix-$VERSION/nix-$VERSION-$OS.tar.xz'
file_name: 'nix-$VERSION-$OS.tar.xz'
extracted_dir: 'nix-$VERSION-$OS'
file_format: xz
prerequisites:
exec:
command: 'sh <(curl -L https://nixos.org/nix/install) --daemon'
creates: '/nix'
15 changes: 15 additions & 0 deletions data/nix/hiera.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
:hierarchy:
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}"
- "%{title}/%{repo}/operatingsystem/%{operatingsystem}"
- "%{title}/%{repo}/osfamily/%{osfamily}%{operatingsystemmajrelease}"
- "%{title}/%{repo}/osfamily/%{osfamily}"
- "%{title}/%{repo}/default"
- "%{title}/operatingsystem/%{operatingsystem}%{operatingsystemmajrelease}"
- "%{title}/operatingsystem/%{operatingsystem}"
- "%{title}/osfamily/%{osfamily}%{operatingsystemmajrelease}"
- "%{title}/osfamily/%{osfamily}"
- "%{title}/default"
- "default/%{operatingsystem}%{operatingsystemmajrelease}"
- "default/%{operatingsystem}"
- default
11 changes: 11 additions & 0 deletions data/nix/osfamily/Darwin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
nix::settings:
brew_package_name: 'nix'

user_files:
config:
path: '$HOME/Library/Application\ Support/nix/nix.conf'

user_dirs:
config:
path: '$HOME/Library/Application\ Support/nix/nix.conf'
6 changes: 6 additions & 0 deletions data/nix/osfamily/Debian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
nix::settings:

files:
init:
path: '/etc/default/nix'
3 changes: 3 additions & 0 deletions data/nix/osfamily/RedHat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
nix::settings:
dockerfile_prerequisites: 'RUN yum install -y wget which'
14 changes: 14 additions & 0 deletions data/nix/osfamily/windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
nix::settings:

# If exe or msi package is available for direct download:
package_provider: 'windows'
package_source: 'https://github.com/nix/nix/releases/download/v$VERSION/nix_$VERSION_$OS_$ARCH.msi'

user_files:
config:
path: '%APPDATA%\nix\nix.conf'

user_dirs:
config:
path: '%APPDATA%\nix'

0 comments on commit c40296e

Please sign in to comment.