mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-14 18:21:41 +03:00
23 lines
479 B
Nix
23 lines
479 B
Nix
# This file is intended to be included in your system's `configuration.nix`.
|
|
# Given a device name, it will import the appropriate device configuration, and
|
|
# all the modules from Mobile NixOS.
|
|
#
|
|
# Assuming NIX_PATH contains `mobile-nixos`:
|
|
#
|
|
# ```
|
|
# {
|
|
# imports = [
|
|
# (import <mobile-nixos/lib/configuration.nix> { device = "xxx-yyy"; })
|
|
# ];
|
|
# }
|
|
# ```
|
|
|
|
{ device }:
|
|
|
|
{
|
|
imports = [
|
|
(import (../devices + "/${device}"))
|
|
]
|
|
++ import ../modules/module-list.nix;
|
|
}
|