.
This commit is contained in:
parent
7bce5e225e
commit
6a32cd9e45
4 changed files with 113 additions and 13 deletions
|
|
@ -10,6 +10,7 @@
|
|||
./hardware-configuration.nix
|
||||
./display-manager.nix
|
||||
./packages.nix
|
||||
./secret.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
|
@ -19,6 +20,19 @@
|
|||
# Use latest kernel.
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
boot.extraModprobeConfig = ''
|
||||
options snd_hda_intel power_save=1
|
||||
'';
|
||||
|
||||
services.udev.extraRules = ''
|
||||
ACTION=="add", SUBSYSTEM=="pci", DRIVER=="pcieport", ATTR{power/wakeup}="disabled"
|
||||
'';
|
||||
|
||||
nix.settings.auto-optimise-store = true;
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.dates = "daily";
|
||||
nix.gc.options = "--delete-older-than 5d";
|
||||
|
||||
networking.hostName = "nixian"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
|
|
@ -41,6 +55,9 @@
|
|||
|
||||
hardware.bluetooth.enable = true;
|
||||
services.blueman.enable = true;
|
||||
|
||||
hardware.sane.enable = true;
|
||||
hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ];
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Sao_Paulo";
|
||||
|
|
@ -60,6 +77,26 @@
|
|||
LC_TIME = "pt_BR.UTF-8";
|
||||
};
|
||||
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
|
||||
autorun = false;
|
||||
|
||||
libinput.enable = true;
|
||||
libinput.mouse.accelProfile = "adaptive";
|
||||
libinput.mouse.accelSpeed = "-0.5";
|
||||
libinput.mouse.scrollMethod = "twofinger";
|
||||
|
||||
libinput.touchpad = {
|
||||
accelProfile = "adaptive";
|
||||
accelSpeed = "-0.5";
|
||||
scrollMethod = "twofinger";
|
||||
tapping = true;
|
||||
};
|
||||
};
|
||||
|
||||
#services.xserver.desktopManager.lxqt.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb = {
|
||||
layout = "br";
|
||||
|
|
@ -71,6 +108,15 @@
|
|||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = [
|
||||
pkgs.hplipWithPlugin
|
||||
];
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
# Enable sound with pipewire.
|
||||
services.pulseaudio.enable = false;
|
||||
|
|
@ -95,7 +141,7 @@
|
|||
users.users.adrian = {
|
||||
isNormalUser = true;
|
||||
description = "Adrian Victor";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
extraGroups = [ "networkmanager" "wheel" "lp"];
|
||||
};
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
|
|
@ -110,7 +156,14 @@
|
|||
|
||||
services.gvfs.enable = true;
|
||||
services.udisks2.enable = true;
|
||||
services.thermald.enable = true;
|
||||
|
||||
security.soteria.enable = true;
|
||||
#services.desktopManager.plasma6.enable = true;
|
||||
|
||||
virtualisation.virtualbox.host.enable = true;
|
||||
users.extraGroups.vboxusers.members = [ "adrian" ];
|
||||
#virtualisation.virtualbox.host.enableExtensionPack = true;
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
# services.openssh.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue