ChanServ changed the topic of #home-manager to: Support and discussion around the Home Manager project (https://github.com/nix-community/home-manager) | Logs: https://logs.nix.samueldr.com/home-manager
__monty__ has quit [Quit: leaving]
<nicolas[m]> itai: login-logout would probably resolve the issue, though having a degraded session in systemd is not really an issue.
<nicolas[m]> You could try `systemctl --failed`
<nicolas[m]> correction `systemctl --user --failed`
itai has quit [Remote host closed the connection]
rajivr has joined #home-manager
{^_^} has joined #home-manager
<infinisil> nicolas[m]: It can't really (re: userSettings)
<infinisil> Hmm no I guess it can
<infinisil> But it's not very uniform
<infinisil> Because there's no equivalent for yaml or ini or other formats
<infinisil> Only builtins.fromJSON and builtins.fromTOML exist
{^_^} has quit [Remote host closed the connection]
{^_^} has joined #home-manager
<nicolas[m]> infinisil: I was thinking the option would accept a `types.path`
<nicolas[m]> i.e. `types.either types.path (pkgs.formats.json { })`
K0kada has quit [Ping timeout: 246 seconds]
kalbasit__ has joined #home-manager
cyphase has quit [Ping timeout: 240 seconds]
cyphase has joined #home-manager
kalbasit___ has joined #home-manager
kalbasit__ has quit [Ping timeout: 240 seconds]
kalbasit___ has quit [Ping timeout: 240 seconds]
cyphase has quit [Ping timeout: 240 seconds]
cyphase has joined #home-manager
cole-h has quit [Ping timeout: 256 seconds]
pinage404[m] has quit [Quit: authenticating]
pinage404[m]1 has joined #home-manager
maier has joined #home-manager
ScottHDev5 has joined #home-manager
__monty__ has joined #home-manager
itai has joined #home-manager
<itai> nicolas[m]: the problem persists after login-logout, and the mpd services show up under `systemctl --user --failed`
<immae> itai: when you login-logout you don’t necessarily restart the systemd services. Have you tried just doing systemctl --user restart mpd ?
<itai> immae: this works, let me check if it persists after restart
itai has quit [Remote host closed the connection]
itai has joined #home-manager
<itai> immae: nope, after i restart the service is failed again and i need to restart it manually
<immae> so when you restart it it works fine but not during boot?
<itai> yep
<immae> Can you do "systemctl --user restart mpd", wait ~30s and then recheck with "systemctl --user --failed" ?
<immae> Just in case it takes a bit of time to fail
<itai> sure thing
<itai> immae: now mpd.socket shows up as failed, but i can still access it fine from clients
<immae> ok
<immae> what does journalctl --user -u mpd say?
<immae> (does it give a relevant error?)
itai has quit [Remote host closed the connection]
itai has joined #home-manager
<itai> immae: I do get a exception: Failed to bind to '127.0.0.1:6600'; Failed to bind socket: Address already in use
<itai> i'll check if i have something else starting mpd somewhere
<immae> well you know where to look now then ;)
<immae> looks like a mpd.socket error
<immae> (hmm nevermind)
<itai> immae: i can't really find anything, but there is an mpd process running in htop
<itai> several actually
<immae> owned by your own user?
<itai> yes
<immae> Can you discard threads?
<immae> Just to avoid normal duplicates :)
<itai> does that mean SIGTERMing them?
<immae> no
<immae> just not showing them :D
<immae> (in htop)
<itai> i'm not sure how to do that
<immae> F2 > display options > Hide userland process threads
<immae> I’m trying to figure out if somehow mpd service starts several times due to "some bug"
<itai> cool now we only have 1
<immae> good
<immae> Next hint: in my system mpd is installed as root but doesn’t have a .socket unit. Are you sure that mpd supports socket activation?
<immae> Oh wait
<itai> I just installed it with home-manager
<immae> you should not enable both mpd.service and mpd.socket
<itai> (i'm on ubuntu)
<immae> only one of them
<itai> I just have `services.mpd` enabled in home.nix
<immae> (although I would expect systemd to be intelligent enough to not be worried about having both enabled simultaneously)
<immae> ok
<itai> hold on i'll send the pastebin of my config
<immae> can you `ls -R ~/.config/systemd/` too?
<immae> (Hide non-relevant fields if you want)
<immae> I see nothing wrong at first sight
<itai> huh
<itai> apparently circe in emacs automatically uses ix.io if you try to paste a long message
<immae> ok no problem
<immae> So you mpd.socket should not be run witht his setup
<immae> your*
<immae> Anything in /etc/systemd/user ?
<itai> there is an mpd.serivce under default.target.wants
<itai> and an mpd.socket under socket.target.wants
<immae> Oh
<immae> Well you have a globally-enabled mpd, installed by your distribution with socket/service, and a user-enabled mpd installed via home
<immae> there for your collision ;)
<immae> you should disable the global one
<immae> `systemctl --global disable mpd.socket mpd.service`
<itai> alright let me restart and see if it works now
itai has quit [Remote host closed the connection]
itai has joined #home-manager
<itai> immae: it works! thank you so much
<immae> you’re welcome!
<immae> Make sure that you understand the implications of what I said, you disabled the ubuntu mpd for every user on the system
<itai> yes i understand, but it's fine since i am the only user on the system
<itai> well there is root but i don't really need to run mpd from root
<immae> okay :)
<immae> As long as you understand what you do it’s all I need ;)
Daniel[m]5 has left #home-manager ["User left"]
maier has quit [Quit: leaving]
pinpox has quit [Quit: The Lounge - https://thelounge.chat]
__monty__ has quit [Ping timeout: 260 seconds]
__monty__ has joined #home-manager
<Ke> do others use home-manager with nixos-unstable with firefox
<Ke> and I mean it does not compile for me, maybe tries to use older nixpkgs or I don't know how this works
<Ke> I have firefox-esr installed and it works
<Ke> I use it as nixos module with the channel
itai has quit [Remote host closed the connection]
aveltras has joined #home-manager
o1lo01ol1o has joined #home-manager
simpson has joined #home-manager
kalbasit___ has joined #home-manager
kalbasit___ has quit [Ping timeout: 265 seconds]
kalbasit___ has joined #home-manager
justanotheruser has joined #home-manager
kalbasit___ has quit [Ping timeout: 272 seconds]
johnw has quit [Quit: ZNC - http://znc.in]
pinage404[m]1 has quit [Quit: authenticating]
pinage404[m]1 has joined #home-manager
pinage404[m]1 has quit [Client Quit]
pinage404[m]1 has joined #home-manager
kalbasit___ has joined #home-manager
kalbasit___ has quit [Quit: WeeChat 2.9]
rajivr has quit [Quit: Connection closed for inactivity]
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
lytedev[m] has quit [Ping timeout: 244 seconds]
tcakoi has quit [Ping timeout: 244 seconds]
NobbZ[m] has quit [Ping timeout: 244 seconds]
NobbZ[m] has joined #home-manager
lytedev[m] has joined #home-manager
tcakoi has joined #home-manager
cole-h has joined #home-manager
pinpox has joined #home-manager
ornxka_ has joined #home-manager
piegames1 has joined #home-manager
ornxka has quit [*.net *.split]
nicolas[m] has quit [*.net *.split]
Asbjrn[m] has quit [*.net *.split]
JJJollyjim has quit [*.net *.split]
piegames has quit [*.net *.split]
Asbjrn[m] has joined #home-manager
nicolas[m] has joined #home-manager
evanjs has joined #home-manager
K0kada has joined #home-manager
__monty__ has quit [Quit: leaving]