.
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.
|
||||
|
||||
|
|
@ -42,6 +56,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,8 +156,15 @@
|
|||
|
||||
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;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@
|
|||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
boot.supportedFilesystems.exfat = true;
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/ebd458ec-8189-4955-a0b9-3222a5946901";
|
||||
fsType = "ext4";
|
||||
|
|
|
|||
57
packages.nix
57
packages.nix
|
|
@ -9,9 +9,17 @@
|
|||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
services.xserver.windowManager.windowmaker.enable = true;
|
||||
|
||||
xdg.terminal-exec.settings.default = [ "kitty.desktop" ];
|
||||
|
||||
environment.variables = { TERMINAL = "kitty"; };
|
||||
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
nwg-displays
|
||||
wget
|
||||
gnupg1
|
||||
htop
|
||||
adwaita-icon-theme # dummy just so apps have icons
|
||||
|
|
@ -19,6 +27,9 @@
|
|||
zsh
|
||||
neovim
|
||||
floorp-bin
|
||||
unzipNLS
|
||||
zip
|
||||
gnutar
|
||||
|
||||
# -- Dotfiles
|
||||
swayfx
|
||||
|
|
@ -37,6 +48,7 @@
|
|||
xorg.xprop
|
||||
libpulseaudio
|
||||
dunst # notifications
|
||||
rofi-pulse-select
|
||||
# - #
|
||||
|
||||
# -- Userland USB monunting
|
||||
|
|
@ -52,21 +64,24 @@
|
|||
fuseiso # mounting ISOs
|
||||
# - #
|
||||
|
||||
westonLite
|
||||
xwayland
|
||||
xwayland-run
|
||||
xwayland-satellite
|
||||
themechanger
|
||||
#westonLite
|
||||
#xwayland
|
||||
#xwayland-run
|
||||
#xwayland-satellite
|
||||
#themechanger
|
||||
fastfetch
|
||||
git
|
||||
git-credential-manager
|
||||
bashNonInteractive
|
||||
cmake
|
||||
#cmake
|
||||
cmatrix
|
||||
kdePackages.kwallet
|
||||
kdePackages.kwallet-pam
|
||||
kdePackages.kwalletmanager
|
||||
ventoy-full-gtk
|
||||
qemu
|
||||
wineWowPackages.stable
|
||||
winetricks
|
||||
];
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
|
|
@ -76,7 +91,7 @@
|
|||
programs.sway = {
|
||||
enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
extraPackages = [];
|
||||
#extraPackages = [];
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
|
|
@ -84,6 +99,14 @@
|
|||
];
|
||||
|
||||
users.users.adrian.packages = with pkgs; [
|
||||
gscan2pdf
|
||||
waypipe
|
||||
rustdesk-flutter
|
||||
dosbox-staging
|
||||
nodejs_24
|
||||
#ungoogled-chromium
|
||||
gimp
|
||||
spek
|
||||
thunderbird
|
||||
signal-desktop
|
||||
# fontmatrix # cmake_minimum_required
|
||||
|
|
@ -104,20 +127,32 @@
|
|||
jellyfin-tui
|
||||
jellyfin-rpc
|
||||
vesktop
|
||||
android-studio
|
||||
#android-studio
|
||||
vscodium-fhs
|
||||
# androidenv.androidPkgs.tools
|
||||
# androidenv.androidPkgs.androidsdk
|
||||
# androidenv.androidPkgs.all.system-images.v36_1.page_size_16kb.x86_64
|
||||
jetbrains.idea
|
||||
kdePackages.gwenview
|
||||
kdePackages.partitionmanager
|
||||
#kdePackages.partitionmanager
|
||||
gparted
|
||||
#gnome-disk-utility
|
||||
fatresize
|
||||
gradle
|
||||
javaPackages.compiler.openjdk21
|
||||
lmstudio
|
||||
#javaPackages.compiler.openjdk21
|
||||
#lmstudio
|
||||
bottles
|
||||
transmission_4-qt
|
||||
hardinfo2
|
||||
ydotool
|
||||
keepmenu
|
||||
dmenu
|
||||
python313
|
||||
python313Packages.pykeepass
|
||||
pavucontrol
|
||||
obs-studio
|
||||
deluge
|
||||
libreoffice-qt
|
||||
];
|
||||
|
||||
programs.steam = {
|
||||
|
|
|
|||
10
secret.nix
Normal file
10
secret.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.zerotierone = {
|
||||
enable = true;
|
||||
joinNetworks = [
|
||||
"60ee7c034a95b798"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue