Compare commits
No commits in common. "3608cc5e33627cfa52408ac26a1ff1d969346194" and "a5cfa37ed3f640e60adf890ecd29a06f1cd0182d" have entirely different histories.
3608cc5e33
...
a5cfa37ed3
@ -167,10 +167,6 @@
|
|||||||
BRIDGE_VLAN_FILTERING = "y";
|
BRIDGE_VLAN_FILTERING = "y";
|
||||||
BRIDGE_IGMP_SNOOPING = "y";
|
BRIDGE_IGMP_SNOOPING = "y";
|
||||||
|
|
||||||
WATCHDOG = "y";
|
|
||||||
RALINK_WDT = "y"; # watchdog
|
|
||||||
MT7621_WDT = "y"; # or it might be this one
|
|
||||||
|
|
||||||
GPIOLIB="y";
|
GPIOLIB="y";
|
||||||
GPIO_MT7621 = "y";
|
GPIO_MT7621 = "y";
|
||||||
|
|
||||||
|
@ -34,8 +34,7 @@ in rec {
|
|||||||
imports = [
|
imports = [
|
||||||
../modules/tftpboot.nix
|
../modules/tftpboot.nix
|
||||||
../modules/wlan.nix
|
../modules/wlan.nix
|
||||||
../modules/flashable.nix
|
# ./modules/flashable.nix
|
||||||
../modules/kexecboot.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
hostname = "arhcive";
|
hostname = "arhcive";
|
||||||
@ -182,13 +181,12 @@ in rec {
|
|||||||
};
|
};
|
||||||
configFile = writeText "rsync.conf" ''
|
configFile = writeText "rsync.conf" ''
|
||||||
pid file = /run/rsyncd.pid
|
pid file = /run/rsyncd.pid
|
||||||
uid = backup
|
uid = store
|
||||||
[srv]
|
[srv]
|
||||||
path = /srv
|
path = /srv
|
||||||
use chroot = yes
|
use chroot = yes
|
||||||
auth users = backup
|
auth users = backup
|
||||||
read only = false
|
read only = false
|
||||||
gid = backup
|
|
||||||
secrets file = ${secrets_file}/.outputs/secrets
|
secrets file = ${secrets_file}/.outputs/secrets
|
||||||
'';
|
'';
|
||||||
in longrun {
|
in longrun {
|
||||||
@ -203,12 +201,12 @@ in rec {
|
|||||||
] ;
|
] ;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.default = target {
|
services.default = target {
|
||||||
name = "default";
|
name = "default";
|
||||||
contents =
|
contents =
|
||||||
let links = config.hardware.networkInterfaces;
|
let links = config.hardware.networkInterfaces;
|
||||||
in with config.services; [
|
in with config.services; [
|
||||||
links.lo
|
links.lo links.eth links.wlan
|
||||||
defaultroute4
|
defaultroute4
|
||||||
resolvconf
|
resolvconf
|
||||||
sshd
|
sshd
|
||||||
@ -224,12 +222,9 @@ in rec {
|
|||||||
# ];
|
# ];
|
||||||
};
|
};
|
||||||
|
|
||||||
users.backup = {
|
users.store = {
|
||||||
uid=500; gid=500; gecos="Storage owner"; dir="/srv";
|
uid=500; gid=500; gecos="Storage owner"; dir="/srv";
|
||||||
shell="/dev/null";
|
shell="/dev/null"; # authorizedKeys = [];
|
||||||
};
|
|
||||||
groups.backup = {
|
|
||||||
gid=500; usernames = ["backup"];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultProfile.packages = with pkgs; [e2fsprogs strace tcpdump ];
|
defaultProfile.packages = with pkgs; [e2fsprogs strace tcpdump ];
|
||||||
|
@ -17,10 +17,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.busybox.applets = [
|
|
||||||
"flashcp"
|
|
||||||
];
|
|
||||||
|
|
||||||
outputs.firmware =
|
outputs.firmware =
|
||||||
let o = config.outputs; in
|
let o = config.outputs; in
|
||||||
pkgs.runCommand "firmware" {} ''
|
pkgs.runCommand "firmware" {} ''
|
||||||
|
@ -26,6 +26,7 @@ in {
|
|||||||
|
|
||||||
outputs.boot-sh =
|
outputs.boot-sh =
|
||||||
let
|
let
|
||||||
|
inherit (pkgs) kexec-tools;
|
||||||
inherit (pkgs.lib.trivial) toHexString;
|
inherit (pkgs.lib.trivial) toHexString;
|
||||||
inherit (config.outputs) squashfs kernel;
|
inherit (config.outputs) squashfs kernel;
|
||||||
cmdline = concatStringsSep " " config.boot.commandLine;
|
cmdline = concatStringsSep " " config.boot.commandLine;
|
||||||
|
@ -17,13 +17,6 @@ extraPkgs // {
|
|||||||
strace = prev.strace.override { libunwind = null; };
|
strace = prev.strace.override { libunwind = null; };
|
||||||
|
|
||||||
kexec-tools = prev.kexec-tools.overrideAttrs(o: {
|
kexec-tools = prev.kexec-tools.overrideAttrs(o: {
|
||||||
# For kexecboot we copy kexec into a ramdisk on the system being
|
|
||||||
# upgraded from. This is more likely to work if kexec is
|
|
||||||
# statically linked so doesn't have dependencies on store paths that
|
|
||||||
# may not exist on that machine. (We can't nix-copy-closure as
|
|
||||||
# the store may not be on a writable filesystem)
|
|
||||||
LDFLAGS = "-static";
|
|
||||||
|
|
||||||
patches = o.patches ++ [
|
patches = o.patches ++ [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
# merge user command line options into DTB chosen
|
# merge user command line options into DTB chosen
|
||||||
|
@ -29,7 +29,7 @@ echo $QEMU_OPTIONS
|
|||||||
qemu-system-mips \
|
qemu-system-mips \
|
||||||
-M malta -m 256 \
|
-M malta -m 256 \
|
||||||
-echr 16 \
|
-echr 16 \
|
||||||
-append "liminix default console=ttyS0,38400n8 panic=10 oops=panic init=$INIT loglevel=8 root=/dev/vda" \
|
-append "default console=ttyS0,38400n8 panic=10 oops=panic init=$INIT loglevel=8 root=/dev/vda" \
|
||||||
-drive file=$2,format=raw,readonly=on,if=virtio \
|
-drive file=$2,format=raw,readonly=on,if=virtio \
|
||||||
-netdev socket,id=access,mcast=230.0.0.1:1234,localaddr=127.0.0.1 \
|
-netdev socket,id=access,mcast=230.0.0.1:1234,localaddr=127.0.0.1 \
|
||||||
-device virtio-net-pci,disable-legacy=on,disable-modern=off,netdev=access,mac=ba:ad:1d:ea:21:02 \
|
-device virtio-net-pci,disable-legacy=on,disable-modern=off,netdev=access,mac=ba:ad:1d:ea:21:02 \
|
||||||
|
Loading…
Reference in New Issue
Block a user