Misc: Enable nix flakes
This commit is contained in:
parent
8c1eefc62c
commit
09d385806a
@ -34,7 +34,7 @@ in mkHost config {
|
||||
gajim-mainwindow
|
||||
virt-manager unstable.qemu scream
|
||||
#gamemode # Custom package
|
||||
key-mapper # Custom package
|
||||
#key-mapper # Custom package
|
||||
replaysorcery # Custom package
|
||||
#evdev-proxy # Custom package
|
||||
vfio-isolate # Custom Package
|
||||
@ -104,7 +104,7 @@ in mkHost config {
|
||||
WriteResolvConf=false
|
||||
'';
|
||||
udev = {
|
||||
packages = with pkgs; [ key-mapper ];
|
||||
#packages = with pkgs; [ key-mapper ];
|
||||
extraRules = ''
|
||||
KERNEL=="uinput", GROUP="input", MODE="0660"
|
||||
'';
|
||||
@ -125,7 +125,7 @@ in mkHost config {
|
||||
|
||||
nix.package = pkgs.nixUnstable;
|
||||
nix.extraOptions = ''
|
||||
experimental-options = nix-command flakes ca-references
|
||||
experimental-features = nix-command flakes ca-references
|
||||
'';
|
||||
|
||||
# TODO: Move into modules
|
||||
@ -148,17 +148,17 @@ in mkHost config {
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
key-mapper = {
|
||||
description = "A tool to change the mapping of your input device buttons";
|
||||
wantedBy = [ "default.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.key-mapper}/bin/key-mapper-service";
|
||||
Restart = "always";
|
||||
# NOTE: The Tartarus may not be connected, so don't fail if we cannot set the preset
|
||||
ExecPostStart = "${pkgs.key-mapper}/bin/key-mapper --command start --preset NOOP --device \"Razer Razer Tartarus V2\"; exit 0";
|
||||
};
|
||||
};
|
||||
#key-mapper = {
|
||||
# description = "A tool to change the mapping of your input device buttons";
|
||||
# wantedBy = [ "default.target" ];
|
||||
# serviceConfig = {
|
||||
# Type = "simple";
|
||||
# ExecStart = "${pkgs.key-mapper}/bin/key-mapper-service";
|
||||
# Restart = "always";
|
||||
# # NOTE: The Tartarus may not be connected, so don't fail if we cannot set the preset
|
||||
# ExecPostStart = "${pkgs.key-mapper}/bin/key-mapper --command start --preset NOOP --device \"Razer Razer Tartarus V2\"; exit 0";
|
||||
# };
|
||||
#};
|
||||
replaysorcery = {
|
||||
description = "An open-source, instant-replay solution for Linux";
|
||||
#wantedBy = [ "default.target" ];
|
||||
|
@ -3,7 +3,7 @@ pkgs: final: prev:
|
||||
{
|
||||
nur = import (builtins.fetchTarball {
|
||||
url = "https://github.com/nix-community/NUR/archive/master.tar.gz";
|
||||
sha256 = "19s8a5pfp8yms0kx5lb74al5yfia2smn46dndsl43q528719pnp4";
|
||||
sha256 = "0fz7zdfvjfjzg46w7khvwr5jhpd9w8yx0cdd9gnmbkzxhbspbmwq";
|
||||
}) {
|
||||
inherit pkgs;
|
||||
};
|
||||
|
@ -12,7 +12,7 @@ let
|
||||
};
|
||||
wrapInSandbox = pkgs.callPackage ./sandbox.nix {};
|
||||
in {
|
||||
key-mapper = pkgs.callPackage ./tools/games/key-mapper {};
|
||||
#key-mapper = pkgs.callPackage ./tools/games/key-mapper {};
|
||||
vfio-isolate = pkgs.callPackage ./tools/virtualisation/vfio-isolate {};
|
||||
mopidy-funkwhale = pkgs.callPackage ./applications/audio/mopidy/funkwhale.nix {};
|
||||
# Not as clean as I hoped, but it works
|
||||
|
@ -1,14 +1,16 @@
|
||||
{ stdenv, lib }:
|
||||
{ stdenv, lib, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "Anime4k";
|
||||
version = "4.0.0-RC";
|
||||
version = "4.0.1";
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "https://github.com/bloc97/Anime4K.git";
|
||||
ref = "cb56502ed429a5a3e48ed62c5245d6445a209c7c";
|
||||
src = fetchFromGitHub {
|
||||
owner = "bloc97";
|
||||
repo = "Anime4k";
|
||||
rev = "v${version}";
|
||||
sha256 = "1gc1ka9i7xzxq58175q5svhvp8vr27hy477r4z4nkhp9q1cqj19r";
|
||||
};
|
||||
|
||||
|
||||
installPhase = ''
|
||||
find ./glsl/ -type f -iname '*.glsl' -exec install -Dm 644 {} -t $out/usr/share/shaders/ \;
|
||||
'';
|
||||
|
@ -4,10 +4,12 @@
|
||||
, gtk3, gobject-introspection, git, gnome
|
||||
, wrapGAppsHook
|
||||
, makeDesktopItem
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "key-mapper";
|
||||
# TODO: Update to 1.2.1
|
||||
version = "1.0.0";
|
||||
|
||||
buildInputs = [ gobject-introspection gtk3 gnome.adwaita-icon-theme ];
|
||||
@ -16,9 +18,11 @@ python3Packages.buildPythonApplication rec {
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [ setuptools pydbus evdev pygobject3 ];
|
||||
|
||||
src = builtins.fetchGit {
|
||||
url = "https://github.com/sezanzeb/key-mapper.git";
|
||||
ref = version;
|
||||
src = fetchFromGitHub {
|
||||
owner = "sezanzeb";
|
||||
repo = "key-mapper";
|
||||
rev = version;
|
||||
sha256 = "07dgp4vays1w4chhd22vlp9bxc49lcgzkvmjqgbr00m3781yjsf7";
|
||||
};
|
||||
|
||||
doCheck = false;
|
||||
|
Loading…
Reference in New Issue
Block a user