chore: Update flake inputs

This commit is contained in:
Alexander Kobjolke 2024-10-05 22:42:39 +02:00
parent 0e0c620c54
commit 1f9d373ddb
7 changed files with 105 additions and 47 deletions

View file

@ -2,7 +2,13 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ inputs, config, pkgs, lib, ... }:
{
inputs,
config,
pkgs,
lib,
...
}:
let
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
export __NV_PRIME_RENDER_OFFLOAD=1
@ -11,7 +17,8 @@ let
export __VK_LAYER_NV_optimus=NVIDIA_only
exec "$@"
'';
in {
in
{
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
@ -33,17 +40,21 @@ in {
networking.hostName = "dregil"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
networking.networkmanager.enable =
true; # Easiest to use and most distros use this by default.
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
networking.extraHosts = ''
127.0.0.1 localhost dregil.localdomain dregil
'';
i18n = {
extraLocaleSettings = { TIME_STYLE = "iso"; };
supportedLocales =
[ "C.UTF-8/UTF-8" "en_US.UTF-8/UTF-8" "de_DE.UTF-8/UTF-8" ];
extraLocaleSettings = {
TIME_STYLE = "iso";
};
supportedLocales = [
"C.UTF-8/UTF-8"
"en_US.UTF-8/UTF-8"
"de_DE.UTF-8/UTF-8"
];
};
console = {
@ -66,9 +77,8 @@ in {
# Enable CUPS to print documents.
# services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
# Enable sound using pipewire
hardware.pulseaudio.enable = false;
# List packages installed in system profile. To search, run:
# $ nix search wget
@ -87,11 +97,17 @@ in {
nix.settings.max-jobs = 3;
nix.settings.cores = 4;
programs.neovim = { enable = true; };
programs.neovim = {
enable = true;
};
programs.steam = { enable = true; };
programs.steam = {
enable = true;
};
programs.zsh = { enable = true; };
programs.zsh = {
enable = true;
};
# List services that you want to enable:
@ -100,10 +116,19 @@ in {
services.blueman.enable = true;
services.pipewire.enable = true;
services.pipewire.pulse.enable = true;
# Open ports in the firewall
# 22000, 21027 syncthing discovery and connectivity
networking.firewall.allowedTCPPorts = [ 5223 22000 ];
networking.firewall.allowedUDPPorts = [ 21027 22000 ];
networking.firewall.allowedTCPPorts = [
5223
22000
];
networking.firewall.allowedUDPPorts = [
21027
22000
];
# Or disable the firewall altogether.
# networking.firewall.enable = false;

View file

@ -95,6 +95,7 @@
hardware.nvidia = {
nvidiaSettings = true;
nvidiaPersistenced = true;
open = true;
# modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.beta;