forked from cleverca22/not-os
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nixos-compat.nix
34 lines (30 loc) · 841 Bytes
/
nixos-compat.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ config, lib, ... }:
with lib;
{
options = {
systemd = {
globalEnvironment = mkOption {};
packages = mkOption {};
services = mkOption {
type = types.attrsOf types.unspecified;
};
sockets = mkOption {};
targets = mkOption {};
tmpfiles = mkOption {};
user = mkOption {};
};
# Copied from nixpkgs nixos/modules/system/boot/stage-1.nix
boot.initrd.enable = mkOption {
type = types.bool;
default = !config.boot.isContainer;
defaultText = "!config.boot.isContainer";
description = ''
Whether to enable the NixOS initial RAM disk (initrd). This may be
needed to perform some initialisation tasks (like mounting
network/encrypted file systems) before continuing the boot process.
'';
};
};
config = {
};
}