Files
nixos-config/profiles/personal/configuration.nix
Sravan Balaji 56c71036c6 OSProber for GRUB and Audio Options
- Enable OSProber for grub
- Enable more audio related options
2024-03-24 14:34:08 -04:00

106 lines
2.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, lib, systemSettings, userSettings, ... }:
{
imports = [
../../system/hardware-configuration.nix
../../disko/${systemSettings.diskoConfig}.nix
../../system/hardware/kernel.nix
../../system/hardware/bluetooth.nix
../../system/hardware/opengl.nix
../../system/hardware/openrgb.nix
../../system/hardware/printing.nix
../../system/hardware/automount.nix
../../system/security/firewall.nix
../../system/app/gaming/steam.nix
../../system/app/gaming/gamemode.nix
../../system/hardware/audio.nix
../../system/gui/dwm.nix
];
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
'';
};
nixpkgs.config.allowUnfree = true;
boot = {
initrd.enable = true;
loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/EFI";
};
grub = {
enable = true;
device = "nodev";
efiSupport = true;
enableCryptodisk = true;
useOSProber = true;
};
};
};
networking = {
hostName = systemSettings.hostname;
networkmanager.enable = true;
};
time.timeZone = systemSettings.timezone;
i18n.defaultLocale = systemSettings.locale;
i18n.extraLocaleSettings = {
LC_ADDRESS = systemSettings.locale;
LC_IDENTIFICATION = systemSettings.locale;
LC_MEASUREMENT = systemSettings.locale;
LC_MONETARY = systemSettings.locale;
LC_NAME = systemSettings.locale;
LC_NUMERIC = systemSettings.locale;
LC_PAPER = systemSettings.locale;
LC_TELEPHONE = systemSettings.locale;
LC_TIME = systemSettings.locale;
};
users.users.${userSettings.username} = {
isNormalUser = true;
description = userSettings.name;
extraGroups = [ "networkmanager" "wheel" "input" "dialout" ];
packages = [];
uid = 1000;
};
environment.systemPackages = with pkgs; [
vim
wget
zsh
git
cryptsetup
home-manager
];
environment.shells = with pkgs; [ zsh ];
users.defaultUserShell = pkgs.zsh;
programs.zsh.enable = true;
fonts.fontDir.enable = true;
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal
pkgs.xdg-desktop-portal-gtk
];
config.common.default = [ "gtk" ];
};
# The first version of NixOS installed on this particular machine
# Is used to maintain compatibility with application data
# (e.g., databases) created on older NixOS version
system.stateVersion = "23.11";
}