{ config, pkgs, ...}:
let
pixfix = if (builtins.currentSystem == "armv6l-linux") then
[ ./pixman.nix ]
else
[];
passwords = import ./passwords.nix;
keys = import ./keys.nix;
in
{
imports = [ ./vim.nix ./iscsi-boot.nix ./iscsi_module.nix ] ++ pixfix;
environment.systemPackages = with pkgs; [ sqlite screen git util nix-repl utillinuxCurses psmisc ];
programs = {
screen.screenrc = ''
defscrollback 5000
caption always
'';
ssh = {
knownHosts = [
{ hostNames = [ "192.168.2.1" "router.localnet" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMSvyvC18BHfivZJDhWSm7VU3kEElfNfMIfeohkil614"; }
{ hostNames = [ "192.168.2.15" "amd.localnet" ]; publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJhJRINrY5cFcqZ76GsAK7FU+wQhErlS6APdOIm7xcnW"; }
];
};
};
nixpkgs.config = {
sqlite.interactive = true;
packageOverrides = (import ./overrides.nix).packageOverrides;
};
system.extraSystemBuilderCmds = ''
ln -sv ${./.} $out/nixcfg
'';
services = {
openssh = {
enable = true;
permitRootLogin = "yes";
};
};