# After installation

# Language

## Systemwide

Edit the keymaps configuration
```
nano /etc/conf.d/keymaps
```
Set the keyboard layout and find or add this line:
```
keymap="de"
```

```
Replace "de" with your specific German variant if needed:

    de — Standard German
    de-latin1 — German (Latin 1)
    de-nodeadkeys — German without dead keys
```
Apply the changes

For the current session:
```
rc-service keymaps restart
```
For persistence, make sure the keymaps service is enabled:
```
rc-update add keymaps boot
```

## Keyboard Layout within LUKS

Fixing Keyboard Layout During LUKS Password Entry on Gentoo

When you enter your LUKS password at boot, the keyboard layout defaults to QWERTY (us), not your systemwide German (de) layout. This is because the keymap is loaded after the initramfs runs.
Solution: Set keyboard layout in the initramfs

You need to configure the initramfs to include the German keymap. On Gentoo, this depends on your initramfs generator.

### For dracut (most common)

Edit `/etc/dracut.conf.d/` or `/etc/dracut.conf`:

```
nano /etc/dracut.conf
```

Add or modify this line:

```
keyboard_layout="de"
```

Then regenerate the initramfs:

```
dracut -f
```

# Emerge Cinnamon

```
emerge --ask gnome-extra/cinnamon
```

Start daemons
```
rc-update add dbus default
rc-update add openrc-settingsd default
rc-update add elogind boot
rc-service dbus start
rc-service openrc-settingsd start
```

# Install Lightdm and Dependencies

```
emerge --ask x11-base/xorg-server
emerge --ask app-admin/sudo
emerge --ask x11-misc/lightdm
emerge --ask x11-apps/xdm
emerge --ask gui-libs/display-manager-init
emerge --ask lightdm-gtk-greeter
```

## Enable display-manager and xdm
```
rc-update add display-manager default
rc-update add xdm default
```

Edit: `/etc/conf.d/xdm`
```
DISPLAYMANAGER="lightdm"
```
Edit: `/etc/lightdm/lightdm.conf`
```
[Seat:*]
session=cinnamon
greeter-session=lightdm-gtk-greeter
```

Edit: `/etc/conf.d/display-manager`:
```
# /etc/conf.d/display-manager
DISPLAYMANAGER="lightdm"
```
## Configure Sudo

add user to wheel group
```
usermod -a -G wheel username
```
edit sudoers file
```
visudo
```
```
username ALL=(ALL:ALL) ALL
```
```
username  ALL=(root) NOPASSWD: /sbin/reboot
username  ALL=(root) NOPASSWD: /sbin/halt
username  ALL=(root) NOPASSWD: /sbin/poweroff
username  ALL=(root) NOPASSWD: /sbin/shutdown
```
```
%wheel  ALL=(root) NOPASSWD: /sbin/reboot
%wheel  ALL=(root) NOPASSWD: /sbin/halt
%wheel  ALL=(root) NOPASSWD: /sbin/poweroff
%wheel  ALL=(root) NOPASSWD: /sbin/shutdown
```

# make.conf
```
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe -march=native"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"

# Parallel jobs – adjust to your CPU/RAM (rough rule: min(nproc, RAM_GB/2))
MAKEOPTS="-j6 -l6"

# Useful global USE flags for a desktop system (add/remove as needed)
USE="X pulseaudio eds gstreamer networkmanager nls gtk-doc gnome-keyring wayland icu dbus elogind udev -systemd opengl vulkan -qt5 -kde crypt"

ACCEPT_KEYWORDS="~amd64"

ACCEPT_LICENSE="*"

INPUT_DEVICES="libinput"

# NOTE: This stage was built with the bindist USE flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.UTF-8
GRUB_PLATFORMS="efi-64"
```

# lightdm
```
[LightDM]
logind-check-graphical=false
[Seat:*]
session=cinnamon
greeter-session=lightdm-gtk-greeter
session-wrapper=/etc/lightdm/Xsession
```

/etc/X11/xorg.conf.d/00-keyboard.conf 

```
Section "InputClass"
    Identifier "system-keyboard"
    MatchIsKeyboard "on"
    Option "XkbLayout" "de"
EndSection
```

/etc/conf.d/display-manager
```
# We always try and start the DM on a static VT. The various DMs normally
# default to using VT7. If you wish to use the display-manager init
# script, then you should ensure that the VT checked is the same VT your
# DM wants to use.
# We do this check to ensure that you haven't accidentally configured
# something to run on the VT in your /etc/inittab file so that
# you don't get a dead keyboard.
# sddm ignores this env var and is configured at build-time to use VT7.
CHECKVT=7

# What display manager do you use ?
#     [ xdm | greetd | gdm | sddm | gpe | lightdm | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.
DISPLAYMANAGER="lightdm"
```

/etc/conf.d/xdm 

```
SPLAYMANAGER="lightdm"
```


# Install Librewolf
If you don’t have eselect-repository installed, install it first:
```
sudo emerge --ask app-eselect/eselect-repository
```
Add LibreWolf’s Gentoo overlay, sync it, then emerge the package:
```
sudo eselect repository add librewolf git https://codeberg.org/librewolf/gentoo.git
sudo emerge --sync librewolf
sudo emerge --ask www-client/librewolf
```