I3: Difference between revisions
No edit summary |
cleaned up and separated the example code for installing with home-manager into 2 properly-marked file boxes |
||
(One intermediate revision by the same user not shown) | |||
Line 34: | Line 34: | ||
=== Using home-manager === | === Using home-manager === | ||
{{file| | {{file|/etc/nixos/configuration.nix|nix| | ||
<nowiki> | <nowiki> | ||
services.xserver = { | services.xserver = { | ||
enable = true; | enable = true; | ||
windowManager.i3.enable = true; | windowManager.i3.enable = true; | ||
}; | |||
services.displayManager.defaultSession = "none+i3"; | |||
</nowiki> | |||
}} | |||
{{file|home.nix|nix| | |||
<nowiki> | |||
xsession.windowManager.i3 = { | |||
enable = true; | |||
config = { | |||
modifier = "Mod4"; | |||
# See home-manager documentation for everything you can add here. | |||
}; | }; | ||
}; | |||
</nowiki> | </nowiki> | ||
}} | }} | ||
Line 66: | Line 62: | ||
keys. This is what is usually delegated to a desktop manager. To use xfce as a desktop manager on top of i3, see | keys. This is what is usually delegated to a desktop manager. To use xfce as a desktop manager on top of i3, see | ||
[[Xfce#Using_as_a_desktop_manager_and_not_a_window_manager]]. | [[Xfce#Using_as_a_desktop_manager_and_not_a_window_manager]]. | ||
== Common issues == | |||
=== i3lock doesn't recognize my password === | |||
As of nixos 25.05, i3lock is no longer automatically configured to be able to use PAM to check passwords. If you installed i3 through nixos options, this is handled for you, but if you installed it elsewhere, such as through home-manager, then at minimum, you need to set: | |||
{{file|/etc/nixos/configuration.nix|nix| | |||
<nowiki> | |||
security.pam.services.i3lock.enable = true; | |||
</nowiki> | |||
}} | |||
== Tips & tricks == | == Tips & tricks == |