nix-pkg-mgr
Example:
# Install the 'nix' package manager. - nix-pkg-mgr
Description
Install the nix package manager for the user running this frecklet.
This follows the instructions from the nix homepage.
NOTE: currently, this does not seem to work
TODO: allow installation for other users, and multi-user setups.
Variables
Name | Type | Default | Description |
---|---|---|---|
|
boolean | False | don't verify nix installer signature |
Examples
Example 1
Install the 'nix' package manager.
Code
- nix-pkg-mgr
Example 2
Install the 'nix' package manager, without verifying the installer signature.
Code
- nix-pkg-mgr: disable_signature_verify: true
Code
doc: short_help: Ensure the 'nix' package manager is installed. help: | Install the nix package manager for the user running this frecklet. This follows the instructions from the [nix homepage](https://nixos.org/nix/download.html). NOTE: currently, this does not seem to work TODO: allow installation for other users, and multi-user setups. furter_reading: nix homepage: https://nixos.org/nix/download.html examples: - title: Install the 'nix' package manager. - title: Install the 'nix' package manager, without verifying the installer signature. vars: disable_signature_verify: true args: disable_signature_verify: required: false type: boolean doc: short_help: don't verify nix installer signature default: false cli: is_flag: true param_decls: - --disable-signature-check meta: status: working: false tags: - nix - package-manager - package-management - install frecklets: - frecklet: name: freckfrackery.install-nix type: ansible-role resources: ansible-role: - freckfrackery.install-nix desc: short: installing nix package manager references: "'freckfrackery.install-nix' Ansible role": https://gitlab.com/freckfrackery/freckfrackery.install-nix long: | Install the [nix](https://nixos.org/nix) package manager. {%:: if disable_signature_verify ::%}Don't verify installer signature.{%:: endif ::%} properties: idempotent: true internet: true vars: nix_verify_installer: '{{:: disable_signature_verify | negate ::}}'
frecklecute nix-pkg-mgr --help Usage: frecklecute nix-pkg-mgr [OPTIONS] Install the nix package manager for the user running this frecklet. This follows the instructions from the [nix homepage](https://nixos.org/nix/download.html). NOTE: currently, this does not seem to work TODO: allow installation for other users, and multi-user setups. Options: --disable-signature-check don't verify nix installer signature --help Show this message and exit.
# -*- coding: utf-8 -*- # # module path: pycklets.nix_pkg_mgr.NixPkgMgr # from dataclasses import dataclass from pyckles import AutoPycklet from typing import * # noqa @dataclass class NixPkgMgr(AutoPycklet): """Install the nix package manager for the user running this frecklet. This follows the instructions from the [nix homepage](https://nixos.org/nix/download.html). NOTE: currently, this does not seem to work TODO: allow installation for other users, and multi-user setups. Args: disable_signature_verify: don't verify nix installer signature """ FRECKLET_ID = "nix-pkg-mgr" disable_signature_verify: bool = None def __post_init__(self): super(NixPkgMgr, self).__init__(var_names=["disable_signature_verify"]) frecklet_class = NixPkgMgr
# -*- coding: utf-8 -*- # # module path: pycklets.nix_pkg_mgr.NixPkgMgr # from pyckles import AutoPycklet class NixPkgMgr(AutoPycklet): """Install the nix package manager for the user running this frecklet. This follows the instructions from the [nix homepage](https://nixos.org/nix/download.html). NOTE: currently, this does not seem to work TODO: allow installation for other users, and multi-user setups. Args: disable_signature_verify: don't verify nix installer signature """ FRECKLET_ID = "nix-pkg-mgr" def __init__(self, disable_signature_verify=None): super(NixPkgMgr, self).__init__(var_names=["disable_signature_verify"]) self._disable_signature_verify = disable_signature_verify @property def disable_signature_verify(self): return self._disable_signature_verify @disable_signature_verify.setter def disable_signature_verify(self, disable_signature_verify): self._disable_signature_verify = disable_signature_verify frecklet_class = NixPkgMgr