Daniel Siepmann
a62943d0bb
I created a private repository within `registries/customer-projects`. This holds flakes. The folder is registered as registry. That allows to run the following from within a customer project: nix run cp\#reuter-phpstan In order to execute the customer specific application from flake.
153 lines
4 KiB
Nix
153 lines
4 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./home/modules/programs/cmus.nix
|
|
./home/modules/programs/languagetool.nix
|
|
./home/modules/programs/mailhog.nix
|
|
];
|
|
|
|
# Home Manager needs a bit of information about you and the
|
|
# paths it should manage.
|
|
home.username = "daniels";
|
|
home.homeDirectory = "/home/daniels";
|
|
|
|
# This value determines the Home Manager release that your
|
|
# configuration is compatible with. This helps avoid breakage
|
|
# when a new Home Manager release introduces backwards
|
|
# incompatible changes.
|
|
#
|
|
# You can update Home Manager without changing this value. See
|
|
# the Home Manager release notes for a list of state version
|
|
# changes in each release.
|
|
home.stateVersion = "22.05";
|
|
|
|
# Let Home Manager install and manage itself.
|
|
programs.home-manager.enable = true;
|
|
|
|
# Install packages
|
|
# Some are installed via `programs` below, as they are also configured.
|
|
# Some packages don't have a module for configuration, and are configured via `home.file` below.
|
|
home.packages = [
|
|
pkgs.nix
|
|
pkgs.cacert
|
|
|
|
# System tools
|
|
pkgs.dmenu
|
|
pkgs.networkmanager_dmenu
|
|
pkgs.dmenu-custom-scripts
|
|
pkgs.dunst
|
|
pkgs.st
|
|
pkgs.ncdu
|
|
pkgs.tree
|
|
pkgs.rst2pdf
|
|
|
|
pkgs.borgbackup
|
|
pkgs.keepassxc
|
|
|
|
# Dev tools
|
|
pkgs.litecli
|
|
pkgs.sqlite
|
|
pkgs.mycli
|
|
# pkgs.mytop
|
|
pkgs.robo3t
|
|
pkgs.mkcert
|
|
pkgs.tig
|
|
pkgs.universal-ctags
|
|
pkgs.silver-searcher
|
|
pkgs.jq
|
|
pkgs.curl
|
|
pkgs.wget
|
|
pkgs.yamllint
|
|
pkgs.kcachegrind
|
|
|
|
# In order to pull binaries from their.
|
|
# E.g. phpcs: https://github.com/fossar/nix-phps#how-to-use
|
|
pkgs.cachix
|
|
|
|
# Coding / Neovim
|
|
# Does not provide any autocompletion yet, don't know why
|
|
# Use in conjuncion with https://github.com/autozimu/LanguageClient-neovim
|
|
# pkgs.rnix-lsp
|
|
|
|
pkgs.custom-customer-project
|
|
|
|
# Communication
|
|
pkgs.signal-desktop
|
|
pkgs.mattermost-desktop
|
|
|
|
# Media
|
|
pkgs.vlc
|
|
pkgs.yt-dlp
|
|
pkgs.sound-juicer
|
|
pkgs.audacity
|
|
pkgs.ffmpeg
|
|
];
|
|
|
|
programs = {
|
|
git = import ./home/programs/git.nix {
|
|
inherit pkgs;
|
|
};
|
|
htop = import ./home/programs/htop.nix {
|
|
inherit config;
|
|
};
|
|
tmux = import ./home/programs/tmux.nix {
|
|
inherit pkgs;
|
|
};
|
|
zsh = import ./home/programs/zsh.nix {
|
|
inherit config;
|
|
inherit pkgs;
|
|
};
|
|
|
|
# Media
|
|
cmus.enable = true;
|
|
};
|
|
|
|
home.file = {
|
|
".myclirc".source = ./home/files/myclirc;
|
|
".agignore".source = ./home/files/agignore;
|
|
};
|
|
|
|
xdg.configFile = {
|
|
"ctags/config".source = ./home/files/ctags;
|
|
"litecli/config".source = ./home/files/litecli;
|
|
"phpactor/phpactor.yml".source = ./home/files/phpactor.yml;
|
|
"tig/config".source = ./home/files/tig;
|
|
|
|
"nix/nix.conf".source = ./home/files/nix/nix.conf;
|
|
"nix/registry.json".source = ./home/files/nix/registry.json;
|
|
|
|
"cmus/smyckblue.theme".source = ./home/files/cmus/smyckblue.theme;
|
|
"cmus/rc".source = ./home/files/cmus/rc;
|
|
|
|
"i3/config".source = ./home/files/i3;
|
|
"i3blocks/config".source = ./home/files/i3-blocks;
|
|
|
|
"borg/exclude".source = ./home/files/borg-exclude;
|
|
};
|
|
|
|
xdg.desktopEntries.networkmanager-dmenu = {
|
|
type = "Application";
|
|
exec = "${pkgs.networkmanager_dmenu}/bin/networkmanager_dmenu";
|
|
name = "Networkmanager dmenu";
|
|
comment = "Networkmanaging using dmenu";
|
|
genericName = "Networkmanager Setting";
|
|
categories = [
|
|
"Network"
|
|
];
|
|
};
|
|
|
|
services.dunst = import ./home/services/dunst.nix;
|
|
services.mailhog.enable = true;
|
|
services.languagetool.enable = true;
|
|
|
|
services.nextcloud-client.enable = true;
|
|
# Temporary fix to OpenGL issue by using GLX.
|
|
# Start nextcloud without GLX support which is fine for me for noe.
|
|
# I don't have a better way for now, then using `pkgs.lib.mkForce` and setting whole value (repeating from modules/services/nextcloud-client.nix).
|
|
systemd.user.services.nextcloud-client.Service.Environment = pkgs.lib.mkForce [
|
|
"PATH=${config.home.profileDirectory}/bin"
|
|
"QT_XCB_GL_INTEGRATION=none"
|
|
];
|
|
}
|