From 268eb9181a2f96118151761c7683925166bb076e Mon Sep 17 00:00:00 2001 From: Markus Heurung Date: Wed, 5 Jun 2024 15:31:00 +0200 Subject: [PATCH] home.nix "refactoring" --- home.nix | 79 +++++++++++++++++++++++++++++++++----------------------- 1 file changed, 46 insertions(+), 33 deletions(-) diff --git a/home.nix b/home.nix index 8942467..3b840bd 100644 --- a/home.nix +++ b/home.nix @@ -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 = {