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 # Graphical set up
# linux.graphical.type = "wayland"; linux.graphical.type = "x11";
# linux.graphical.wallpaper = ./images/wallpaper_0.png; linux.graphical.wallpaper = ./images/wallpaper_0.png;
# Enable sway # Enable sway
# programs.my-sway.enable = true; # programs.my-sway.enable = true;
# programs.my-sway.fontSize = 14.0; # programs.my-sway.fontSize = 14.0;
@ -47,16 +47,27 @@
nki.programs.kitty = { nki.programs.kitty = {
enable = true; enable = true;
fontSize = 16; 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 # Multiple screen setup
# services.kanshi = { # services.kanshi = {
# enable = true; # enable = true;
# profiles.undocked.outputs = [{ criteria = "LVDS-1"; }]; # profiles.undocked.outputs = [{ criteria = "LVDS-1"; }];
# profiles.docked-hdmi.outputs = [ # profiles.docked-hdmi.outputs = [
# { criteria = "LVDS-1"; status = "disable"; } # { criteria = "LVDS-1"; status = "disable"; }
# { criteria = "HDMI-A-1"; } # { criteria = "HDMI-A-1"; }
# ]; # ];
# }; # };
# This value determines the Home Manager release that your # This value determines the Home Manager release that your

View file

@ -24,6 +24,14 @@
# boot.kernelBuildIsCross = true; # boot.kernelBuildIsCross = true;
boot.kernelBuildIs16K = false; 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 = "kagami-air-m1"; # Define your hostname.
# networking.hostName = "nixos"; # Define your hostname. # networking.hostName = "nixos"; # Define your hostname.
@ -59,7 +67,6 @@
services.xserver.enable = true; services.xserver.enable = true;
services.xserver.desktopManager.plasma5.enable = true; services.xserver.desktopManager.plasma5.enable = true;
# Configure keymap in X11 # Configure keymap in X11
# services.xserver.layout = "jp106"; # services.xserver.layout = "jp106";
# services.xserver.xkbOptions = { # services.xserver.xkbOptions = {
@ -72,10 +79,20 @@
# Enable sound. # Enable sound.
sound.enable = true; 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). # Enable touchpad support (enabled default in most desktopManager).
services.xserver.libinput.enable = true; 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. # Define a user account. Don't forget to set a password with passwd.
users.users.nki = { users.users.nki = {
@ -122,6 +139,7 @@
# #
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
# PAM # PAM
security.pam.services.lightdm.enableKwallet = true; security.pam.services.lightdm.enableKwallet = true;
security.pam.services.lightdm.enableGnomeKeyring = true; security.pam.services.lightdm.enableGnomeKeyring = true;