move all output modules to subdirectory, trash standard.nix
standard.nix isn't, is the essence here. Not all devices support flashimage as it is currently defined - some have diskimage, some have neither
This commit is contained in:
parent
53fed8839a
commit
c81e7c4d35
12 changed files with 28 additions and 20 deletions
|
@ -24,13 +24,18 @@ in rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../modules/standard.nix
|
|
||||||
../modules/wlan.nix
|
../modules/wlan.nix
|
||||||
../modules/network
|
../modules/network
|
||||||
../modules/vlan
|
../modules/vlan
|
||||||
../modules/ssh
|
../modules/ssh
|
||||||
../modules/watchdog
|
../modules/watchdog
|
||||||
../modules/mount
|
../modules/mount
|
||||||
|
|
||||||
|
../modules/outputs/tftpboot.nix
|
||||||
|
../modules/outputs/kexecboot.nix
|
||||||
|
../modules/outputs/flashimage.nix
|
||||||
|
../modules/outputs/jffs2.nix
|
||||||
|
../modules/outputs/ubifs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hostname = "arhcive";
|
hostname = "arhcive";
|
||||||
|
|
|
@ -33,7 +33,11 @@ in rec {
|
||||||
../modules/ntp
|
../modules/ntp
|
||||||
../modules/ppp
|
../modules/ppp
|
||||||
../modules/ssh
|
../modules/ssh
|
||||||
../modules/standard.nix
|
../modules/outputs/tftpboot.nix
|
||||||
|
../modules/outputs/kexecboot.nix
|
||||||
|
../modules/outputs/flashimage.nix
|
||||||
|
../modules/outputs/jffs2.nix
|
||||||
|
../modules/outputs/ubifs.nix
|
||||||
../modules/vlan
|
../modules/vlan
|
||||||
../modules/wlan.nix
|
../modules/wlan.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -30,7 +30,11 @@ in rec {
|
||||||
../modules/hostapd
|
../modules/hostapd
|
||||||
../modules/bridge
|
../modules/bridge
|
||||||
../modules/ssh
|
../modules/ssh
|
||||||
../modules/standard.nix
|
../modules/outputs/tftpboot.nix
|
||||||
|
../modules/outputs/kexecboot.nix
|
||||||
|
../modules/outputs/flashimage.nix
|
||||||
|
../modules/outputs/jffs2.nix
|
||||||
|
../modules/outputs/ubifs.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
hostname = "extneder";
|
hostname = "extneder";
|
||||||
|
|
|
@ -34,7 +34,6 @@ in rec {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
../modules/wlan.nix
|
../modules/wlan.nix
|
||||||
../modules/standard.nix
|
|
||||||
../modules/network
|
../modules/network
|
||||||
../modules/ppp
|
../modules/ppp
|
||||||
../modules/dnsmasq
|
../modules/dnsmasq
|
||||||
|
@ -44,6 +43,11 @@ in rec {
|
||||||
../modules/bridge
|
../modules/bridge
|
||||||
../modules/ntp
|
../modules/ntp
|
||||||
../modules/ssh
|
../modules/ssh
|
||||||
|
../modules/outputs/tftpboot.nix
|
||||||
|
../modules/outputs/kexecboot.nix
|
||||||
|
../modules/outputs/flashimage.nix
|
||||||
|
../modules/outputs/jffs2.nix
|
||||||
|
../modules/outputs/ubifs.nix
|
||||||
];
|
];
|
||||||
rootfsType = "jffs2";
|
rootfsType = "jffs2";
|
||||||
hostname = "rotuer";
|
hostname = "rotuer";
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
./ramdisk.nix
|
./ramdisk.nix
|
||||||
./squashfs.nix
|
./squashfs.nix
|
||||||
./ssh
|
./ssh
|
||||||
./standard.nix
|
|
||||||
./tftpboot.nix
|
./tftpboot.nix
|
||||||
./ubifs.nix
|
./ubifs.nix
|
||||||
./users.nix
|
./users.nix
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
let
|
let
|
||||||
inherit (lib) mkOption mkForce types concatStringsSep;
|
inherit (lib) mkOption mkForce types concatStringsSep;
|
||||||
in {
|
in {
|
||||||
imports = [ ./ramdisk.nix ];
|
imports = [ ../ramdisk.nix ];
|
||||||
options.system.outputs = {
|
options.system.outputs = {
|
||||||
kexecboot = mkOption {
|
kexecboot = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
|
@ -8,7 +8,7 @@ let
|
||||||
inherit (lib) mkOption types concatStringsSep;
|
inherit (lib) mkOption types concatStringsSep;
|
||||||
cfg = config.boot.tftp;
|
cfg = config.boot.tftp;
|
||||||
in {
|
in {
|
||||||
imports = [ ./ramdisk.nix ];
|
imports = [ ../ramdisk.nix ];
|
||||||
options.boot.tftp.freeSpaceBytes = mkOption {
|
options.boot.tftp.freeSpaceBytes = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
default = 0;
|
default = 0;
|
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
# "standard" modules that aren't fundamentally required,
|
|
||||||
# but are probably useful in most common workflows and
|
|
||||||
# you should have to opt out of instead of into
|
|
||||||
imports = [
|
|
||||||
./tftpboot.nix
|
|
||||||
./kexecboot.nix
|
|
||||||
./outputs/flashimage.nix
|
|
||||||
./jffs2.nix
|
|
||||||
./ubifs.nix
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -2,6 +2,10 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./vanilla-configuration.nix
|
./vanilla-configuration.nix
|
||||||
./modules/standard.nix
|
./modules/outputs/tftpboot.nix
|
||||||
|
./modules/outputs/kexecboot.nix
|
||||||
|
./modules/outputs/flashimage.nix
|
||||||
|
./modules/outputs/jffs2.nix
|
||||||
|
./modules/outputs/ubifs.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue