2024-04-17 15:43:14 -05: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’).
|
|
|
|
|
|
{
|
2024-04-20 16:14:04 -05:00
|
|
|
|
config,
|
|
|
|
|
|
pkgs,
|
|
|
|
|
|
...
|
|
|
|
|
|
}: {
|
2024-04-17 15:43:14 -05:00
|
|
|
|
imports = [
|
|
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
|
./hardware-configuration.nix
|
2024-04-21 14:14:11 -05:00
|
|
|
|
|
2024-04-18 09:40:51 -05:00
|
|
|
|
# use shared configuration
|
2024-04-21 12:59:57 -05:00
|
|
|
|
../../config/nixos.nix
|
2024-04-22 14:14:11 -05:00
|
|
|
|
|
2024-04-23 15:37:44 -05:00
|
|
|
|
# intel configuration
|
|
|
|
|
|
#../../config/intel.nix
|
2024-04-17 15:43:14 -05:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
# who up thunking they
|
|
|
|
|
|
networking.hostName = "thunkpad";
|
|
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
|
time.timeZone = "America/Chicago";
|
|
|
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
|
|
LC_ADDRESS = "en_US.UTF-8";
|
|
|
|
|
|
LC_IDENTIFICATION = "en_US.UTF-8";
|
|
|
|
|
|
LC_MEASUREMENT = "en_US.UTF-8";
|
|
|
|
|
|
LC_MONETARY = "en_US.UTF-8";
|
|
|
|
|
|
LC_NAME = "en_US.UTF-8";
|
|
|
|
|
|
LC_NUMERIC = "en_US.UTF-8";
|
|
|
|
|
|
LC_PAPER = "en_US.UTF-8";
|
|
|
|
|
|
LC_TELEPHONE = "en_US.UTF-8";
|
|
|
|
|
|
LC_TIME = "en_US.UTF-8";
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2024-04-20 09:47:52 -05:00
|
|
|
|
# system auto upgrading
|
|
|
|
|
|
system.autoUpgrade = {
|
|
|
|
|
|
enable = true;
|
|
|
|
|
|
persistent = true;
|
2024-04-20 16:14:04 -05:00
|
|
|
|
flake = "/home/ruben/.nixos#thunkpad";
|
2024-04-20 09:47:52 -05:00
|
|
|
|
flags = [
|
|
|
|
|
|
"-L"
|
|
|
|
|
|
];
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2024-04-22 09:29:59 -05:00
|
|
|
|
# opengl and graphics settings
|
|
|
|
|
|
# https://nixos.wiki/wiki/Accelerated_Video_Playback
|
|
|
|
|
|
hardware.opengl = {
|
|
|
|
|
|
enable = true;
|
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
|
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
|
|
|
|
|
libvdpau-va-gl
|
|
|
|
|
|
];
|
|
|
|
|
|
};
|
|
|
|
|
|
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; };
|
|
|
|
|
|
|
2024-04-21 12:15:54 -05:00
|
|
|
|
# TODO: refer to https://github.com/ahbnr/nixos-06cb-009a-fingerprint-sensor?tab=readme-ov-file#setup-based-on-fprintd-and-bingchs-driver
|
|
|
|
|
|
# and update this part accordingly to make it easy to follow and do
|
2024-04-21 14:50:23 -05:00
|
|
|
|
#services.fprintd.enable = false;
|
|
|
|
|
|
#services.open-fprintd.enable = true;
|
|
|
|
|
|
#services.python-validity.enable = true;
|
2024-04-17 15:43:14 -05:00
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
|
# 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 = "23.11"; # Did you read the comment?
|
|
|
|
|
|
}
|