2019-01-30 10:58:34 +01:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
{
|
2018-09-12 00:04:55 +02:00
|
|
|
imports = [
|
|
|
|
|
"${builtins.fetchTarball https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos"
|
2019-01-30 10:58:34 +01:00
|
|
|
./editors.nix
|
|
|
|
|
./networks.nix
|
|
|
|
|
./scripts.nix
|
|
|
|
|
./shells.nix
|
|
|
|
|
../../options.nix
|
2018-09-12 00:04:55 +02:00
|
|
|
];
|
|
|
|
|
|
2018-09-17 16:51:00 +02:00
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
|
|
sound.enable = true;
|
2018-09-22 20:26:42 +02:00
|
|
|
|
|
|
|
|
hardware.pulseaudio = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.pulseaudioFull; # for bluetooth sound output
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hardware.bluetooth = {
|
|
|
|
|
enable = true;
|
|
|
|
|
extraConfig = ''
|
|
|
|
|
[General]
|
|
|
|
|
Enable=Source,Sink,Media,Socket
|
|
|
|
|
'';
|
|
|
|
|
};
|
2018-09-17 16:51:00 +02:00
|
|
|
|
2019-01-30 10:58:34 +01:00
|
|
|
i18n = {
|
|
|
|
|
defaultLocale = "en_GB.UTF-8";
|
|
|
|
|
consoleKeyMap = "de";
|
|
|
|
|
# consoleColors = with import ../theme.nix; map (c: lib.strings.removePrefix "#" c) colorPalette;
|
|
|
|
|
};
|
|
|
|
|
|
2018-09-25 17:17:51 +02:00
|
|
|
services.printing = {
|
|
|
|
|
enable = true;
|
|
|
|
|
drivers = [ pkgs.hplipWithPlugin ];
|
|
|
|
|
};
|
|
|
|
|
|
2018-12-02 14:17:04 +01:00
|
|
|
security.sudo = {
|
|
|
|
|
enable = true;
|
2019-01-02 02:20:03 +01:00
|
|
|
extraConfig = ''
|
|
|
|
|
Defaults pwfeedback
|
|
|
|
|
'';
|
2018-12-02 14:17:04 +01:00
|
|
|
};
|
2018-09-05 22:21:12 +02:00
|
|
|
|
2018-09-17 16:51:00 +02:00
|
|
|
users.mutableUsers = false;
|
|
|
|
|
|
2018-09-12 00:04:55 +02:00
|
|
|
users.users.kfm = {
|
2018-09-17 16:51:00 +02:00
|
|
|
name = "kfm";
|
2018-12-30 14:34:39 +01:00
|
|
|
description = config.constants.user.name;
|
2018-09-17 16:51:00 +02:00
|
|
|
home = "/home/kfm";
|
2018-09-12 00:04:55 +02:00
|
|
|
createHome = true;
|
|
|
|
|
group = "users";
|
2019-01-30 10:58:34 +01:00
|
|
|
extraGroups = [ "wheel" "audio" ];
|
2018-12-30 14:34:39 +01:00
|
|
|
hashedPassword = "$6$w9hXyGFl/.IZBXk$5OiWzS1G.5hImhh1YQmZiCXYNAJhi3X6Y3uSLupJNYYXPLMsQpx2fwF4Xr2uYzGMV8Foqh8TgUavx1APD9rcb/";
|
2018-09-17 16:51:00 +02:00
|
|
|
shell = pkgs.zsh;
|
2018-09-13 22:48:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
home-manager.users.kfm = {
|
2018-09-11 18:16:33 +02:00
|
|
|
programs.git = {
|
|
|
|
|
enable = true;
|
2018-09-19 16:46:12 +02:00
|
|
|
userName = config.constants.user.name;
|
|
|
|
|
userEmail = config.constants.user.email;
|
2018-09-11 18:16:33 +02:00
|
|
|
aliases = {
|
|
|
|
|
br = "branch";
|
|
|
|
|
co = "checkout";
|
|
|
|
|
ci = "commit";
|
|
|
|
|
amend = "commit --amend";
|
|
|
|
|
st = "status";
|
|
|
|
|
unstage = "reset HEAD --";
|
|
|
|
|
sdiff = "diff --staged";
|
|
|
|
|
last = "log -1 HEAD";
|
2018-12-30 14:34:39 +01:00
|
|
|
pull-all = "!pull-all"; # from dot/scripts.nix
|
2018-09-11 18:16:33 +02:00
|
|
|
};
|
2018-09-19 16:46:12 +02:00
|
|
|
ignores = config.constants.ignore;
|
2018-09-11 18:16:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
home.file = {
|
2019-01-30 10:58:34 +01:00
|
|
|
".config/htop/htoprc".text = import ../../dot/htop.nix;
|
2018-09-13 22:48:38 +02:00
|
|
|
".zshrc".text = "# nothing to see here";
|
2018-09-11 18:16:33 +02:00
|
|
|
};
|
|
|
|
|
};
|
2019-01-30 10:58:34 +01:00
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
] ++ [ # internet
|
|
|
|
|
aria2
|
|
|
|
|
w3m
|
|
|
|
|
wget
|
|
|
|
|
curl
|
|
|
|
|
httpie
|
|
|
|
|
whois
|
|
|
|
|
] ++ [ # media
|
|
|
|
|
imagemagick
|
|
|
|
|
] ++ [ # archive
|
|
|
|
|
unzip
|
|
|
|
|
unrar
|
|
|
|
|
p7zip
|
|
|
|
|
zip
|
|
|
|
|
] ++ [ # monitor
|
|
|
|
|
htop
|
|
|
|
|
iotop
|
|
|
|
|
iftop
|
|
|
|
|
lsof
|
|
|
|
|
psmisc
|
|
|
|
|
] ++ [ # shell
|
|
|
|
|
bat
|
|
|
|
|
dos2unix
|
|
|
|
|
fd
|
|
|
|
|
file
|
|
|
|
|
git
|
|
|
|
|
gitAndTools.hub
|
|
|
|
|
gitstats
|
|
|
|
|
jo
|
|
|
|
|
jq
|
|
|
|
|
manpages
|
|
|
|
|
patch
|
|
|
|
|
patchutils
|
|
|
|
|
posix_man_pages
|
|
|
|
|
most
|
|
|
|
|
ranger
|
|
|
|
|
ripgrep
|
|
|
|
|
rlwrap
|
|
|
|
|
tree
|
|
|
|
|
] ++ [ # hardware
|
|
|
|
|
pmount
|
|
|
|
|
usbutils
|
|
|
|
|
pciutils
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
programs.command-not-found.enable = true;
|
|
|
|
|
programs.java = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.openjdk;
|
|
|
|
|
};
|
|
|
|
|
|
2018-09-05 22:21:12 +02:00
|
|
|
}
|