Compare commits
No commits in common. "3608cc5e33627cfa52408ac26a1ff1d969346194" and "a5cfa37ed3f640e60adf890ecd29a06f1cd0182d" have entirely different histories.
3608cc5e33
...
a5cfa37ed3
@ -167,10 +167,6 @@
|
||||
BRIDGE_VLAN_FILTERING = "y";
|
||||
BRIDGE_IGMP_SNOOPING = "y";
|
||||
|
||||
WATCHDOG = "y";
|
||||
RALINK_WDT = "y"; # watchdog
|
||||
MT7621_WDT = "y"; # or it might be this one
|
||||
|
||||
GPIOLIB="y";
|
||||
GPIO_MT7621 = "y";
|
||||
|
||||
|
@ -34,8 +34,7 @@ in rec {
|
||||
imports = [
|
||||
../modules/tftpboot.nix
|
||||
../modules/wlan.nix
|
||||
../modules/flashable.nix
|
||||
../modules/kexecboot.nix
|
||||
# ./modules/flashable.nix
|
||||
];
|
||||
|
||||
hostname = "arhcive";
|
||||
@ -182,13 +181,12 @@ in rec {
|
||||
};
|
||||
configFile = writeText "rsync.conf" ''
|
||||
pid file = /run/rsyncd.pid
|
||||
uid = backup
|
||||
uid = store
|
||||
[srv]
|
||||
path = /srv
|
||||
use chroot = yes
|
||||
auth users = backup
|
||||
read only = false
|
||||
gid = backup
|
||||
secrets file = ${secrets_file}/.outputs/secrets
|
||||
'';
|
||||
in longrun {
|
||||
@ -203,12 +201,12 @@ in rec {
|
||||
] ;
|
||||
};
|
||||
|
||||
services.default = target {
|
||||
services.default = target {
|
||||
name = "default";
|
||||
contents =
|
||||
let links = config.hardware.networkInterfaces;
|
||||
in with config.services; [
|
||||
links.lo
|
||||
links.lo links.eth links.wlan
|
||||
defaultroute4
|
||||
resolvconf
|
||||
sshd
|
||||
@ -224,12 +222,9 @@ in rec {
|
||||
# ];
|
||||
};
|
||||
|
||||
users.backup = {
|
||||
users.store = {
|
||||
uid=500; gid=500; gecos="Storage owner"; dir="/srv";
|
||||
shell="/dev/null";
|
||||
};
|
||||
groups.backup = {
|
||||
gid=500; usernames = ["backup"];
|
||||
shell="/dev/null"; # authorizedKeys = [];
|
||||
};
|
||||
|
||||
defaultProfile.packages = with pkgs; [e2fsprogs strace tcpdump ];
|
||||
|
@ -17,10 +17,6 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
programs.busybox.applets = [
|
||||
"flashcp"
|
||||
];
|
||||
|
||||
outputs.firmware =
|
||||
let o = config.outputs; in
|
||||
pkgs.runCommand "firmware" {} ''
|
||||
|
@ -26,6 +26,7 @@ in {
|
||||
|
||||
outputs.boot-sh =
|
||||
let
|
||||
inherit (pkgs) kexec-tools;
|
||||
inherit (pkgs.lib.trivial) toHexString;
|
||||
inherit (config.outputs) squashfs kernel;
|
||||
cmdline = concatStringsSep " " config.boot.commandLine;
|
||||
|
@ -17,13 +17,6 @@ extraPkgs // {
|
||||
strace = prev.strace.override { libunwind = null; };
|
||||
|
||||
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 ++ [
|
||||
(fetchpatch {
|
||||
# merge user command line options into DTB chosen
|
||||
|
@ -29,7 +29,7 @@ echo $QEMU_OPTIONS
|
||||
qemu-system-mips \
|
||||
-M malta -m 256 \
|
||||
-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 \
|
||||
-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 \
|
||||
|
Loading…
Reference in New Issue
Block a user