nixos-private-dots/nixos/configuration.nix
2024-08-05 06:31:12 +03:00

62 lines
1.7 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
# ./filesystems.nix
];
boot.loader = {
systemd-boot.enable = true;
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" ];
# packages = with pkgs; [];
};
};
home-manager = {
# also pass inputs to home-manager modules
extraSpecialArgs = { inherit inputs; };
users.${username} = import ./home.nix;
};
security.polkit = { # Всплывающее меню для ввода пароля
enable = true;
package = pkgs.polkit_gnome; # Legacy polkit authentication agent for GNOME
# package = pkgs.lxde.lxsession; # Lightweight X11 gtk2 session manager
};
xdg.portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk # Чтоб загружать файлы и стримить в дискорде
];
};
nix.settings.experimental-features = ["nix-command" "flakes"];
system.stateVersion = "24.05"; # Don't change it
}