Compare commits

...

4 commits

4 changed files with 25 additions and 11 deletions

View file

@ -0,0 +1,20 @@
{ config, lib, pkgs, ... }:
{
programs.neovim = {
enable = true;
vimAlias = true;
extraConfig = ''
set nowrap
'';
plugins = with pkgs.vimPlugins; [
vim-nix
indentLine
indent-blankline-nvim
neoformat
];
};
}

View file

@ -3,22 +3,17 @@
# minimal config, suitable for servers
let
user = {
name = "alex";
name = config.home.username;
fullName = "Alexander Kobjolke";
mail = "me@failco.de";
};
myEza = if builtins.hasAttr "eza" pkgs then "eza" else "exa";
in {
imports = [
# shell config
#./modules/shell
];
imports = [ ./alex/programs/neovim/default.nix ];
programs.home-manager.enable = true;
home = {
username = user.name;
homeDirectory = "/home/${config.home.username}";
stateVersion = "21.05";
sessionPath = [ "$HOME/.local/bin" "$HOME/.emacs.d/bin" ];
shellAliases = { e = "emacsclient -c $@"; };
@ -182,8 +177,6 @@ in {
ssh.enable = true;
neovim = import ./modules/nvim.nix pkgs;
texlive.enable = true;
};

View file

@ -131,6 +131,7 @@ in {
# Define a user account. Don't forget to set a password with passwd.
users.users.alex = {
description = "Alexander Kobjolke";
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
shell = pkgs.zsh;

View file

@ -3,7 +3,7 @@
{
# Binary Cache for Haskell.nix
nix.settings.trusted-public-keys =
[ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ];
[ "cache.iog.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ];
nix.settings.substituters = lib.mkAfter [ "https://hydra.iohk.io" ];
nix.settings.substituters = lib.mkAfter [ "https://cache.iog.io" ];
}