Update flake

This commit is contained in:
Invariantspace 2024-01-16 18:48:06 -08:00
parent 8e4f10a696
commit c3a2bf746e
11 changed files with 69 additions and 74 deletions

View file

@ -5,7 +5,6 @@
{ pkgs, ... }:
{
# Configure boot
boot = {
initrd.systemd.enable = true;
@ -28,31 +27,28 @@
};
};
# Set your time zone.
time.timeZone = "Asia/Shanghai";
# Enable bluetooth
hardware.bluetooth.enable = true;
# Enable hardware accelerated video decoding
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
# Configure hardware
hardware = {
bluetooth.enable = true;
opengl = {
enable = true;
extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
};
};
# Enable firmware update
services.fwupd.enable = true;
# Configure system services
services = {
automatic-timezoned.enable = true;
fwupd.enable = true;
};
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable CUPS to print documents.
# services.printing.enable = true;
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
@ -61,16 +57,6 @@
# enableSSHSupport = true;
# };
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
# 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. Its perfectly fine and recommended to leave
@ -78,6 +64,5 @@
# 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?
}