diff --git a/data/nix/default.yaml b/data/nix/default.yaml index 035179f..97cc395 100644 --- a/data/nix/default.yaml +++ b/data/nix/default.yaml @@ -3,40 +3,34 @@ nix::settings: tp_prerequisites: {} exec_prerequisites: install: - command: 'sh <(curl -L https://nixos.org/nix/install) --daemon' +# command: 'sh <(curl -L https://nixos.org/nix/install) --daemon' + command: 'curl -L https://nixos.org/nix/install -o /tmp/nix_install ; sh /tmp/nix_install --daemon | yes' creates: '/nix' + provider: posix 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' + documentation: 'https://nixos.org/learn.html' + source: 'https://github.com/nixos/nix' + description: 'The purely functional package manager' # Configured: +package -source -file +image - install_method: 'source' + install_method: 'package' - packages: [] + packages: {} manage_package: false - prerequisites: - exec: - command: 'sh <(curl -L https://nixos.org/nix/install) --daemon' - creates: '/nix' services: - main: - name: nix-daemon + 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' @@ -74,22 +68,24 @@ nix::settings: status: 'nix status' version_command: 'nix --version' help_command: 'nix --help' - run_commands: - start: - command: 'nix start' image: name: 'nixos/nix' systemd_options: {} - releases: + release: 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: + + setupa: + enable: true + resources: exec: - command: 'sh <(curl -L https://nixos.org/nix/install) --daemon' - creates: '/nix' + install_nix: + command: 'curl -L https://nixos.org/nix/install --daemon | bash' + creates: '/nix' + provider: shell \ No newline at end of file diff --git a/data/nix/osfamily/Darwin.yaml b/data/nix/osfamily/Darwin.yaml deleted file mode 100644 index 28548fc..0000000 --- a/data/nix/osfamily/Darwin.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -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' \ No newline at end of file diff --git a/data/nix/osfamily/Debian.yaml b/data/nix/osfamily/Debian.yaml deleted file mode 100644 index b3ed05e..0000000 --- a/data/nix/osfamily/Debian.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -nix::settings: - - files: - init: - path: '/etc/default/nix' \ No newline at end of file diff --git a/data/nix/osfamily/RedHat.yaml b/data/nix/osfamily/RedHat.yaml deleted file mode 100644 index 4c7da89..0000000 --- a/data/nix/osfamily/RedHat.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -nix::settings: - dockerfile_prerequisites: 'RUN yum install -y wget which' diff --git a/data/nix/osfamily/windows.yaml b/data/nix/osfamily/windows.yaml deleted file mode 100644 index 98b96c6..0000000 --- a/data/nix/osfamily/windows.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -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' \ No newline at end of file