-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdefault.nix
More file actions
39 lines (34 loc) · 970 Bytes
/
default.nix
File metadata and controls
39 lines (34 loc) · 970 Bytes
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
35
36
37
38
39
# SPDX-FileCopyrightText: 2021 Richard Brežák and NixNG contributors
#
# SPDX-License-Identifier: MPL-2.0
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
{ nglib, nixpkgs }:
nglib.makeSystem {
inherit nixpkgs;
system = "x86_64-linux";
name = "initrd";
config = ({ pkgs, ... }: {
runit = {
enable = true;
};
fstab.entries = {
"/" = {
type = "ext4";
device = "/dev/sda1";
};
};
users.users.root.hashedPassword = "$5$Ws9piKbYzt9S6p1R$X4L6xn5UNQnufJUc/K5sKRE.0GuMR.8vp2BwIiglVYB"; # toor
networking.hostName = "initrd";
services.getty."ttyS0" = {
port = "ttyS0";
baudrate = "115200,38400,9600";
options = {
login-program = "${pkgs.busybox}/bin/login";
login-options = [ "\\u" ];
};
};
});
}