initial commit
This commit is contained in:
commit
120dbdbc64
21 changed files with 2413 additions and 0 deletions
143
configuration.nix
Normal file
143
configuration.nix
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page, on
|
||||
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
hostname,
|
||||
...
|
||||
}:
|
||||
{
|
||||
sops.age.keyFile = "/.persist/root/.config/sops/age/keys.txt";
|
||||
nix.settings.experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
|
||||
boot.initrd.systemd.enable = true;
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "America/Sao_Paulo";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
#console = {
|
||||
# # font = "Lat2-Terminus16";
|
||||
# keyMap = "us";
|
||||
# useXkbConfig = true; # use xkb.options in tty.
|
||||
#};
|
||||
|
||||
# services.xserver.xkb.layout = "us";
|
||||
# services.xserver.xkb.options = "eurosign:e,caps:escape";
|
||||
services.printing.enable = true;
|
||||
|
||||
services = {
|
||||
xserver.xkb = {
|
||||
layout = "us";
|
||||
variant = "altgr-intl";
|
||||
};
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# jack.enable = true;
|
||||
};
|
||||
xserver.videoDrivers = [
|
||||
"nvidia"
|
||||
"amdgpu"
|
||||
];
|
||||
logind.settings.Login = {
|
||||
HandlePowerKey = "ignore";
|
||||
HandlePowerKeyLongPress = "ignore";
|
||||
HandleRebootKey = "ignore";
|
||||
HandleRebootKeyLongPress = "ignore";
|
||||
HandleHibernateKey = "ignore";
|
||||
HandleHibernateKeyLongPress = "ignore";
|
||||
};
|
||||
getty = {
|
||||
autologinUser = "user";
|
||||
autologinOnce = true;
|
||||
};
|
||||
# greetd = {
|
||||
# enable = true;
|
||||
# settings = rec {
|
||||
# initial_session = {
|
||||
# command = "${pkgs.niri}/bin/niri-session";
|
||||
# user = "user";
|
||||
# };
|
||||
# default_session = initial_session;
|
||||
# };
|
||||
# };
|
||||
tailscale.enable = true;
|
||||
};
|
||||
|
||||
# systemd.services.greetd.serviceConfig = {
|
||||
# Type = "idle";
|
||||
# StandardInput = "tty";
|
||||
# StandardOutput = "tty";
|
||||
# StandardError = "journal";
|
||||
# TTYReset = true;
|
||||
# TTYVHangup = true;
|
||||
# TTYVTDisallocate = true;
|
||||
# Restart = "no";
|
||||
# };
|
||||
|
||||
hardware = {
|
||||
graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = false;
|
||||
powerManagement.finegrained = false;
|
||||
open = true;
|
||||
nvidiaSettings = false;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
bluetooth = {
|
||||
enable = true;
|
||||
powerOnBoot = true;
|
||||
settings = {
|
||||
General = {
|
||||
Enable = "Source,Sink,Media,Socket";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
xdgOpenUsePortal = true;
|
||||
# config.common.default = [ "*" ];
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gnome
|
||||
# pkgs.gnome-keyring
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
fira-code-symbols
|
||||
nerd-fonts.monaspace
|
||||
];
|
||||
|
||||
environment.sessionVariables = {
|
||||
NIXOS_OZONE_WL = "1";
|
||||
EDITOR = "nvim";
|
||||
QT_FONT_DPI = "144";
|
||||
};
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue