commit d15f72e1861e4b13437defd47d6051f0e73626bb Author: genofire Date: Thu Oct 7 18:36:34 2021 +0200 init home-manager / nixpkgs diff --git a/desktop.nix b/desktop.nix new file mode 100644 index 0000000..feaf91b --- /dev/null +++ b/desktop.nix @@ -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; +} diff --git a/home.nix b/home.nix new file mode 100644 index 0000000..56cd202 --- /dev/null +++ b/home.nix @@ -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 + ]; + }; +} diff --git a/sway.nix b/sway.nix new file mode 100644 index 0000000..57cd837 --- /dev/null +++ b/sway.nix @@ -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"; + }; +}