<faebl>
hi :) i'm trying to build a home-manager config that includes some custom settings for the kitty terminal emulator. according to https://rycee.gitlab.io/home-manager/options.html `programs.kitty` should be available. however, when i want to build the config, home-manager fails and tells me that this option does not exist. how can I debug that?
<faebl>
also, how do I write multi line messages without sending them ^^
<faebl>
also: how do I write multi line messages without sending them ^^
<NobbZ[m]>
[faebl](https://matrix.to/#/@freenode_faebl:matrix.org) depends on the client you use to access the room.
<NobbZ[m]>
And can you please share your config and the exact error message?
<joesventek>
faebl, might be a similar issue to your i3 config error the other day.
<faebl>
error:
<faebl>
✘ faebl@faebl ~ home-manager switch --show-traceerror: while evaluating the attribute 'activationPackage' at /nix/store/pc1k1i28xhk791dkqzzsrrynnhsx3lrm-source/modules/default.nix:46:3:while evaluating 'showWarnings' at /nix/store/pc1k1i28xhk791dkqzzsrrynnhsx3lrm-source/modules/default.nix:16:18, called from
<faebl>
/nix/store/pc1k1i28xhk791dkqzzsrrynnhsx3lrm-source/modules/default.nix:31:12:while evaluating 'foldr' at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/lists.nix:52:20, called from /nix/store/pc1k1i28xhk791dkqzzsrrynnhsx3lrm-source/modules/default.nix:20:7:while evaluating 'fold'' at
<faebl>
/nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/lists.nix:55:15, called from /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/lists.nix:59:8:while evaluating 'collectFailed' at /nix/store/pc1k1i28xhk791dkqzzsrrynnhsx3lrm-source/modules/default.nix:13:19, called from
<faebl>
/nix/store/pc1k1i28xhk791dkqzzsrrynnhsx3lrm-source/modules/default.nix:33:16:while evaluating the attribute 'assertions' at undefined position:while evaluating anonymous function at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:84:45, called from undefined position:while evaluating the attribute
<faebl>
'value' at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:379:9:while evaluating the option `assertions':while evaluating the attribute 'mergedValue' at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:411:5:while evaluating the attribute 'values' at
<faebl>
/nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:405:9:while evaluating the attribute 'values' at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:505:7:while evaluating anonymous function at
<faebl>
/nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:391:28, called from /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:391:17:while evaluating 'dischargeProperties' at
<faebl>
/nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:464:25, called from /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:392:62:while evaluating the attribute 'condition' at
<faebl>
/nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:549:14:while evaluating the attribute 'condition' at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:549:14:while evaluating the attribute 'programs.vim' at undefined position:while evaluating anonymous
<faebl>
function at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:84:45, called from undefined position:while evaluating 'yieldConfig' at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:83:29, called from
<faebl>
/nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:86:16:while evaluating anonymous function at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:89:24, called from
<faebl>
/nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:89:11:while evaluating anonymous function at /nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:90:26, called from
<faebl>
/nix/store/jqa1m6zc7skbxvyjfdmxq3adhf46xdzw-nixos-20.03.3087.b4db68ff563/nixos/lib/modules.nix:90:13:The option `programs.kitty' defined in `/etc/nixos/v2/pkgConfigs/kitty.nix' does not exist.
<joesventek>
Oh my
<cole-h>
,paste faebl
<faebl>
joesventek could be; but i completely rewrote the config and all other program customizations run fine
<eyJhb>
faebl: your nixos channel and home-manager needs to match
<eyJhb>
So you either need to run unstable nixos, or 20.03 home-manager
<faebl>
ok thanks, i will give that a try
<faebl>
need to logout and back in again so i will prob. lose my session here ^^ i'll come back if it didn't work :)
faebl has quit [Remote host closed the connection]
<NobbZ[m]>
Also you shouldn't use home-manager channel as root and not using home-manager as a module...
<NobbZ[m]>
* Also you shouldn't use home-manager channel as root while *not* using home-manager as a module...
faebl has joined #home-manager
<NobbZ[m]>
Also you shouldn't use home-manager channel as root while not using home-manager as a module...
cole-h has quit [Ping timeout: 265 seconds]
<faebl>
i tried to correct the channel list now with `nixos` only in root and `home-manager` in non-root: http://paste.debian.net/1166179/
<eyJhb>
Why shouldn't you do that?
<faebl>
i then updated the channel list and rebooted to make sure
<faebl>
the changes were applied
<faebl>
sadly with the same outcome that `home-manager` still can't find `programs.kitty`
<NobbZ[m]>
<eyJhb "Why shouldn't you do that?"> Because it might cause issues once a user adds its own home-manager standalone
joesventek has quit [Quit: Quit]
joesventek has joined #home-manager
<NobbZ[m]>
This doesn't even include my opinion that I'm not a friend of channels at all and have an empty list of channels for my main and root user
<NobbZ[m]>
[faebl](https://matrix.to/#/@freenode_faebl:matrix.org) so channels now match. And I even looked at the home-manager sources and 20.03 includes the kitty module
<NobbZ[m]>
So it should work
<faebl>
hmm;
<faebl>
could a `nixos-rebuild` potentially help fixing that?
<NobbZ[m]>
As you haven't changed your system config, it should be a no-op. Though you said you updated your channels, so it might actually change some things.
<joesventek>
faebl, I have not looked at your config, but are you sure you're not mixing HM and nixpkgs modules again?
<NobbZ[m]>
It's at least weird that the error points to `/etc/nixos/v2/...`
<faebl>
pretty sure this time; i don't import my program configs to the nix-config but only to the home-manager config; and i tried to use examples from the docs
<faebl>
that is actually ok, because all of my config files reside there
<faebl>
the home.nix points there for its imports
<faebl>
i wanted to keep all the config files in one place
<NobbZ[m]>
I expect home-manager config to live in `~/.config/nixpkgs`, or at least at a user owned location rather than in the nixos config location which is explicitly not user owned.
<NobbZ[m]>
I use HM to have user and system configuration explicitly separate...
<joesventek>
But your home.nix imports /etc/nixos/configuration.nix (which in turn imports your hardware-configuration.nix)...
<NobbZ[m]>
If you want to have them co located you could m use HM as a module as well
<faebl>
sorry i just realized that the home.nix file in the repo was wrong; i updated it.
<faebl>
in my home.nix i only import the `pkgConfigs.nix`
<faebl>
but if the error was related to the location and access rights, wouldn't home-manager complain that it can't open the file?
<NobbZ[m]>
It's just that your setup derives from what is common sense, that makes it hard for us to follow it.
<faebl>
ok; well then let me quickly move the `pkgConfig.nix` and the `pkgConfig` folder to the standard `.config/nixpkgs` folder and try it again; maybe it is as simple as that
<faebl>
i also tried commenting out kitty and building the rest. the rest works flawlessly...
dermetfan has quit [Ping timeout: 240 seconds]
__monty__ has joined #home-manager
<pinpox>
Hey, trying to get some services to work on i3, without ligthdm. How can I make sure things like polybar are started when i3 is ready and not before that?
dermetfan has joined #home-manager
faebl has quit [Remote host closed the connection]
NobbZ[m] has quit [Quit: killed]
pinage404[m] has quit [Quit: killed]
tristan[m] has quit [Quit: killed]
maralorn has quit [Quit: killed]
hpfr has quit [Quit: killed]
rschulman has quit [Quit: killed]
Ericson2314 has quit [Quit: killed]
bbigras has quit [Quit: killed]
siraben has quit [Quit: killed]
jonge[m] has quit [Quit: killed]
philipp[m] has quit [Quit: killed]
dash has quit [Quit: killed]
Ke has quit [Quit: killed]
Notkea[m] has quit [Quit: killed]
Jezhehim[m] has quit [Quit: killed]
rycee has quit [Quit: killed]
theduke has quit [Quit: killed]
alexarice[m] has quit [Quit: killed]
SumnerEvans[m] has quit [Quit: killed]
colemickens has quit [Quit: killed]
benkolera has quit [Quit: killed]
khassanov[m] has quit [Quit: killed]
enick_643 has quit [Quit: killed]
aterius has quit [Quit: killed]
Dandellion has quit [Quit: killed]
ZerataX1 has quit [Quit: killed]
Ox4A6F has quit [Quit: killed]
nicolas[m]1 has quit [Quit: killed]
aaronjanse has quit [Quit: killed]
jschievink has quit [Quit: killed]
Asbjrn[m]2 has quit [Quit: killed]
DamienCassou has quit [Quit: killed]
jschievink has joined #home-manager
jonge[m] has joined #home-manager
pinage404[m] has joined #home-manager
Ke has joined #home-manager
dash has joined #home-manager
benkolera has joined #home-manager
aterius has joined #home-manager
bbigras has joined #home-manager
rschulman has joined #home-manager
philipp[m] has joined #home-manager
maralorn has joined #home-manager
NobbZ[m] has joined #home-manager
aaronjanse has joined #home-manager
Ox4A6F has joined #home-manager
hpfr has joined #home-manager
Notkea[m] has joined #home-manager
siraben has joined #home-manager
enick_301 has joined #home-manager
ZerataX has joined #home-manager
DamienCassou has joined #home-manager
Dandellion has joined #home-manager
colemickens has joined #home-manager
theduke has joined #home-manager
Ericson2314 has joined #home-manager
JJJollyjim has joined #home-manager
khassanov[m] has joined #home-manager
nicolas[m] has joined #home-manager
rycee has joined #home-manager
Jezhehim[m] has joined #home-manager
tristan[m] has joined #home-manager
SumnerEvans[m] has joined #home-manager
alexarice[m] has joined #home-manager
faebl has joined #home-manager
joesventek_ has joined #home-manager
Jezhehim[m] has quit [*.net *.split]
hpfr has quit [*.net *.split]
joesventek has quit [*.net *.split]
dermetfan has quit [*.net *.split]
joesventek_ is now known as joesventek
dermetfan has joined #home-manager
Jezhehim[m] has joined #home-manager
hpfr has joined #home-manager
faebl has quit [Remote host closed the connection]
superherointj has joined #home-manager
o1lo01ol1o has joined #home-manager
joesventek_ has joined #home-manager
joesventek has quit [Read error: Connection reset by peer]
joesventek_ is now known as joesventek
dermetfan has quit [Ping timeout: 246 seconds]
cole-h has joined #home-manager
dermetfan has joined #home-manager
o1lo01ol1o has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 264 seconds]
o1lo01ol1o has joined #home-manager
cyphase has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 265 seconds]
o1lo01ol1o has joined #home-manager
nf is now known as necroflurtle
necroflurtle is now known as nf
o1lo01ol_ has joined #home-manager
feepo has quit [Read error: Connection reset by peer]
feepo has joined #home-manager
o1lo01ol1o has quit [Ping timeout: 240 seconds]
superherointj has quit [Quit: Leaving]
<lovesegfault>
ALright, home-manager is driving me insane
<lovesegfault>
I had a `xdg.configFile` in my config (using the nixos module)
<lovesegfault>
I removed and redeployed
<lovesegfault>
the file remains there ?!
<lovesegfault>
like, I simply cannot get it to not generate this file
<lovesegfault>
even though there are _no_ mentions of it in my config anywhere
<lovesegfault>
how is this possible?
<lovesegfault>
cc. rycee
<rycee>
lovesegfault: Anything in the activation output? If not, is the file mentioned in the verbose output? Is the file present in the current generation directory?
<lovesegfault>
rycee: it's in my home-files (/nix/store/7np1sdsczx4rs728ydw87mph4byx7qim-home-manager-files)
<lovesegfault>
but idk why it's being generated there at all
<lovesegfault>
the weirdest thing is this
<lovesegfault>
With no mention of `*beets*` in my config _at all_ -> I end up with .config/beets/config.yaml with `{}`
<lovesegfault>
if I do `xdg.configFile."beets/config.yaml".text = "foo"` -> I end up with .config/beets/config.yaml with `foo\n{}`
<lovesegfault>
wait
<lovesegfault>
ffs
<lovesegfault>
beets.settings writes the config _even if left empty_
<lovesegfault>
_that_ is where it comes from
<rycee>
Curious, it should only generate the file if settings is non-empty (for older state versions)
<lovesegfault>
define "older"?
<lovesegfault>
I definitely am not setting `beets.settings` anywhere; just checked
<rycee>
Hmm, and you don't have beet enabled in your configuration?
<lovesegfault>
nope
<lovesegfault>
oh
<lovesegfault>
I have `beet` enabled, but I'm not setting `beets.settings`
<lovesegfault>
I expected that to not generate the config file, but it does
<lovesegfault>
my solution was to just avoid the module and manually add `beets` to my env
<rycee>
Yeah, I think that's best, if you don't set a configuration then there isn't really any point to the module. Easier to just install the package.
<lovesegfault>
Got it, thanks for helping me figure this out :)