Last active
May 3, 2017 13:46
-
-
Save cleverca22/4494c05749c741d99fdebfdc4ce9bafa to your computer and use it in GitHub Desktop.
This file contains hidden or 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, ...}: | |
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"; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment