Hello.
I recently install NixOS and wanna set some configs into HOME directory and looks like home manager is perfect solution for this. But i can’t understand how i need to use only for setup configs?
For example, i want setup this theme for GTK application: Vortex-GTK - Gnome-look.org.
Or other example, i want to setup config for my wm (Bspwm) and some other applications (picom, feh).
There is my old config, that i use on arch for bspwm (bspwmrc):
#! /bin/sh
export _JAVA_AWT_WM_NONREPARENTING=1
export AWT_TOOLKIT=MToolkit
picom --config ~/.config/picom/picom.conf &
feh --bg-fill ~/wallpapers/first.png
polybar &
flameshot &
discord &
setxkbmap "us,ru" ",winkeys" "grp:caps_toggle" &
pgrep -x sxhkd > /dev/null || sxhkd &
bspc monitor -d 1 2 3 4 5 6
bspc config active_border_color '#5C9C5A'
bspc config normal_border_color '#3C663B'
bspc config focused_border_color '#5C9C5A'
bspc config border_width 2
bspc config window_gap 13
bspc config split_ratio 0.52
bspc config borderless_monocle true
bspc config gapless_monocle true
And it works good, but i setup it directly into Home folder not via Home manager. How i should setup something like this via home manager?
I setup my home manager as NixOS Module, like this:
{
imports =
[
...
./home-manager.nix
];
...
}
Here is home-manager config:
{ config, pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
in
{
imports = [
(import "${home-manager}/nixos")
];
home-manager.users.zaksen = {
home.stateVersion = "25.05";
programs.home-manager.enable = true;
};
}