-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathflake.nix
42 lines (38 loc) · 1.05 KB
/
flake.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
35
36
37
38
39
40
41
42
{
inputs = {
# Unstable nixpkgs, required for now.
nixpkgs.url = "github:nixos/nixpkgs";
# This repository.
x1e-nixos-config.url = "github:kuruczgy/x1e-nixos-config";
x1e-nixos-config.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{
self,
nixpkgs,
x1e-nixos-config,
}:
{
# Change "system" to your chosen hostname here:
nixosConfigurations.system = nixpkgs.lib.nixosSystem {
modules = [
x1e-nixos-config.nixosModules.x1e
{
networking.hostName = "system";
hardware.deviceTree.name = "qcom/x1e80100-lenovo-yoga-slim7x.dtb";
nixpkgs.hostPlatform.system = "aarch64-linux";
# Uncomment this to allow unfree packages.
# nixpkgs.config.allowUnfree = true;
nix = {
channel.enable = false;
settings.experimental-features = [
"nix-command"
"flakes"
];
};
}
./configuration.nix
];
};
};
}