init home-manager / nixpkgs

This commit is contained in:
genofire 2021-10-07 18:36:34 +02:00
commit d15f72e186
3 changed files with 143 additions and 0 deletions

36
desktop.nix Normal file
View File

@ -0,0 +1,36 @@
{pkgs, ...}:
{
home.sessionVariables = {
BROWSER = "firefox";
};
home.packages = with pkgs; [
# env
libnotify
mpv
pavucontrol
glib # run gsettings for gnome
flat-remix-gtk
line-awesome
pinentry-gnome
# apps
firefox
thunderbird
dino
];
programs.gpg = {
enable = true;
settings = {
keyserver = "hkps://keys.openpgp.org";
};
};
services.gnome-keyring.enable = true;
services.gpg-agent = {
enable = true;
enableSshSupport = true;
pinentryFlavor = "gnome3";
};
programs.browserpass.enable = true;
}

65
home.nix Normal file
View File

@ -0,0 +1,65 @@
{pkgs, ...}:
{
imports = [
./desktop.nix
./sway.nix
];
home.sessionVariables = {
EDITOR = "nvim";
};
home.packages = with pkgs; [
python3
killall
htop
mosh
git
git-lfs
tig
figlet
grml-zsh-config
tmux
#neovim
xh
liboping # fix it
mtr
colordiff
git-annex
direnv
pure-prompt
#vimPlugins.nvim-lspconfig
#vimPlugins.nerdtree
go gcc libcap
go-langserver
pass
];
programs.zsh = {
enable = true;
enableAutosuggestions = true;
# missing syntaxHighlighting
# grml and pure enabled ....
};
programs.git = {
enable = true;
userName= "genofire";
userEmail = "geno+dev@fireorbit.de";
signing = {
signByDefault = false;
key = "386ED1BF848ABB4A6B4A3C45FC83907C125BC2BC";
};
extraConfig = {
init.defaultBranch = "main";
annex.sshcaching = true;
};
};
programs.neovim = {
enable = true;
extraPackages = with pkgs.vimPlugins; [
nvim-lspconfig
nerdtree
];
};
}

42
sway.nix Normal file
View File

@ -0,0 +1,42 @@
{ pkgs, ... }:
{
home.sessionVariables = {
XDG_CURRENT_DESKTOP = "sway";
MOZ_ENABLE_WAYLAND = "1";
};
home.packages = with pkgs; [
sway
alacritty
swayidle
swaylock-effects
mako
wl-clipboard
xdg-desktop-portal-wlr
bemenu
i3blocks
acpi
lm_sensors
ponymix
brightnessctl
#gammastep
grim
slurp
];
#wayland.windowManager.sway = {
# enable = true;
# xwayland = false;
# config = {
# keybinding = [
# ];
# };
#};
services.gammastep = {
enable = true;
provider = "geoclue2";
# duskTime = "22:00-23:00";
# dawnTime = "6:00-10:00";
};
}