-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.nix
More file actions
40 lines (36 loc) · 908 Bytes
/
env.nix
File metadata and controls
40 lines (36 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ config, pkgs, ... }:
let
vimCustom = (pkgs.vimUtils.makeCustomizable pkgs.vim).customize {
name = "vim";
vimrcConfig = {
customRC = ''
runtime vimrc
set mouse=
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
'';
packages.myVimPackage = with pkgs.vimPlugins; {
start = [ vim-nix ];
};
};
};
in
{
time.timeZone = "Europe/Amsterdam";
# networking.nameservers = [ ];
services.openssh.enable = true;
nix.useSandbox = true;
nix.buildCores = 0;
systemd.tmpfiles.rules = [ "d /tmp 1777 root root 7d" ];
environment.systemPackages = with pkgs; [
htop
screen
vimCustom
wget
git
];
users.extraUsers.root.openssh.authorizedKeys.keys =
with import ./ssh-keys.nix; [ adluc srk ];
system.stateVersion = "20.09";
}