home.nix "refactoring"

This commit is contained in:
Markus Heurung 2024-06-05 15:31:00 +02:00
parent 7637673036
commit 268eb9181a

View file

@ -1,11 +1,12 @@
{ config, pkgs, lib, ... }:
{
home.username = "muhh";
home.homeDirectory = "/home/muhh";
home.activation.setupEtc = config.lib.dag.entryAfter [ "writeBoundary" ] ''
home = {
username = "muhh";
homeDirectory = "/home/muhh";
activation.setupEtc = config.lib.dag.entryAfter [ "writeBoundary" ] ''
/run/current-system/sw/bin/systemctl start --user sops-nix
'';
home.packages = with pkgs; [
packages = with pkgs; [
# # It is sometimes useful to fine-tune packages, for example, by applying
# # overrides. You can do that directly here, just don't forget the
# # parentheses. Maybe you want to install Nerd Fonts with a limited number of
@ -18,35 +19,46 @@
# (pkgs.writeShellScriptBin "my-hello" ''
# echo "Hello, ${config.home.username}!"
# '')
_1password
_1password-gui
atkinson-hyperlegible
brightnessctl
curl
distrobox
fd
git
httpie
neovide
(nerdfonts.override { fonts = [ "Iosevka" ]; })
mpv
morgen
obsidian
powertop
qutebrowser
solargraph
sops
tmux
wget
wl-clipboard
zellij
zulip
zulip-term
];
_1password
_1password-gui
atkinson-hyperlegible
brightnessctl
curl
distrobox
fd
ffmpegthumbnailer
git
htop
httpie
neovide
(nerdfonts.override { fonts = [ "Iosevka" ]; })
maid
mediainfo
mpv
morgen
obsidian
pavucontrol
powertop
qutebrowser
rclone
solargraph
sops
sxiv
steam-run
tmux
unzip
via
wget
wl-clipboard
xdg-utils
zellij
zulip
zulip-term
];
# Home Manager is pretty good at managing dotfiles. The primary way to manage
# plain files is through 'home.file'.
home.file = {
file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
# # symlink to the Nix store copy.
@ -57,7 +69,7 @@
# org.gradle.console=verbose
# org.gradle.daemon.idletimeout=3600000
# '';
};
};
# You can also manage environment variables but you will have to manually
# source
@ -69,8 +81,9 @@
# /etc/profiles/per-user/muhh/etc/profile.d/hm-session-vars.sh
#
# if you don't want to manage your shell through Home Manager.
home.sessionVariables = {
EDITOR = "nvim";
sessionVariables = {
EDITOR = "nvim";
};
};
accounts = {