trying to update openrazer

This commit is contained in:
Matt Nish-Lapidus 2025-01-13 15:26:20 -05:00
parent 829c535f5c
commit e4f9fdf172
3 changed files with 39 additions and 20 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env fish #!/usr/bin/env fish
function flakeup --description 'update flake sources' function flakeup --description 'update flake sources'
cd '/home/emenel/source/nixos-config' && sudo nix flake update && prevd sudo nix flake update --flake /home/emenel/source/nixos-config
end end

30
flake.lock generated
View file

@ -134,11 +134,11 @@
"zig": "zig" "zig": "zig"
}, },
"locked": { "locked": {
"lastModified": 1736695299, "lastModified": 1736780823,
"narHash": "sha256-928g4bGGkrd2Ls74kkeKpu0TRNPLXhBnhXv36lkl1/A=", "narHash": "sha256-0O+w/MYI7xC4h1MmNg8rPVUIGPIIZYv+Vq0ZAY+MnW4=",
"owner": "ghostty-org", "owner": "ghostty-org",
"repo": "ghostty", "repo": "ghostty",
"rev": "caddf59db547112a18b5fe908eabb12da6624372", "rev": "132c4f1f68d75813370cadfc090f96a32be19705",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -212,11 +212,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1736508663, "lastModified": 1736785676,
"narHash": "sha256-ZOaGwa+WnB7Zn3YXimqjmIugAnHePdXCmNu+AHkq808=", "narHash": "sha256-TY0jUwR3EW0fnS0X5wXMAVy6h4Z7Y6a3m+Yq++C9AyE=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2532b500c3ed2b8940e831039dcec5a5ea093afc", "rev": "fc52a210b60f2f52c74eac41a8647c1573d2071d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -366,11 +366,11 @@
}, },
"nixpkgs-unstable_2": { "nixpkgs-unstable_2": {
"locked": { "locked": {
"lastModified": 1736523798, "lastModified": 1736701207,
"narHash": "sha256-Xb8mke6UCYjge9kPR9o4P1nVrhk7QBbKv3xQ9cj7h2s=", "narHash": "sha256-jG/+MvjVY7SlTakzZ2fJ5dC3V1PrKKrUEOEE30jrOKA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "130595eba61081acde9001f43de3248d8888ac4a", "rev": "ed4a395ea001367c1f13d34b1e01aa10290f67d6",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -398,11 +398,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1736549401, "lastModified": 1736684107,
"narHash": "sha256-ibkQrMHxF/7TqAYcQE+tOnIsSEzXmMegzyBWza6uHKM=", "narHash": "sha256-vH5mXxEvZeoGNkqKoCluhTGfoeXCZ1seYhC2pbMN0sg=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "1dab772dd4a68a7bba5d9460685547ff8e17d899", "rev": "635e887b48521e912a516625eee7df6cf0eba9c1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -476,11 +476,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1736515725, "lastModified": 1736777442,
"narHash": "sha256-4P99yL8vGehwzytkpP87eklBePt6aqeEC5JFsIzhfUs=", "narHash": "sha256-eON7amRmBl59QH6K9uypewkKveaNbosY6CtUgRcv7YU=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "f214c1b76c347a4e9c8fb68c73d4293a6820d125", "rev": "0f4744b5a95151a85c4f35010dd2d748228f7f53",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -43,7 +43,7 @@
nix-path = config.nix.nixPath; nix-path = config.nix.nixPath;
}; };
# Opinionated: disable channels # Opinionated: disable channels
channel.enable = false; # channel.enable = false;
# Opinionated: make flake registry and nix path match flake inputs # Opinionated: make flake registry and nix path match flake inputs
registry = lib.mapAttrs (_: flake: {inherit flake;}) flakeInputs; registry = lib.mapAttrs (_: flake: {inherit flake;}) flakeInputs;
@ -86,12 +86,30 @@
boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
boot = { boot = {
initrd.kernelModules = [ "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" "snd-virmidi"]; initrd.kernelModules = [ "nvidia" "nvidia_modeset" "nvidia_uvm" "nvidia_drm" "snd-virmidi" ];
kernelParams = [ "nvidia_drm.fbdev=1" "nvidia_drm.modeset=1"]; kernelParams = [ "nvidia_drm.fbdev=1" "nvidia_drm.modeset=1" ];
}; };
systemd.services.tailscaled.after = ["NetworkManager-wait-online.service"]; systemd.services.tailscaled.after = ["NetworkManager-wait-online.service"];
nixpkgs.config.packageOverrides = pkgs: {
openrazer-daemon = pkgs.openrazer-daemon.overrideDerivation (previous: {
name = "openrazer-daemon-latest";
src = pkgs.fetchFromGitHub {
owner = "openrazer";
repo = "openrazer";
hash = "sha256-GqmFpVNuPRNM95pJsihsk/d3s61t4Lw+qaukKip9BAM=";
rev = "HEAD";
};
# patches = [""];
});
};
documentation = {
dev.enable = true;
man.generateCaches = false;
};
hardware = { hardware = {
openrazer = { openrazer = {
enable = true; enable = true;
@ -197,7 +215,7 @@
services.xserver.displayManager.gdm.enable = true; services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true; services.xserver.desktopManager.gnome.enable = true;
services.xserver.deviceSection = ''Option "TearFree" "true"''; # For amdgpu. services.xserver.deviceSection = ''Option "TearFree" "true"''; # For amdgpu.
services.xserver.enableTearFree = true; # services.xserver.enableTearFree = true;
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
services.picom = { services.picom = {
@ -408,6 +426,7 @@
gnutls gnutls
util-linux util-linux
libGL.dev libGL.dev
psutils
egl-wayland egl-wayland
eglexternalplatform eglexternalplatform
glfw-wayland glfw-wayland