get displaylink driver working kinda, also gpg
This commit is contained in:
parent
57c90363b6
commit
78197b5600
@ -2,11 +2,12 @@
|
|||||||
# your system. Help is available in the configuration.nix(5) man page
|
# your system. Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, lib, pkgs, nixos-unstable, ... }:
|
{ config, lib, pkgs, nixos-unstable, inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Bootloader.
|
# Bootloader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
nix.settings.extra-experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.extra-experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
@ -35,6 +36,8 @@
|
|||||||
LC_TIME = "en_US.UTF-8";
|
LC_TIME = "en_US.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -44,7 +47,7 @@
|
|||||||
options = "caps_lock:esc";
|
options = "caps_lock:esc";
|
||||||
};
|
};
|
||||||
videoDrivers = [
|
videoDrivers = [
|
||||||
# "displaylink" # broken
|
"displaylink" # broken
|
||||||
"modesetting"
|
"modesetting"
|
||||||
];
|
];
|
||||||
# Enable the GNOME Desktop Environment.
|
# Enable the GNOME Desktop Environment.
|
||||||
|
2
fetch-dl-driver.sh
Normal file
2
fetch-dl-driver.sh
Normal 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
|
13
flake.lock
13
flake.lock
@ -22,6 +22,18 @@
|
|||||||
"type": "github"
|
"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": {
|
"emacs-config": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -130,6 +142,7 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"apple-silicon": "apple-silicon",
|
"apple-silicon": "apple-silicon",
|
||||||
|
"displaylink": "displaylink",
|
||||||
"emacs-config": "emacs-config",
|
"emacs-config": "emacs-config",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"home-manager-unstable": "home-manager-unstable",
|
"home-manager-unstable": "home-manager-unstable",
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
url = "git+https://git.marq42.xyz/mir/emacs?ref=main";
|
url = "git+https://git.marq42.xyz/mir/emacs?ref=main";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
displaylink = {
|
||||||
|
url = "file+https://marq42.xyz/displaylink-580.zip";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
outputs = inputs@{
|
outputs = inputs@{
|
||||||
self,
|
self,
|
||||||
|
BIN
hardware/displaylink-580.zip
Normal file
BIN
hardware/displaylink-580.zip
Normal file
Binary file not shown.
14
home.nix
14
home.nix
@ -135,13 +135,13 @@ with lib.hm.gvariant;
|
|||||||
|
|
||||||
programs.gpg = {
|
programs.gpg = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# package = pkgs.gnupg.overrideAttrs (orig: {
|
package = pkgs.gnupg.overrideAttrs (orig: {
|
||||||
# version = "2.4.0";
|
version = "2.4.0";
|
||||||
# src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
# url = "mirror://gnupg/gnupg/gnupg-2.4.0.tar.bz2";
|
url = "mirror://gnupg/gnupg/gnupg-2.4.0.tar.bz2";
|
||||||
# hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM=";
|
hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM=";
|
||||||
# };
|
};
|
||||||
# });
|
});
|
||||||
# agent = {
|
# agent = {
|
||||||
# pinentryFlavor = "gnome3";
|
# pinentryFlavor = "gnome3";
|
||||||
# };
|
# };
|
||||||
|
Loading…
Reference in New Issue
Block a user