forked from DGNum/liminix
make rotuer example build again
This commit is contained in:
parent
28264febdb
commit
4342d3403f
1 changed files with 7 additions and 5 deletions
|
@ -31,10 +31,12 @@ in rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./modules/wlan.nix
|
../modules/wlan.nix
|
||||||
./modules/tftpboot.nix
|
../modules/tftpboot.nix
|
||||||
# ./modules/flashimage.nix
|
../modules/flashimage.nix
|
||||||
|
../modules/jffs2.nix
|
||||||
];
|
];
|
||||||
|
rootfsType = "jffs2";
|
||||||
|
|
||||||
kernel = {
|
kernel = {
|
||||||
config = {
|
config = {
|
||||||
|
@ -202,7 +204,7 @@ in rec {
|
||||||
in oneshot {
|
in oneshot {
|
||||||
name = "let-the-ip-flow";
|
name = "let-the-ip-flow";
|
||||||
up = ''
|
up = ''
|
||||||
${pkgs.nftables}/bin/nft -f ${./nat.nft}
|
${pkgs.nftables}/bin/nft -f ${../nat.nft}
|
||||||
echo 1 > ${filename}
|
echo 1 > ${filename}
|
||||||
'';
|
'';
|
||||||
down = "echo 0 > ${filename}";
|
down = "echo 0 > ${filename}";
|
||||||
|
@ -224,5 +226,5 @@ in rec {
|
||||||
sshd
|
sshd
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
defaultProfile.packages = with pkgs; [ nftables strace tcpdump ] ;
|
defaultProfile.packages = with pkgs; [ nftables tcpdump ] ;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue