Update depreciated values for NixOS 24.05

This commit is contained in:
♥ Minnie ♥ 2024-06-03 21:17:51 +08:00
parent 7b5f9a5182
commit f55f8e6da8
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
4 changed files with 22 additions and 17 deletions

View file

@ -9,11 +9,13 @@
enable = true; enable = true;
# Enable extra features # Enable extra features
enableAutosuggestions = true; autosuggestion = {
enableCompletion = true; enable = true;
};
syntaxHighlighting = { syntaxHighlighting = {
enable = true; enable = true;
}; };
enableCompletion = true;
dotDir = ".config/zsh"; dotDir = ".config/zsh";
# Commands that should be added to to top of '.zshrc' # Commands that should be added to to top of '.zshrc'

View file

@ -14,7 +14,7 @@
programs.gnupg.agent = { programs.gnupg.agent = {
enable = true; enable = true;
# Fix: invalid time when using keytocard # Fix: invalid time when using keytocard
pinentryFlavor = "gtk2"; pinentryPackage = pkgs.pinentry-curses;
}; };
# Use our yubikey as a user login or for sudo access # Use our yubikey as a user login or for sudo access

View file

@ -20,5 +20,6 @@
users = { users = {
sajenim = import "${inputs.self}/home-manager/sajenim/${config.networking.hostName}.nix"; sajenim = import "${inputs.self}/home-manager/sajenim/${config.networking.hostName}.nix";
}; };
backupFileExtension = "bak";
}; };
} }

View file

@ -3,9 +3,11 @@
{ {
imports = [ imports = [
../common/global ../common/global
../common/users/sajenim ../common/users/sajenim
../common/users/sajenim/samba ../common/users/sajenim/samba
../common/users/sajenim/steam ../common/users/sajenim/steam
../common/optional/key.nix ../common/optional/key.nix
./services ./services
@ -65,27 +67,27 @@
# Setup our display server. # Setup our display server.
xserver = { xserver = {
enable = true; enable = true;
layout = "au"; xkb.layout = "au";
videoDrivers = [ "amdgpu" ]; videoDrivers = [ "amdgpu" ];
libinput = {
enable = true;
mouse = {
accelProfile = "flat";
};
};
displayManager.startx.enable = true; displayManager.startx.enable = true;
}; };
# Get up and running with large language models locally. libinput = {
ollama = {
enable = true; enable = true;
package = pkgs.unstable.ollama; mouse = { accelProfile = "flat"; };
acceleration = "rocm";
# environmentVariables = {
# HSA_OVERRIDE_GFX_VERSION = "10.3.0";
# };
}; };
# Get up and running with large language models locally.
# ollama = {
# enable = true;
# package = pkgs.unstable.ollama;
# acceleration = "rocm";
# # environmentVariables = {
# # HSA_OVERRIDE_GFX_VERSION = "10.3.0";
# # };
# };
# Enable a few other services. # Enable a few other services.
ratbagd.enable = true; ratbagd.enable = true;
pcscd.enable = true; pcscd.enable = true;