nixos-private-dots/nixos/configuration.nix
2024-08-10 21:27:06 +03:00

71 lines
2.1 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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).
{ pkgs, inputs, ... }:
let
username = "buliway";
in {
imports = [
/etc/nixos/hardware-configuration.nix
inputs.home-manager.nixosModules.default
../modules/nixos/bundle.nix
./packages.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest; # Ядро линуха, ласт версия
# boot.plymouth.enable = true; # Логотип загрузки вместо спама?
boot.loader = {
# systemd-boot.enable = true;
grub = {
enable = true;
efiSupport = true;
device = "nodev"; # nodev позволяет не устанавливать grub в конкретное место, но видеть его ui
};
efi.canTouchEfiVariables = true;
# kernelParams = [ # https://nixos.wiki/wiki/AMD_GPU#Dual_Monitors
# "video=DP-3:1920x1080@165"
# "video=HDMI-A-1:1920x1080@75"
# ];
};
# Define a user account. Don't forget to set a password with passwd.
users = {
defaultUserShell = pkgs.zsh;
users.${username} = {
isNormalUser = true;
description = username;
extraGroups = [ "networkmanager" "wheel" "input" "libvirtd" "storage" "docker" "video" ];
# packages = with pkgs; [];
};
};
home-manager = {
# also pass inputs to home-manager modules
useGlobalPkgs = true;
extraSpecialArgs = { inherit inputs; };
users.${username} = import ./home.nix;
};
security.polkit = { # Всплывающее меню для ввода пароля
enable = true;
};
xdg.portal = {
enable = true;
configPackages = with pkgs; [
xdg-desktop-portal-gtk # Чтоб загружать файлы и стримить в дискорде
];
extraPortals = with pkgs; [
xdg-desktop-portal-gtk # Чтоб загружать файлы и стримить в дискорде
];
};
nix.settings.experimental-features = ["nix-command" "flakes"];
system.stateVersion = "24.05"; # Don't change it
}