<rycee>
I just haven't gotten around to updating the documentation.
<freddie-freeload>
Ah, perfect. Should I open an issue regarding that?
<rycee>
Nah, I'll just sort it out.
<freddie-freeload>
Thanks for the quick reply!
linarcx has joined #home-manager
freddie-freeload has quit [Quit: Page closed]
linarcx has quit [Ping timeout: 245 seconds]
linarcx has joined #home-manager
linarcx has quit [Ping timeout: 244 seconds]
linarcx has joined #home-manager
wolfman154 has joined #home-manager
<wolfman154>
rycee: programs.slock.enable = true; Is throwing an error: option ‘home-manager.users.wolf.programs.slick’ defined in ‘/etc/nixos/configuration.nix’ does not exist?
<wolfman154>
Typo slick is slock, my mistake
<wolfman154>
why is this error being thrown?
<wolfman154>
rycee: ?
<infinisil>
rycee: Did you read the error?
<infinisil>
wolfman154: ^^
johanot has joined #home-manager
<wolfman154>
infinisil: yes, I set home.nix as a sub module to configuration.nix, I’m confused?
<infinisil>
wolfman154: What does the error say?
<wolfman154>
infinisil: the option ‘home-manager.users.wolf.programs.slick’ defined in ‘/etc/nixos/configuration.nix’ does not exist.
<infinisil>
wolfman154: Correct, so what's the first thing you need to check when an error like "foo does not exist" appears?
<wolfman154>
infinisil: the option ‘home-manager.users.wolf.programs.slock’ defined in ‘/etc/nixos/configuration.nix’ does not exist.
<wolfman154>
infinisil: typo, slick is slock, sorry, I’m using irc on my phone
<wolfman154>
infinisil: so how do I enable slock in home.nix?(or do I have to enable it in configuration.nix?)
<infinisil>
I asked you something
<wolfman154>
infinisil: my guess is that it’s the wrong directory so I have to enable slock in the correct file, either home.nix or configuration.nix?
<wolfman154>
infinisil: does this answer your question?
<infinisil>
Not really but oh well. What you need to check first in such errors is whether the option exists
<infinisil>
Does programs.slock exist as a home-manager option?
<wolfman154>
infinisil: i wish there was a way to search the home-manager manual, trying to scroll through it is tedious
<infinisil>
wolfman154: If you're using a browser, use Ctrl-F to search
<infinisil>
wolfman154: Found it?
<wolfman154>
infinisil: I can’t find it , will slock work or do i have to enable it in configuration.nix?
<rycee>
wolfman154: There is no programs.slock module so programs.slock.enable can't possibly work.
<infinisil>
wolfman154: Exactly, it's not there, so the error was entirely correct, there is no such option
<infinisil>
wolfman154: So chances are it might be in NixOS instead, go look through the NixOS options to see if you can find that option
<wolfman154>
Nixos options shows: programs.slock.enable, so I’m guessing I need to put it in configuration.nix for it to work in home.nix?
<rycee>
wolfman154: You cannot use NixOS options inside a Home Manager configuration.
<rycee>
But you can put `programs.slock.enable = true` in the NixOS configuration.
<rycee>
It will install the slock package with a setuid capability.
<wolfman154>
rycee: well I need something for this option in home.nix: services.screen-locker.lockCmd
<wolfman154>
rycee: I guess I could use the i3lock, will it interfere with xmonad?
<rycee>
With `programs.slock.enable = true` in your system configuration you should be able to use the slock tool in your lockCmd option.
<rycee>
Don't know about i3lock but I assume it would work fine with xmonad.
<wolfman154>
rycee: for home.nix?
<rycee>
Yeah.
<wolfman154>
rycee: ok , I’ll try it out and let you know, it seems that nixos requires you to experiment a lot!!!
<infinisil>
It's not any different than other distros
<wolfman154>
infinisil: I used Ubuntu and Debian for 3 years, subjectively it feels very different to me
<infinisil>
Have you used i3lock/slock/xmonad on Ubuntu?
<wolfman154>
infinisil: no, they have a screen locker setup by default, and my first time using xmonad
<infinisil>
Yeah so that's not comparable at all. If you wanted, you could've used an easy to set-up DE like Ubuntu uses. KDE or so
<infinisil>
On NixOS
<wolfman154>
infinisil: the desktop environments wouldn’t let me use my custom keyboard layout so I removed them, besides xmonad is lightweight , flexible and stable
<wolfman154>
14:01 wolfman154: I tried setting up slock in home.nix but it’s not working. Could someone paste bin their screen lock code in home.nix? Thanks!!!
<wolfman154>
rycee: I’m going to do a fresh install of nixos 19.03, will changing homeState in home.nix to 19.03 cause anything to crash? As long as both configuration.nix and home.nix are set to 19.03, every should work without anything crashing right?