forked from DGNum/liminix
move output module imports example -> device
The outputs available are a characteristic of the device, not the example.
This commit is contained in:
parent
c81e7c4d35
commit
5eeb277564
16 changed files with 44 additions and 50 deletions
|
@ -48,7 +48,12 @@
|
|||
'';
|
||||
};
|
||||
in {
|
||||
imports = [ ../../modules/arch/aarch64.nix ];
|
||||
imports = [
|
||||
../../modules/arch/aarch64.nix
|
||||
../../modules/outputs/tftpboot.nix
|
||||
../../modules/outputs/ubifs.nix
|
||||
];
|
||||
config = {
|
||||
kernel = {
|
||||
src = pkgs.pkgsBuildBuild.fetchurl {
|
||||
name = "linux.tar.gz";
|
||||
|
@ -220,6 +225,6 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../modules/outputs/jffs2.nix
|
||||
];
|
||||
config = {
|
||||
kernel = {
|
||||
src = pkgs.pkgsBuildBuild.fetchurl {
|
||||
|
|
|
@ -96,6 +96,9 @@
|
|||
imports = [
|
||||
../../modules/network
|
||||
../../modules/arch/mipseb.nix
|
||||
../../modules/outputs/tftpboot.nix
|
||||
../../modules/outputs/flashimage.nix
|
||||
../../modules/outputs/jffs2.nix
|
||||
];
|
||||
|
||||
programs.busybox.options = {
|
||||
|
|
|
@ -52,7 +52,12 @@
|
|||
klibBuild = config.system.outputs.kernel.modulesupport;
|
||||
};
|
||||
in {
|
||||
imports = [ ../../modules/arch/mipsel.nix ];
|
||||
imports = [
|
||||
../../modules/arch/mipsel.nix
|
||||
../../modules/outputs/tftpboot.nix
|
||||
../../modules/outputs/flashimage.nix
|
||||
../../modules/outputs/jffs2.nix
|
||||
];
|
||||
hardware = {
|
||||
defaultOutput = "flashimage";
|
||||
loadAddress = lim.parseInt "0x80000000";
|
||||
|
|
|
@ -52,7 +52,12 @@
|
|||
hash = "sha256:1dkhfznmdz6s50kwc841x3wj0h6zg6icg5g2bim9pvg66as2vmh9";
|
||||
};
|
||||
in {
|
||||
imports = [ ../../modules/arch/mipsel.nix ];
|
||||
imports = [
|
||||
../../modules/arch/mipsel.nix
|
||||
../../modules/outputs/tftpboot.nix
|
||||
../../modules/outputs/flashimage.nix
|
||||
../../modules/outputs/jffs2.nix
|
||||
];
|
||||
filesystem = dir {
|
||||
lib = dir {
|
||||
firmware = dir {
|
||||
|
|
|
@ -12,7 +12,13 @@
|
|||
|
||||
module = {pkgs, config, lib, lim, ... }:
|
||||
let openwrt = pkgs.openwrt; in {
|
||||
imports = [ ../../modules/arch/arm.nix ];
|
||||
imports = [
|
||||
../../modules/arch/arm.nix
|
||||
../modules/outputs/tftpboot.nix
|
||||
../modules/outputs/diskimage.nix
|
||||
../modules/outputs/extlinux.nix
|
||||
../modules/outputs/ext4fs.nix
|
||||
];
|
||||
kernel = {
|
||||
src = pkgs.pkgsBuildBuild.fetchurl {
|
||||
name = "linux.tar.gz";
|
||||
|
@ -46,10 +52,6 @@
|
|||
# WARNING: unmet direct dependencies detected for ARCH_WANT_LIBATA_LEDS
|
||||
ATA = "y";
|
||||
|
||||
# switch is DSA
|
||||
# CONFIG_NET_DSA_MV88E6060=y
|
||||
# CONFIG_NET_DSA_MV88E6XXX=y
|
||||
# CONFIG_NET_DSA_MV88E6XXX_GLOBAL2=y
|
||||
|
||||
# CONFIG_REGMAP=y
|
||||
# CONFIG_REGMAP_I2C=y
|
||||
|
|
|
@ -30,14 +30,7 @@ in rec {
|
|||
../modules/ssh
|
||||
../modules/watchdog
|
||||
../modules/mount
|
||||
|
||||
../modules/outputs/tftpboot.nix
|
||||
../modules/outputs/kexecboot.nix
|
||||
../modules/outputs/flashimage.nix
|
||||
../modules/outputs/jffs2.nix
|
||||
../modules/outputs/ubifs.nix
|
||||
];
|
||||
|
||||
hostname = "arhcive";
|
||||
|
||||
kernel = {
|
||||
|
|
|
@ -33,11 +33,6 @@ in rec {
|
|||
../modules/ntp
|
||||
../modules/ppp
|
||||
../modules/ssh
|
||||
../modules/outputs/tftpboot.nix
|
||||
../modules/outputs/kexecboot.nix
|
||||
../modules/outputs/flashimage.nix
|
||||
../modules/outputs/jffs2.nix
|
||||
../modules/outputs/ubifs.nix
|
||||
../modules/vlan
|
||||
../modules/wlan.nix
|
||||
];
|
||||
|
|
|
@ -30,11 +30,6 @@ in rec {
|
|||
../modules/hostapd
|
||||
../modules/bridge
|
||||
../modules/ssh
|
||||
../modules/outputs/tftpboot.nix
|
||||
../modules/outputs/kexecboot.nix
|
||||
../modules/outputs/flashimage.nix
|
||||
../modules/outputs/jffs2.nix
|
||||
../modules/outputs/ubifs.nix
|
||||
];
|
||||
|
||||
hostname = "extneder";
|
||||
|
|
|
@ -8,7 +8,6 @@ in rec {
|
|||
../modules/network
|
||||
../modules/ssh
|
||||
../modules/vlan
|
||||
../modules/outputs/flashimage.nix
|
||||
];
|
||||
|
||||
boot.tftp = {
|
||||
|
|
|
@ -43,11 +43,6 @@ in rec {
|
|||
../modules/bridge
|
||||
../modules/ntp
|
||||
../modules/ssh
|
||||
../modules/outputs/tftpboot.nix
|
||||
../modules/outputs/kexecboot.nix
|
||||
../modules/outputs/flashimage.nix
|
||||
../modules/outputs/jffs2.nix
|
||||
../modules/outputs/ubifs.nix
|
||||
];
|
||||
rootfsType = "jffs2";
|
||||
hostname = "rotuer";
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
./ramdisk.nix
|
||||
./squashfs.nix
|
||||
./ssh
|
||||
./tftpboot.nix
|
||||
./ubifs.nix
|
||||
./outputs/tftpboot.nix
|
||||
./outputs/ubifs.nix
|
||||
./users.nix
|
||||
./vlan
|
||||
./watchdog
|
||||
|
|
|
@ -3,17 +3,17 @@ let
|
|||
inherit (pkgs.pseudofile) dir symlink;
|
||||
in {
|
||||
imports = [
|
||||
../../vanilla-configuration.nix
|
||||
../../modules/squashfs.nix
|
||||
../../modules/ext4fs.nix
|
||||
../../modules/outputs/ext4fs.nix
|
||||
];
|
||||
config.rootfsType = "ext4";
|
||||
config.filesystem = dir {
|
||||
hello = {
|
||||
type = "f";
|
||||
uid = 7;
|
||||
gid = 24;
|
||||
file = "hello world";
|
||||
config = {
|
||||
rootfsType = "ext4";
|
||||
filesystem = dir {
|
||||
hello = {
|
||||
type = "f";
|
||||
uid = 7;
|
||||
gid = 24;
|
||||
file = "hello world";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,10 +2,5 @@
|
|||
{
|
||||
imports = [
|
||||
./vanilla-configuration.nix
|
||||
./modules/outputs/tftpboot.nix
|
||||
./modules/outputs/kexecboot.nix
|
||||
./modules/outputs/flashimage.nix
|
||||
./modules/outputs/jffs2.nix
|
||||
./modules/outputs/ubifs.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@ let
|
|||
svc = config.system.service;
|
||||
in rec {
|
||||
imports = [
|
||||
./modules/tftpboot.nix
|
||||
./modules/wlan.nix
|
||||
./modules/network
|
||||
./modules/ntp
|
||||
|
|
Loading…
Reference in a new issue