Skip to content

Commit

Permalink
update to nixos 24.11
Browse files Browse the repository at this point in the history
  • Loading branch information
tejing1 committed Dec 12, 2024
1 parent 7469b55 commit d5b03be
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 20 deletions.
28 changes: 14 additions & 14 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";

home-manager.url = "github:nix-community/home-manager/release-24.05";
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";

nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
Expand Down
12 changes: 9 additions & 3 deletions homeConfigurations/tejing/windowmanager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,15 @@ in
};

services.picom.enable = true;
services.picom.backend = "xrender";
services.picom.vSync = true;
services.picom.opacityRules = [ "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ];
xdg.configFile."picom/picom.conf".text = lib.mkForce ''
backend = "xrender";
unredir-if-possible = true;
vsync = true;
rules=(
{ match = "_NET_WM_STATE@[*] = '_NET_WM_STATE_HIDDEN'"; opacity = 0; },
{ match = "! _NET_WM_STATE@[*] = '_NET_WM_STATE_HIDDEN'"; opacity = 1; },
)
'';

gtk.enable = true;
gtk.gtk3.bookmarks = [ "file:///home/tejing/data" ];
Expand Down
6 changes: 6 additions & 0 deletions nixosConfigurations/tejingdesk/sound.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
# Enable pulseaudio
hardware.pulseaudio.enable = true;
hardware.pulseaudio.support32Bit = true;

# Disable pipewire. It's now on by default when X is configured, and I don't want to switch just yet.
services.pipewire.enable = false;

# Really doesn't seem like it should be on by default. It's not that big, but still...
services.speechd.enable = false;
}
5 changes: 4 additions & 1 deletion nixosConfigurations/tejingdesk/xserver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
nixpkgs.config.allowUnfree = true;
services.xserver.videoDrivers = [ "nvidia" ];

# GeForce GTX 970 is too old for the open drivers
hardware.nvidia.open = false;

# Enable experimental nvidia_drm framebuffer console
hardware.nvidia.modesetting.enable = true;
boot.kernelParams = [ "nvidia-drm.fbdev=1" ];
boot.initrd.availableKernelModules = [ "nvidia" "nvidia_modeset" "nvidia_drm" "nvidia_uvm" ];

# 32-bit graphics libraries
hardware.opengl.driSupport32Bit = true;
hardware.graphics.enable32Bit = true;

environment.sessionVariables = {
# I don't know why VA-API can't find the driver without this...
Expand Down

0 comments on commit d5b03be

Please sign in to comment.