2022-06-05 01:43:16 -03:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
2022-11-17 15:12:27 -03:00
|
|
|
|
{ config, pkgs, inputs, ... }: {
|
2023-05-18 12:36:29 -03:00
|
|
|
|
imports = [
|
|
|
|
|
./gamemode.nix
|
|
|
|
|
./cachix.nix
|
|
|
|
|
./media-packages.nix
|
|
|
|
|
./boot.nix
|
|
|
|
|
./vpn.nix
|
|
|
|
|
./thunar.nix
|
2023-05-18 12:36:43 -03:00
|
|
|
|
./nix.nix
|
2023-05-18 12:36:29 -03:00
|
|
|
|
];
|
2022-10-24 19:52:24 -03:00
|
|
|
|
|
2022-12-16 17:53:15 -03:00
|
|
|
|
zramSwap.enable = true;
|
|
|
|
|
|
2022-08-20 15:22:48 -03:00
|
|
|
|
programs.adb.enable = true;
|
2022-08-30 22:01:06 -03:00
|
|
|
|
services.udev.packages = [ pkgs.android-udev-rules ];
|
2022-08-20 15:22:48 -03:00
|
|
|
|
|
2022-06-05 01:43:16 -03:00
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
|
# Configure network proxy if necessary
|
|
|
|
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
|
|
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
|
|
|
# Enable networking
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "America/Sao_Paulo";
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
i18n.defaultLocale = "pt_BR.utf8";
|
2022-11-07 11:24:40 -03:00
|
|
|
|
|
2022-06-05 01:43:16 -03:00
|
|
|
|
# Enable the GNOME Desktop Environment.
|
2022-06-12 23:47:05 -03:00
|
|
|
|
# services.xserver.displayManager.gdm.enable = true;
|
2022-06-13 09:45:20 -03:00
|
|
|
|
# services.xserver.desktopManager.gnome.enable = true;
|
2022-07-15 22:03:57 -03:00
|
|
|
|
# services.xserver.displayManager.autologin.user = "lelgenio";
|
2022-11-07 11:24:40 -03:00
|
|
|
|
|
2022-06-05 01:43:16 -03:00
|
|
|
|
# Configure keymap in X11
|
|
|
|
|
services.xserver = {
|
|
|
|
|
layout = "us";
|
|
|
|
|
xkbVariant = "colemak";
|
|
|
|
|
};
|
2022-07-15 22:03:57 -03:00
|
|
|
|
console.keyMap = "colemak";
|
2022-06-05 01:43:16 -03:00
|
|
|
|
# Enable CUPS to print documents.
|
2022-06-09 23:16:20 -03:00
|
|
|
|
# services.printing.enable = true;
|
|
|
|
|
services.flatpak.enable = true;
|
2022-06-05 01:43:16 -03:00
|
|
|
|
virtualisation.docker.enable = true;
|
2023-02-12 01:24:48 -03:00
|
|
|
|
virtualisation.docker.autoPrune.enable = true;
|
2023-08-08 17:55:13 -03:00
|
|
|
|
virtualisation.docker.autoPrune.flags = [ "--all --volumes" ];
|
2022-11-10 20:54:21 -03:00
|
|
|
|
programs.firejail.enable = true;
|
2022-10-18 21:45:20 -03:00
|
|
|
|
|
2022-08-07 15:12:25 -03:00
|
|
|
|
security.rtkit.enable = true;
|
2022-11-10 20:54:28 -03:00
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
ports = [ 9022 ];
|
2023-06-02 22:42:56 -03:00
|
|
|
|
settings = {
|
|
|
|
|
PermitRootLogin = "no";
|
|
|
|
|
PasswordAuthentication = false;
|
|
|
|
|
KbdInteractiveAuthentication = false;
|
|
|
|
|
};
|
2022-11-10 20:54:28 -03:00
|
|
|
|
};
|
2022-12-23 11:22:58 -03:00
|
|
|
|
# programs.ssh = {
|
|
|
|
|
# startAgent = true;
|
|
|
|
|
# extraConfig = ''
|
|
|
|
|
# AddKeysToAgent yes
|
|
|
|
|
# '';
|
|
|
|
|
# };
|
2022-08-07 15:12:25 -03:00
|
|
|
|
|
|
|
|
|
## Enable sound with pipewire.
|
2022-06-05 01:43:16 -03:00
|
|
|
|
sound.enable = true;
|
2022-11-07 11:24:40 -03:00
|
|
|
|
hardware.pulseaudio.enable = false;
|
2022-08-07 15:12:25 -03:00
|
|
|
|
services.pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
wireplumber.enable = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
jack.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2022-11-12 21:15:20 -03:00
|
|
|
|
services.blueman.enable = true;
|
|
|
|
|
hardware.bluetooth = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.bluezFull;
|
|
|
|
|
settings = {
|
|
|
|
|
General = {
|
|
|
|
|
DiscoverableTimeout = 0;
|
|
|
|
|
# Discoverable = true;
|
|
|
|
|
AlwaysPairable = true;
|
|
|
|
|
};
|
2022-12-01 23:13:00 -03:00
|
|
|
|
Policy = { AutoEnable = true; };
|
2022-11-12 21:15:20 -03:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2022-06-05 01:43:16 -03:00
|
|
|
|
# Enable touchpad support (enabled default in most desktopManager).
|
2022-06-09 23:16:20 -03:00
|
|
|
|
services.xserver.libinput.enable = true;
|
2022-10-18 21:45:20 -03:00
|
|
|
|
|
2022-06-05 01:43:16 -03:00
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
2023-01-28 21:32:40 -03:00
|
|
|
|
users.mutableUsers = false;
|
2022-06-05 01:43:16 -03:00
|
|
|
|
users.users.lelgenio = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
description = "Leonardo Eugênio";
|
2023-01-28 21:32:40 -03:00
|
|
|
|
hashedPassword = "$y$j9T$0e/rczjOVCy7PuwC3pG0V/$gTHZhfO4wQSlFvbDyfghbCnGI2uDI0a52zSrQ/yOA5A";
|
2023-06-27 20:24:32 -03:00
|
|
|
|
extraGroups = [ "networkmanager" "wheel" "docker" "adbusers" "bluetooth" "corectrl" ];
|
2022-06-05 01:43:16 -03:00
|
|
|
|
shell = pkgs.fish;
|
2023-02-17 19:02:13 -03:00
|
|
|
|
openssh.authorizedKeys.keys = [
|
|
|
|
|
"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCxR/w+38b2lX90yNBqhq3mUmkn1WGu6GAPhN1tVp2ZjYRJNV/+5gWCnTtOWYtDx35HmK/spQ2Qy8X9ttkzORa24fysNx1Iqn/TiXhD7eIJjbGPnrOpIKTkW5/uB3SD/P5NBSa06//BaqJU4sBlG79hoXRpod052hQtdpTVDiMCIV+iboWPKqopmJJfWdBtVnHXs9rep0htPRExxGslImFk7Z6xjcaHyCpIQZPlOGf+sGsmUU7jRqzvZFV8ucIdbnAlMHrU4pepNFhuraESyZVTa/bi9sw0iozXp5Q5+5thMebEslmT1Z771kI4sieDy+O4r8c0Sx2/VY1UAzcpq1faggc3YB01MTh+tiEC6xdMvZLrQGL1NBWjHleMyL53GU5ERluC0vXJF3Hv3BGGBDfXWbrEm5n06DHr2apRVJGC0LwiQ7Woud1X4V4X1pKSusxCVMjT2lmcOwV6YhKhB2sowJc1OdMx4+tL0UWE+YKSZgBHfolwk6ml0F4EO9nnUHc= lelgenio@i15"
|
|
|
|
|
];
|
2022-06-05 01:43:16 -03:00
|
|
|
|
};
|
2023-01-28 21:32:40 -03:00
|
|
|
|
users.users.root.initialHashedPassword = "$y$j9T$E3aBBSSq0Gma8hZD9L7ov0$iCGDW4fqrXWfHO0qodBYYgMFA9CpIraoklHcPbJJrM3";
|
|
|
|
|
|
2022-07-16 14:24:09 -03:00
|
|
|
|
# services.getty.autologinUser = "lelgenio";
|
2022-06-05 01:43:16 -03:00
|
|
|
|
programs.fish.enable = true;
|
2023-05-17 23:51:14 -03:00
|
|
|
|
|
|
|
|
|
programs.dzgui.enable = true;
|
|
|
|
|
|
2023-05-18 12:36:43 -03:00
|
|
|
|
packages.media-packages.enable = true;
|
2022-06-05 01:43:16 -03:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
2022-07-16 02:12:18 -03:00
|
|
|
|
pinentry-curses
|
2022-06-13 09:45:20 -03:00
|
|
|
|
pavucontrol
|
2022-10-18 21:45:20 -03:00
|
|
|
|
|
2022-06-12 23:47:05 -03:00
|
|
|
|
glib # gsettings
|
2022-09-26 22:12:56 -03:00
|
|
|
|
usbutils
|
2022-08-01 20:15:26 -03:00
|
|
|
|
# dracula-theme # gtk theme
|
2022-07-21 00:32:09 -03:00
|
|
|
|
gnome3.adwaita-icon-theme # default gnome cursors
|
2022-06-05 01:43:16 -03:00
|
|
|
|
];
|
2022-10-18 21:45:20 -03:00
|
|
|
|
|
2023-01-30 00:24:12 -03:00
|
|
|
|
fonts.enableDefaultFonts = true;
|
2023-02-23 15:48:19 -03:00
|
|
|
|
fonts.fonts = with pkgs; [
|
|
|
|
|
noto-fonts
|
|
|
|
|
noto-fonts-cjk
|
|
|
|
|
noto-fonts-emoji
|
|
|
|
|
nerdfonts_fira_hack
|
|
|
|
|
];
|
2023-01-30 00:24:12 -03:00
|
|
|
|
|
2022-07-21 01:04:22 -03:00
|
|
|
|
services.geoclue2.enable = true;
|
2022-07-21 00:29:12 -03:00
|
|
|
|
# programs.qt5ct.enable = true;
|
2022-06-05 01:43:16 -03:00
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
|
|
|
# started in user sessions.
|
|
|
|
|
# programs.mtr.enable = true;
|
|
|
|
|
services.pcscd.enable = true;
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableSSHSupport = true;
|
|
|
|
|
pinentryFlavor = "curses";
|
|
|
|
|
};
|
2022-07-20 19:48:29 -03:00
|
|
|
|
security.sudo.wheelNeedsPassword = false;
|
2022-11-17 15:12:27 -03:00
|
|
|
|
|
2022-06-05 01:43:16 -03:00
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
2022-10-18 21:04:39 -03:00
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
2022-06-05 01:43:16 -03:00
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "22.05"; # Did you read the comment?
|
2022-07-21 00:32:09 -03:00
|
|
|
|
}
|