jsfw testing commit #1 -- should squash

testing your config on main? great idea!
This commit is contained in:
stupidcomputer 2024-12-01 06:37:15 -06:00
parent e1255dc9ef
commit ed32d2548b
6 changed files with 57 additions and 2 deletions

View File

@ -50,6 +50,7 @@
input-leap
(pkgs.callPackage ../../builds/archutils.nix {})
(pkgs.callPackage ../../builds/jsfw.nix {})
(pkgs.callPackage ../../builds/sssg.nix {})
];

View File

@ -0,0 +1,13 @@
{
"slots": [
{
"controllers": [
{
"tag": ["keyboard"],
"vendor": "dead",
"product": "beef"
}
]
}
]
}

26
builds/jsfw.nix Normal file
View File

@ -0,0 +1,26 @@
{ stdenv
, lib
, pkgs
, fetchgit
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "jsfw";
version = "1.00";
src = fetchgit {
url = "https://github.com/viandoxdev/jsfw";
hash = "sha256-/aQGz0/aYM0fA+TUVXC9bYKV8AJVU+hTR6Srvmqn0Nk=";
};
buildPhase = ''
make jsfw
'';
installPhase = ''
mkdir -p $out/bin
cp jsfw $out/bin/jsfw
'';
}

View File

@ -5,5 +5,6 @@
(callPackage ./utils.nix {})
(callPackage ./dwm.nix {})
(callPackage ./sssg.nix {})
(callPackage ../../builds/jsfw.nix {})
];
}

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
imports = [
@ -32,7 +32,7 @@
users.users.usr = {
isNormalUser = true;
description = "usr";
extraGroups = [ "networkmanager" "wheel" ];
extraGroups = [ "networkmanager" "wheel" "input" ];
packages = with pkgs; [];
};
@ -92,5 +92,9 @@
powerManagement.powertop.enable = true;
# make sshd a `systemctl start sshd` command away
services.openssh.enable = true;
systemd.services.sshd.wantedBy = lib.mkForce [];
system.stateVersion = "24.05";
}

10
lappy/jsfw.json Normal file
View File

@ -0,0 +1,10 @@
{
"controllers": [
{
"tag": "keyboard",
"filter": {
"name": "AT Translated Set 2 Keyboard"
}
}
]
}