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