More stuff to enable

This commit is contained in:
Natsu Kagami 2022-10-17 10:25:38 +02:00 committed by Natsu Kagami
parent f392432d32
commit 1f5727930f
2 changed files with 39 additions and 10 deletions

View file

@ -29,8 +29,8 @@
]);
# Graphical set up
# linux.graphical.type = "wayland";
# linux.graphical.wallpaper = ./images/wallpaper_0.png;
linux.graphical.type = "x11";
linux.graphical.wallpaper = ./images/wallpaper_0.png;
# Enable sway
# programs.my-sway.enable = true;
# programs.my-sway.fontSize = 14.0;
@ -47,16 +47,27 @@
nki.programs.kitty = {
enable = true;
fontSize = 16;
enableTabs = true;
};
home.file.".gnupg/gpg-agent.conf" = {
text = ''
pinentry-program ${pkgs.kwalletcli}/bin/pinentry-kwallet
'';
onChange = ''
echo "Reloading gpg-agent"
echo RELOADAGENT | gpg-connect-agent
'';
};
# Multiple screen setup
# services.kanshi = {
# enable = true;
# profiles.undocked.outputs = [{ criteria = "LVDS-1"; }];
# profiles.docked-hdmi.outputs = [
# { criteria = "LVDS-1"; status = "disable"; }
# { criteria = "HDMI-A-1"; }
# ];
# enable = true;
# profiles.undocked.outputs = [{ criteria = "LVDS-1"; }];
# profiles.docked-hdmi.outputs = [
# { criteria = "LVDS-1"; status = "disable"; }
# { criteria = "HDMI-A-1"; }
# ];
# };
# This value determines the Home Manager release that your

View file

@ -24,6 +24,14 @@
# boot.kernelBuildIsCross = true;
boot.kernelBuildIs16K = false;
boot.kernelPatches = [{
name = "enable_uinput";
patch = null;
extraConfig = ''
CONFIG_INPUT_UINPUT m
'';
}];
networking.hostName = "kagami-air-m1"; # Define your hostname.
# networking.hostName = "nixos"; # Define your hostname.
@ -59,7 +67,6 @@
services.xserver.enable = true;
services.xserver.desktopManager.plasma5.enable = true;
# Configure keymap in X11
# services.xserver.layout = "jp106";
# services.xserver.xkbOptions = {
@ -72,10 +79,20 @@
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
services.pipewire = {
enable = true;
# alsa is optional
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
# Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true;
# Keyboard
services.input-remapper.enable = true;
hardware.uinput.enable = true;
# Define a user account. Don't forget to set a password with passwd.
users.users.nki = {
@ -122,6 +139,7 @@
#
hardware.bluetooth.enable = true;
# PAM
security.pam.services.lightdm.enableKwallet = true;
security.pam.services.lightdm.enableGnomeKeyring = true;