get displaylink driver working kinda, also gpg

This commit is contained in:
Miranda Marquez 2024-03-09 18:42:05 -09:00
parent 57c90363b6
commit 78197b5600
6 changed files with 31 additions and 9 deletions

View File

@ -2,11 +2,12 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, lib, pkgs, nixos-unstable, ... }:
{ config, lib, pkgs, nixos-unstable, inputs, ... }:
{
# Bootloader.
boot.loader.systemd-boot.enable = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.settings.extra-experimental-features = [ "nix-command" "flakes" ];
@ -35,6 +36,8 @@
LC_TIME = "en_US.UTF-8";
};
# Enable the X11 windowing system.
services.xserver = {
enable = true;
@ -44,7 +47,7 @@
options = "caps_lock:esc";
};
videoDrivers = [
# "displaylink" # broken
"displaylink" # broken
"modesetting"
];
# Enable the GNOME Desktop Environment.

2
fetch-dl-driver.sh Normal file
View File

@ -0,0 +1,2 @@
# this must be run before first bootstrap on new machine. IM SORRY
nix-prefetch-url https://marq42.xyz/displaylink-580.zip

View File

@ -22,6 +22,18 @@
"type": "github"
}
},
"displaylink": {
"flake": false,
"locked": {
"narHash": "sha256-hR26phh9YMYsOWT4tIKj6/ZeItBygtw3cJ5ezOtGkMM=",
"type": "file",
"url": "https://marq42.xyz/displaylink-580.zip"
},
"original": {
"type": "file",
"url": "https://marq42.xyz/displaylink-580.zip"
}
},
"emacs-config": {
"flake": false,
"locked": {
@ -130,6 +142,7 @@
"root": {
"inputs": {
"apple-silicon": "apple-silicon",
"displaylink": "displaylink",
"emacs-config": "emacs-config",
"home-manager": "home-manager",
"home-manager-unstable": "home-manager-unstable",

View File

@ -19,6 +19,10 @@
url = "git+https://git.marq42.xyz/mir/emacs?ref=main";
flake = false;
};
displaylink = {
url = "file+https://marq42.xyz/displaylink-580.zip";
flake = false;
};
};
outputs = inputs@{
self,

Binary file not shown.

View File

@ -135,13 +135,13 @@ with lib.hm.gvariant;
programs.gpg = {
enable = true;
# package = pkgs.gnupg.overrideAttrs (orig: {
# version = "2.4.0";
# src = pkgs.fetchurl {
# url = "mirror://gnupg/gnupg/gnupg-2.4.0.tar.bz2";
# hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM=";
# };
# });
package = pkgs.gnupg.overrideAttrs (orig: {
version = "2.4.0";
src = pkgs.fetchurl {
url = "mirror://gnupg/gnupg/gnupg-2.4.0.tar.bz2";
hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM=";
};
});
# agent = {
# pinentryFlavor = "gnome3";
# };