nix: Make it work with standalone hm on Arch

This commit is contained in:
Geoffrey Frogeye 2023-11-05 21:36:11 +01:00
parent dff024a291
commit 6d9d2078a6
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 19 additions and 1 deletions

View file

@ -3,6 +3,7 @@
programs = {
home-manager.enable = true;
bash.enable = true; # Just in case the default shell is not ZSH, so we still have the variables
zsh = {
enable = true;
enableAutosuggestions = true;
@ -54,6 +55,10 @@
};
home = {
stateVersion = "23.05";
language = {
base = "en_US.UTF-8";
time = "en_DK.UTF-8";
};
packages = with pkgs; [
# dotfiles dependencies
coreutils

View file

@ -1,7 +1,9 @@
{ pkgs, config, lib, ... }:
{
xsession = {
enable = true;
windowManager = {
command = "${config.xsession.windowManager.i3.package}/bin/i3";
i3 = {
enable = true;
config =
@ -437,6 +439,14 @@
};
home = {
file = {
".xinitrc" = {
source = pkgs.writeShellScript "xinitrc" ''
${pkgs.xorg.xrdb}/bin/xrdb ${config.xresources.path}
${config.xsession.windowManager.command}
'';
};
};
packages = with pkgs; [
# remote
tigervnc

View file

@ -27,5 +27,8 @@ in
};
# Fix https://nix-community.github.io/home-manager/index.html#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal
home.packages = [ pkgs.dconf ];
# home.packages = [ pkgs.dconf ];
dconf.enable = false; # Otherwise standalone home-manager complains it can't find /etc/dbus-1/session.conf on Arch.
# Symlinking it to /usr/share/dbus-1/session.conf goes further but not much.
}