I3: Difference between revisions

Tejing (talk | contribs)
Added a "common issues" section with mention of security.pam.services.i3lock.enable
Tejing (talk | contribs)
cleaned up and separated the example code for installing with home-manager into 2 properly-marked file boxes
 
Line 34: Line 34:


=== Using home-manager ===
=== Using home-manager ===
{{file|~/.config/nixpkg/home.nix|nix|
{{file|/etc/nixos/configuration.nix|nix|
<nowiki>
<nowiki>
#in configuration.nix
services.xserver = {
services.xserver = {
   enable = true;
   enable = true;
   windowManager.i3.enable = true;
   windowManager.i3.enable = true;
  };
};
  services.displayManager = {
services.displayManager.defaultSession = "none+i3";
    defaultSession = "none+i3";
</nowiki>
  };
}}


#in home.nix
{{file|home.nix|nix|
  xsession.windowManager.i3 = {
<nowiki>
    enable = true;
xsession.windowManager.i3 = {
    package = pkgs.i3-gaps;
  enable = true;
    config = {
  config = {
      modifier = "Mod4";
    modifier = "Mod4";
      gaps = {
     # See home-manager documentation for everything you can add here.
        inner = 10;
        outer = 5;
      };
     };
   };
   };
};
</nowiki>
</nowiki>
}}
}}