This commit is contained in:
2023-03-08 01:31:19 +09:00
parent 4c675e6fe7
commit 0c3cf765f9
5 changed files with 57 additions and 6 deletions

View File

@@ -12,3 +12,10 @@ mkdir -p /nix/persist/home (else persisted seems to be bugged)
`nix-shell --run 'mkpasswd -m SHA-512' -p mkpasswd` to generate a password
```sh
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
nix-channel --update
```

View File

@@ -2,7 +2,7 @@
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:zoriya/nixpkgs/nixos-unstable"; #"github:zoriya/nixpkgs/nixos-unstable";
nixpkgs.url = "github:zoriya/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
@@ -49,7 +49,13 @@
./modules/nixos
nixModules
nur.nixosModules.nur
{ nixpkgs.overlays = [ (import ./overlays) ]; }
{
nixpkgs.overlays = [
(import ./overlays)
nur.overlay
neovim-nightly.overlay
];
}
({pkgs, ...}: {
networking.hostName = hostname;
@@ -81,10 +87,6 @@
config.modules = homeModules;
};
};
nixpkgs.overlays = [
nur.overlay
neovim-nightly.overlay
];
}
# TODO: use a module instead of this.

View File

@@ -55,6 +55,7 @@ in {
tab_bar_background = "#${base01}";
enable_audio_bell = false;
cursor_blink_interval = 0;
confirm_os_window_close = 0;
disable_ligatures = "always";
#placement_strategy bottom-center

View File

@@ -1,4 +1,5 @@
self: super:
{
adi1090x-plymouth = super.callPackage ./adi1090x-plymouth.nix { };
tuxedo-keyboard = super.callPackage ./tuxedo-keyboard { };
}

View File

@@ -0,0 +1,40 @@
{ lib, stdenv, fetchFromGitHub, kernel, linuxHeaders }:
stdenv.mkDerivation rec {
pname = "tuxedo-keyboard-${kernel.version}";
version = "3.1.4";
src = fetchFromGitHub {
owner = "tuxedocomputers";
repo = "tuxedo-keyboard";
rev = "v${version}";
sha256 = "h6+br+JPEItym83MaVt+xo6o/zMtTv8+wsBoTeYa2AM=";
};
buildInputs = [ linuxHeaders ];
makeFlags = [ "KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build" ];
installPhase = ''
mkdir -p "$out/lib/modules/${kernel.modDirVersion}"
for module in clevo_acpi.ko clevo_wmi.ko tuxedo_keyboard.ko tuxedo_io/tuxedo_io.ko uniwill_wmi.ko; do
mv src/$module $out/lib/modules/${kernel.modDirVersion}
done
'';
meta = with lib; {
description = "Keyboard and hardware I/O driver for TUXEDO Computers laptops";
longDescription = ''
This driver provides support for Fn keys, brightness/color/mode for most TUXEDO
keyboards (except white backlight-only models).
Can be used with the "hardware.tuxedo-keyboard" NixOS module.
'';
homepage = "https://github.com/tuxedocomputers/tuxedo-keyboard/";
license = licenses.gpl3Plus;
platforms = platforms.linux;
broken = stdenv.isAarch64;
maintainers = [ maintainers.blanky0230 ];
};
}