router: update liminix, refactor
This commit is contained in:
parent
ccd7e80da7
commit
3251fc2698
3 changed files with 6 additions and 8 deletions
|
@ -7,7 +7,6 @@
|
||||||
|
|
||||||
{ config, pkgs, lib, modulesPath, ... } :
|
{ config, pkgs, lib, modulesPath, ... } :
|
||||||
let
|
let
|
||||||
liminix = ./liminix;
|
|
||||||
inherit (pkgs.liminix.services) bundle oneshot longrun;
|
inherit (pkgs.liminix.services) bundle oneshot longrun;
|
||||||
inherit (pkgs) serviceFns;
|
inherit (pkgs) serviceFns;
|
||||||
# EDIT: you can pick your preferred RFC1918 address space
|
# EDIT: you can pick your preferred RFC1918 address space
|
||||||
|
@ -24,16 +23,15 @@ in rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
hardware.ubi = {
|
hardware.ubi = {
|
||||||
# PLEASE remove this when using the real RAM. These are just tweaks to make tftpboot working
|
# PLEASE remove this when using the real ROM. These are just tweaks to make tftpboot working
|
||||||
minIOSize = lib.mkForce "1";
|
minIOSize = lib.mkForce "1";
|
||||||
eraseBlockSize = lib.mkForce "130944";
|
eraseBlockSize = lib.mkForce "130944";
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
(liminix + "/modules/network")
|
(modulesPath + "/network")
|
||||||
(liminix + "/modules/ssh")
|
(modulesPath + "/ssh")
|
||||||
(liminix + "/modules/outputs/ubimage.nix")
|
(modulesPath + "/outputs/ubimage.nix")
|
||||||
#(liminix + "/modules/outputs/ext4fs.nix")
|
|
||||||
];
|
];
|
||||||
rootfsType = "ubifs";
|
rootfsType = "ubifs";
|
||||||
hostname = "hackens-router"; # EDIT
|
hostname = "hackens-router"; # EDIT
|
||||||
|
|
|
@ -3,6 +3,6 @@
|
||||||
, liminix-config ? ./configuration.nix
|
, liminix-config ? ./configuration.nix
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
liminix = ./liminix;
|
liminix = builtins.toString ./liminix;
|
||||||
in
|
in
|
||||||
(import liminix { inherit nixpkgs liminix-config; device = import (liminix + "/devices/belkin-rt3200"); })
|
(import liminix { inherit nixpkgs liminix-config; device = import (liminix + "/devices/belkin-rt3200"); })
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 7232a0343513cb33691ebc9e582da87abeff34a2
|
Subproject commit ce348f2b8ab49ab7ac46537f9bf17e651bcdd3b7
|
Loading…
Reference in a new issue