### Example NixOS Directory Structure Source: https://github.com/cynicsketch/nix-mineral/blob/main/README.md Provides an example of the expected directory structure for a manual installation of nix-mineral within `/etc/nixos`. This includes the main configuration file, hardware configuration, nix-mineral.nix, and the nm-overrides directory with various submodules. ```text $ tree /etc/nixos /etc/nixos ├── configuration.nix ├── hardware-configuration.nix ├── nix-mineral.nix ├── nm-overrides │   ├── compatibility │   │   ├── allow-unsigned-modules.nix │   │   ├── binfmt-misc.nix │   │   ├── busmaster-bit.nix │   │   ├── io-uring.nix │   │   ├── ip-forward.nix │   │   └── no-lockdown.nix │   ├── desktop │   │   ├── allow-multilib.nix │   │   ├── allow-unprivileged-userns.nix │   │   ├── doas-sudo-wrapper.nix │   │   ├── hideproc-relaxed.nix │   │   ├── home-exec.nix │   │   ├── nix-allow-all-users.nix │   │   ├── tmp-exec.nix │   │   ├── usbguard-allow-at-boot.nix │   │   ├── usbguard-disable.nix │   │   ├── usbguard-gnome-integration.nix │   │   ├── var-lib-exec.nix │   │   └── yama-relaxed.nix │   ├── performance │   │   ├── allow-smt.nix │   │   ├── iommu-passthrough.nix │   │   ├── no-mitigations.nix │   │   └── no-pti.nix │   ├── security │   │   ├── hardened-malloc.nix │   │   ├── lock-root.nix │   │   ├── minimum-swappiness.nix │   │   ├── sysrq-sak.nix │   │   └── tcp-timestamp-disable.nix │   └── software-choice │   ├── doas-no-sudo.nix │   ├── hardened-kernel.nix │   ├── no-firewall.nix │   └── secure-chrony.nix └── nm-overrides.nix ``` -------------------------------- ### Automatic Installation with fetchgit Source: https://github.com/cynicsketch/nix-mineral/blob/main/README.md This snippet demonstrates how to automatically install the nix-mineral module using `fetchgit`. It shows how to specify the URL, and choose between a specific tag, commit hash, or the HEAD of the repository. It also explains how to manage the `sha256` hash for integrity checking. ```nix { pkgs, ... }: let nix-mineral = pkgs.fetchgit { url = "https://github.com/cynicsketch/nix-mineral.git"; ref = "refs/tags/v0.1.6-alpha"; rev = "cfaf4cf15c7e6dc7f882c471056b57ea9ea0ee61"; ref = "HEAD"; sha256 = "1mac9cnywpc4a0x1f5n45yn4yhady1affdmkimt2lg8rcw65ajh2"; }; in { imports = [ "${nix-mineral}/nix-mineral.nix" ]; } ``` -------------------------------- ### Manual Installation Import Source: https://github.com/cynicsketch/nix-mineral/blob/main/README.md Illustrates how to import nix-mineral.nix into your configuration.nix for manual installations. This method requires manual updates if the repository changes. ```nix { imports = [ ./nix-mineral.nix # Other imports ... ]; # The rest of your configuration ... } ``` -------------------------------- ### Importing Nix-Mineral in Flakes Source: https://github.com/cynicsketch/nix-mineral/blob/main/README.md Shows how to import the nix-mineral.nix file from the flake input into your NixOS configuration. This makes the module available for use in your system configuration. ```nix { imports = [ "${inputs.nix-mineral}/nix-mineral.nix" # Other imports ... ]; # The rest of your configuration ... } ``` -------------------------------- ### Nix Flake Input Configuration Source: https://github.com/cynicsketch/nix-mineral/blob/main/README.md Demonstrates how to add nix-mineral as a non-flake input to your Nix flake configuration. This allows for easy updates and version pinning by referencing specific commits or tags. ```nix { inputs = { # ... nix-mineral = { url = "github:cynicsketch/nix-mineral"; # Refers to the main branch and is updated to the latest commit when you use "nix flake update" # url = "github:cynicsketch/nix-mineral/v0.1.6-alpha" # Refers to a specific tag and follows that tag until you change it # url = "github:cynicsketch/nix-mineral/cfaf4cf15c7e6dc7f882c471056b57ea9ea0ee61" # Refers to a specific commit and follows that until you change it flake = false; }; # ... }; } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.