-
-
Save jackjennings/9409019662d7017c850ac25141e20d74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ...}: | |
{ | |
imports = [ | |
./hardware-configuration.nix | |
]; | |
boot = { | |
kernel = { | |
sysctl."vm.overcommit_memory" = "1"; | |
}; | |
loader = { | |
grub.device = "/dev/vda"; | |
grub.enable = true; | |
grub.version = 2; | |
}; | |
}; | |
nix.useSandbox = false; | |
nix.package = pkgs.nixUnstable; | |
environment = { | |
systemPackages = with pkgs; [ | |
curl | |
gcc | |
git | |
nix-repl | |
tmux | |
wget | |
nixopsUnstable | |
awscli | |
termite.terminfo | |
python3 | |
]; | |
}; | |
i18n = { | |
defaultLocale = "en_US.UTF-8"; | |
}; | |
networking = { | |
hostName = "sister-bot"; | |
}; | |
nixpkgs.config = { | |
allowBroken = true; | |
allowUnfree = true; | |
}; | |
nix.nixPath = [ | |
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs" | |
"nixos-config=/etc/nixos/configuration.nix" | |
"/nix/var/nix/profiles/per-user/root/channels" | |
(let | |
sshConfigFile = | |
pkgs.writeText "ssh_config" '' | |
Host github.com | |
IdentityFile /etc/ssh/ssh_host_rsa_key | |
StrictHostKeyChecking=no | |
UserKnownHostsFile /dev/null | |
''; | |
in | |
"ssh-config-file=${sshConfigFile}" | |
) | |
]; | |
programs = { | |
fish.enable = true; | |
vim.defaultEditor = true; | |
ssh = { | |
startAgent = true; | |
extraConfig = " | |
Host github.com | |
IdentityFile /etc/ssh/ssh_host_rsa_key | |
StrictHostKeyChecking=no | |
"; | |
}; | |
}; | |
services = { | |
openssh = { | |
enable = true; | |
permitRootLogin = "prohibit-password"; | |
}; | |
}; | |
systemd.services.deploymentConfiguration = { | |
description = "Updates staging nixops deployment"; | |
wantedBy = [ "multi-user.target" ]; | |
serviceConfig = { | |
Type = "simple"; | |
User = "root"; | |
}; | |
script = | |
let | |
staging = import ./environment/staging.nix; | |
production = import ./environment/production.nix; | |
in | |
'' | |
${pkgs.nixops}/bin/nixops modify -d staging ${staging}/deploy/webserver.nix ${staging}/deploy/environment/staging.nix | |
${pkgs.nixops}/bin/nixops modify -d production ${production}/deploy/webserver.nix ${production}/deploy/environment/production.nix | |
''; | |
}; | |
systemd.services.cleanup = { | |
description = "Delete all NixOS generations older than 5 generations"; | |
script = '' | |
ls -1d system-*-link | head -n -5 | xargs --no-run-if-empty rm | |
exec ${config.nix.package.out}/bin/nix-collect-garbage | |
''; | |
serviceConfig = { | |
Type = "oneshot"; | |
User = "root"; | |
WorkingDirectory = "/nix/var/nix/profiles"; | |
}; | |
}; | |
systemd.timers.cleanup = { | |
wantedBy = [ "multi-user.target" ]; | |
partOf = [ "cleanup.service" ]; | |
timerConfig = { | |
OnCalendar = "hourly"; | |
}; | |
}; | |
time.timeZone = "America/Los_Angeles"; | |
users = { | |
extraUsers = { | |
root = { | |
shell = "/run/current-system/sw/bin/fish"; | |
openssh.authorizedKeys.keys = with import ./ssh-keys.nix; [ taohansen jackjennings ]; | |
}; | |
}; | |
}; | |
system.stateVersion = "nixos-unstable"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system: "x86_64-linux", multi-user?: no, version: nix-env (Nix) 2.1.1, channels(root): "nixos-19.03pre152634.218ce4de508", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@sister-bot ~# nixos-rebuild switch --show-trace | |
error: while evaluating the attribute 'system.build.nixos-rebuild' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/installer/tools/tools.nix:77:14: | |
while evaluating 'makeProg' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/installer/tools/tools.nix:9:14, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/installer/tools/tools.nix:28:5: | |
while evaluating the module argument `pkgs' in "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/installer/tools/tools.nix": | |
while evaluating the attribute '_module.args.pkgs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:46: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:75:45, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:336:9: | |
while evaluating the option `_module.args': | |
while evaluating the attribute 'mergedValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:369:5: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:369:32, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:369:19: | |
while evaluating 'merge' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:276:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:372:8: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:199:9, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:9: | |
while evaluating 'filterAttrs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:115:23, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:35: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:116:18: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:116:29, called from undefined position: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:51, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:116:62: | |
while evaluating the attribute 'pkgs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:335:7: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:86, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:335:15: | |
while evaluating the attribute 'optionalValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:376:5: | |
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:362:9: | |
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:7: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:16: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:17: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:28, called from undefined position: | |
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:416:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:349:62: | |
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:282:55: | |
while evaluating the attribute 'pkgs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/misc/nixpkgs.nix:210:7: | |
while evaluating the attribute 'pkgs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:46: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:75:45, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:336:9: | |
while evaluating the option `nixpkgs.pkgs': | |
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:374:5: | |
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:362:9: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:358:19, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:358:14: | |
while evaluating the attribute 'value._type' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:456:73: | |
while evaluating the attribute 'value.content' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:517:14: | |
while evaluating the attribute 'default' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/misc/nixpkgs.nix:68:7: | |
while evaluating the file '/nix/store/prfnd44mmlsj71kd560m478prrjykwvg-nixos-19.03pre152634.218ce4de508/nixos/default.nix': | |
evaluation aborted with the following error message: ' | |
This version of Nixpkgs requires Nix >= 2.0, please upgrade: | |
- If you are running NixOS, `nixos-rebuild' can be used to upgrade your system. | |
- Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to imperatively | |
upgrade Nix. You may use `nix-env --version' to check which version you have. | |
- If you installed Nix using the install script (https://nixos.org/nix/install), | |
it is safe to upgrade by running it again: | |
curl https://nixos.org/nix/install | sh | |
For more information, please see the NixOS release notes at | |
https://nixos.org/nixos/manual or locally at | |
/nix/store/prfnd44mmlsj71kd560m478prrjykwvg-nixos-19.03pre152634.218ce4de508/nixos/doc/manual/release-notes. | |
If you need further help, see https://nixos.org/nixos/support.html | |
' | |
building Nix... | |
error: while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:75:45, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:336:9: | |
while evaluating the option `nix.package': | |
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:374:5: | |
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:362:9: | |
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:7: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:16: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:17: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:28, called from undefined position: | |
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:416:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:349:62: | |
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:232:58: | |
while evaluating the attribute 'config.package' at /etc/nixos/configuration.nix:22:3: | |
while evaluating the module argument `pkgs' in "/etc/nixos/configuration.nix": | |
while evaluating the attribute '_module.args.pkgs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:46: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:75:45, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:336:9: | |
while evaluating the option `_module.args': | |
while evaluating the attribute 'mergedValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:369:5: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:369:32, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:369:19: | |
while evaluating 'merge' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:276:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:372:8: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:199:9, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:9: | |
while evaluating 'filterAttrs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:115:23, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:35: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:116:18: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:116:29, called from undefined position: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:51, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:116:62: | |
while evaluating the attribute 'pkgs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:335:7: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:86, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:335:15: | |
while evaluating the attribute 'optionalValue' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:376:5: | |
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:362:9: | |
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:7: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:16: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:17: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:28, called from undefined position: | |
while evaluating 'dischargeProperties' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:416:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:349:62: | |
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:282:55: | |
while evaluating the attribute 'pkgs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/misc/nixpkgs.nix:210:7: | |
while evaluating the attribute 'pkgs' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:46: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:75:45, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating the attribute 'value' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:336:9: | |
while evaluating the option `nixpkgs.pkgs': | |
while evaluating the attribute 'isDefined' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:374:5: | |
while evaluating the attribute 'values' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:362:9: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:358:19, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:358:14: | |
while evaluating the attribute 'value._type' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:456:73: | |
while evaluating the attribute 'value.content' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:517:14: | |
while evaluating the attribute 'default' at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/misc/nixpkgs.nix:68:7: | |
while evaluating the file '/nix/store/prfnd44mmlsj71kd560m478prrjykwvg-nixos-19.03pre152634.218ce4de508/nixos/default.nix': | |
evaluation aborted with the following error message: ' | |
This version of Nixpkgs requires Nix >= 2.0, please upgrade: | |
- If you are running NixOS, `nixos-rebuild' can be used to upgrade your system. | |
- Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to imperatively | |
upgrade Nix. You may use `nix-env --version' to check which version you have. | |
- If you installed Nix using the install script (https://nixos.org/nix/install), | |
it is safe to upgrade by running it again: | |
curl https://nixos.org/nix/install | sh | |
For more information, please see the NixOS release notes at | |
https://nixos.org/nixos/manual or locally at | |
/nix/store/prfnd44mmlsj71kd560m478prrjykwvg-nixos-19.03pre152634.218ce4de508/nixos/doc/manual/release-notes. | |
If you need further help, see https://nixos.org/nixos/support.html | |
' | |
error: evaluation aborted with the following error message: ' | |
This version of Nixpkgs requires Nix >= 2.0, please upgrade: | |
- If you are running NixOS, `nixos-rebuild' can be used to upgrade your system. | |
- Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to imperatively | |
upgrade Nix. You may use `nix-env --version' to check which version you have. | |
- If you installed Nix using the install script (https://nixos.org/nix/install), | |
it is safe to upgrade by running it again: | |
curl https://nixos.org/nix/install | sh | |
For more information, please see the NixOS release notes at | |
https://nixos.org/nixos/manual or locally at | |
/nix/store/prfnd44mmlsj71kd560m478prrjykwvg-nixos-19.03pre152634.218ce4de508/nixos/doc/manual/release-notes. | |
If you need further help, see https://nixos.org/nixos/support.html | |
' | |
/tmp/nixos-rebuild.SdjATM/nix | |
building the system configuration... | |
error: while evaluating the attribute ‘config.system.build.toplevel’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/activation/top-level.nix:272:5: | |
while evaluating ‘foldr’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:36:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/activation/top-level.nix:136:12: | |
while evaluating ‘fold'’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:39:15, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:43:8: | |
while evaluating ‘showWarnings’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/activation/top-level.nix:100:18, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/activation/top-level.nix:107:16: | |
while evaluating ‘foldr’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:36:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/system/activation/top-level.nix:100:23: | |
while evaluating ‘fold'’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:39:15, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:43:8: | |
while evaluating the attribute ‘warnings’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:46: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:75:45, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating the attribute ‘value’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:336:9: | |
while evaluating the option `warnings': | |
while evaluating the attribute ‘isDefined’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:374:5: | |
while evaluating the attribute ‘values’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:362:9: | |
while evaluating the attribute ‘values’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:7: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:16: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:17: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:28, called from undefined position: | |
while evaluating ‘dischargeProperties’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:416:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:349:62: | |
while evaluating the attribute ‘value’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:232:58: | |
while evaluating the attribute ‘config.warnings’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/tasks/network-interfaces-scripted.nix:53:7: | |
while evaluating ‘flatten’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:114:13, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/tasks/network-interfaces-scripted.nix:53:18: | |
while evaluating ‘mapAttrsToList’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:224:23, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/tasks/network-interfaces-scripted.nix:53:27: | |
while evaluating the attribute ‘bonds’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:46: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:75:45, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating ‘isType’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:14:18, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:76:14: | |
while evaluating the attribute ‘bonds’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:46: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:235:39, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:187:28, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:241:23: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:241:30, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:187:34: | |
while evaluating ‘isType’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:14:18, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:241:33: | |
while evaluating the attribute ‘options’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:224:52: | |
while evaluating the attribute ‘options.bonds’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/tasks/network-interfaces.nix:565:5: | |
while evaluating the module argument `utils' in "/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/tasks/network-interfaces.nix": | |
while evaluating the attribute ‘_module.args.utils’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:46: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:75:45, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating the attribute ‘value’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:336:9: | |
while evaluating the option `_module.args': | |
while evaluating the attribute ‘mergedValue’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:369:5: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:369:32, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:369:19: | |
while evaluating ‘merge’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:276:20, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:372:8: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:199:9, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:9: | |
while evaluating ‘filterAttrs’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:115:23, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:35: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:116:18: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:116:29, called from undefined position: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:51, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:116:62: | |
while evaluating the attribute ‘pkgs’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:335:7: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:277:86, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:335:15: | |
while evaluating the attribute ‘optionalValue’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:376:5: | |
while evaluating the attribute ‘values’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:362:9: | |
while evaluating the attribute ‘values’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:7: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:458:16: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/lists.nix:103:41, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:17: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:348:28, called from undefined position: | |
while evaluating ‘dischargeProperties’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:416:25, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:349:62: | |
while evaluating the attribute ‘value’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/types.nix:282:55: | |
while evaluating the attribute ‘pkgs’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/misc/nixpkgs.nix:210:7: | |
while evaluating the attribute ‘pkgs’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:46: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:75:45, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/attrsets.nix:200:54: | |
while evaluating the attribute ‘value’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:336:9: | |
while evaluating the option `nixpkgs.pkgs': | |
while evaluating the attribute ‘isDefined’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:374:5: | |
while evaluating the attribute ‘values’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:362:9: | |
while evaluating anonymous function at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:358:19, called from /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:358:14: | |
while evaluating the attribute ‘value._type’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:456:73: | |
while evaluating the attribute ‘value.content’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/lib/modules.nix:517:14: | |
while evaluating the attribute ‘default’ at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/misc/nixpkgs.nix:68:7: | |
while evaluating the file ‘/nix/store/prfnd44mmlsj71kd560m478prrjykwvg-nixos-19.03pre152634.218ce4de508/nixos/default.nix’: | |
evaluation aborted with the following error message: ‘ | |
This version of Nixpkgs requires Nix >= 2.0, please upgrade: | |
- If you are running NixOS, `nixos-rebuild' can be used to upgrade your system. | |
- Alternatively, with Nix > 2.0 `nix upgrade-nix' can be used to imperatively | |
upgrade Nix. You may use `nix-env --version' to check which version you have. | |
- If you installed Nix using the install script (https://nixos.org/nix/install), | |
it is safe to upgrade by running it again: | |
curl https://nixos.org/nix/install | sh | |
For more information, please see the NixOS release notes at | |
https://nixos.org/nixos/manual or locally at | |
/nix/store/prfnd44mmlsj71kd560m478prrjykwvg-nixos-19.03pre152634.218ce4de508/nixos/doc/manual/release-notes. | |
If you need further help, see https://nixos.org/nixos/support.html | |
’ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment