Compare commits
No commits in common. "b179bee277c0f50201a49828c948bd93480940a7" and "96ea6c4232ce3f159d40ba1c467d1a36e62f9a7c" have entirely different histories.
b179bee277
...
96ea6c4232
18
nix/configuration/flake.lock
generated
18
nix/configuration/flake.lock
generated
@ -39,11 +39,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1756733629,
|
"lastModified": 1750903843,
|
||||||
"narHash": "sha256-dwWGlDhcO5SMIvMSTB4mjQ5Pvo2vtxvpIknhVnSz2I8=",
|
"narHash": "sha256-Ng9+f0H5/dW+mq/XOKvB9uwvGbsuiiO6HrPdAcVglCs=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "disko",
|
"repo": "disko",
|
||||||
"rev": "a5c4f2ab72e3d1ab43e3e65aa421c6f2bd2e12a1",
|
"rev": "83c4da299c1d7d300f8c6fd3a72ac46cb0d59aae",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -190,11 +190,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1756787288,
|
"lastModified": 1751271578,
|
||||||
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
|
"narHash": "sha256-P/SQmKDu06x8yv7i0s8bvnnuJYkxVGBWLWHaU+tt4YY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
"rev": "3016b4b15d13f3089db8a41ef937b13a9e33a8df",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -238,11 +238,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unoptimized": {
|
"nixpkgs-unoptimized": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1756787288,
|
"lastModified": 1751271578,
|
||||||
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
|
"narHash": "sha256-P/SQmKDu06x8yv7i0s8bvnnuJYkxVGBWLWHaU+tt4YY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
"rev": "3016b4b15d13f3089db8a41ef937b13a9e33a8df",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -9,6 +9,6 @@
|
|||||||
imports = [ ];
|
imports = [ ];
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"w- /sys/class/backlight/amdgpu_bl1/brightness - - - - 21845"
|
"w- /sys/class/backlight/amdgpu_bl1/brightness - - - - 85"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,48 +1,76 @@
|
|||||||
|
# unpackPhase
|
||||||
|
# patchPhase
|
||||||
|
# configurePhase
|
||||||
|
# buildPhase
|
||||||
|
# checkPhase
|
||||||
|
# installPhase
|
||||||
|
# fixupPhase
|
||||||
|
# installCheckPhase
|
||||||
|
# distPhase
|
||||||
{
|
{
|
||||||
lib,
|
stdenv,
|
||||||
pkgs,
|
pkgs,
|
||||||
buildPythonPackage,
|
sqlite,
|
||||||
fetchFromGitHub,
|
makeWrapper,
|
||||||
pythonOlder,
|
lib,
|
||||||
cython,
|
python3,
|
||||||
|
systemd,
|
||||||
|
# setuptools,
|
||||||
|
# cython,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
setuptools,
|
# python3Packages,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.6.3";
|
version = "1.6.3";
|
||||||
in
|
in
|
||||||
buildPythonPackage {
|
python3.pkgs.buildPythonPackage {
|
||||||
pname = "cysystemd";
|
pname = "cysystemd";
|
||||||
inherit version;
|
version = version;
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
# format = "pyproject";
|
||||||
owner = "mosquito";
|
|
||||||
repo = "cysystemd";
|
|
||||||
tag = version;
|
|
||||||
hash = "sha256-xumrQgoKfFeKdRQUIYXXiXEcNd76i4wo/EIDm8BN7oU=";
|
|
||||||
};
|
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
|
||||||
|
|
||||||
build-system = [
|
build-system = [
|
||||||
setuptools
|
python3.pkgs.setuptools
|
||||||
cython
|
python3.pkgs.cython
|
||||||
];
|
];
|
||||||
|
buildInputs = [ systemd ];
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
|
# setuptools
|
||||||
|
# setuptools-git-versioning
|
||||||
|
# setuptools-git
|
||||||
|
# pyudev
|
||||||
|
# pkgs.systemd
|
||||||
pkg-config
|
pkg-config
|
||||||
];
|
];
|
||||||
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
# pyudev
|
||||||
|
# pandas
|
||||||
|
# jinja2
|
||||||
|
# tabulate
|
||||||
|
# seaborn
|
||||||
|
# cysystemd
|
||||||
|
# jinja2
|
||||||
|
# matplotlib
|
||||||
|
# seaborn
|
||||||
|
];
|
||||||
|
src = pkgs.fetchgit {
|
||||||
|
url = "https://github.com/mosquito/cysystemd.git";
|
||||||
|
tag = version;
|
||||||
|
sha256 = "sha256-xumrQgoKfFeKdRQUIYXXiXEcNd76i4wo/EIDm8BN7oU=";
|
||||||
|
# leaveDotGit = true;
|
||||||
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgs.systemd ];
|
# postPatch = ''
|
||||||
|
# substituteInPlace pyproject.toml \
|
||||||
|
# --replace-fail ', "setuptools-git-versioning>=2.0,<3"' ""
|
||||||
|
# '';
|
||||||
|
|
||||||
pythonImportsCheck = [ "cysystemd" ];
|
meta = with lib; {
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "systemd wrapper on Cython";
|
description = "systemd wrapper on Cython";
|
||||||
homepage = "https://github.com/mosquito/cysystemd";
|
homepage = "https://github.com/mosquito/cysystemd";
|
||||||
license = lib.licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
lib.mkMerge [
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
amd-debug-tools
|
amd_s2idle
|
||||||
];
|
];
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(
|
(
|
||||||
@ -30,16 +30,28 @@
|
|||||||
innerPackage = (final.callPackage ./package.nix { });
|
innerPackage = (final.callPackage ./package.nix { });
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
amd-debug-tools = innerPackage;
|
amd_s2idle = innerPackage;
|
||||||
|
# amd_s2idle = final.buildEnv {
|
||||||
|
# name = innerPackage.name;
|
||||||
|
# paths = [
|
||||||
|
# innerPackage
|
||||||
|
# ];
|
||||||
|
# nativeBuildInputs = [ final.makeWrapper ];
|
||||||
|
# postBuild = ''
|
||||||
|
# wrapProgram $out/bin/amd_s2idle --prefix PATH : ${
|
||||||
|
# lib.makeBinPath [
|
||||||
|
# (final.python3.withPackages (python-pkgs: [
|
||||||
|
# python-pkgs.distro # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py
|
||||||
|
# python-pkgs.pyudev # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py
|
||||||
|
# python-pkgs.systemd # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py
|
||||||
|
# python-pkgs.packaging # For https://gitlab.freedesktop.org/drm/amd/-/blob/master/scripts/amd_s2idle.py
|
||||||
|
# ]))
|
||||||
|
# ]
|
||||||
|
# }
|
||||||
|
# '';
|
||||||
|
# };
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
(final: prev: {
|
|
||||||
pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
|
|
||||||
(python-final: python-prev: {
|
|
||||||
cysystemd = (python-final.callPackage ./cysystemd.nix { });
|
|
||||||
})
|
|
||||||
];
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,28 +1,44 @@
|
|||||||
|
# unpackPhase
|
||||||
|
# patchPhase
|
||||||
|
# configurePhase
|
||||||
|
# buildPhase
|
||||||
|
# checkPhase
|
||||||
|
# installPhase
|
||||||
|
# fixupPhase
|
||||||
|
# installCheckPhase
|
||||||
|
# distPhase
|
||||||
{
|
{
|
||||||
|
stdenv,
|
||||||
|
pkgs,
|
||||||
|
sqlite,
|
||||||
|
makeWrapper,
|
||||||
lib,
|
lib,
|
||||||
fetchgit,
|
python3,
|
||||||
python3Packages,
|
callPackage,
|
||||||
|
# python3Packages,
|
||||||
acpica-tools,
|
acpica-tools,
|
||||||
ethtool,
|
ethtool,
|
||||||
libdisplay-info,
|
libdisplay-info,
|
||||||
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "0.2.7";
|
version = "0.2.7";
|
||||||
in
|
in
|
||||||
python3Packages.buildPythonApplication {
|
python3.pkgs.buildPythonApplication {
|
||||||
pname = "amd-debug-tools";
|
pname = "amd-debug-tools";
|
||||||
inherit version;
|
version = version;
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
build-system = with python3Packages; [
|
# name = "amd-debug-tools";
|
||||||
|
# format = "pyproject";
|
||||||
|
nativeBuildInputs = with python3.pkgs; [
|
||||||
setuptools
|
setuptools
|
||||||
setuptools-git-versioning
|
setuptools-git-versioning
|
||||||
setuptools-git
|
setuptools-git
|
||||||
pyudev
|
pyudev
|
||||||
];
|
];
|
||||||
dependencies = with python3Packages; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
cysystemd
|
(callPackage ./cysystemd.nix { })
|
||||||
jinja2
|
jinja2
|
||||||
matplotlib
|
matplotlib
|
||||||
pandas
|
pandas
|
||||||
@ -33,26 +49,22 @@ python3Packages.buildPythonApplication {
|
|||||||
ethtool
|
ethtool
|
||||||
libdisplay-info
|
libdisplay-info
|
||||||
];
|
];
|
||||||
src = fetchgit {
|
src = pkgs.fetchgit {
|
||||||
url = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git";
|
url = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git";
|
||||||
tag = version;
|
tag = version;
|
||||||
hash = "sha256-6X9cUKN0BkkKcYGU+YJYCGT+l5iUZDN+D8Fqq/ns98Q=";
|
sha256 = "sha256-6X9cUKN0BkkKcYGU+YJYCGT+l5iUZDN+D8Fqq/ns98Q=";
|
||||||
leaveDotGit = true;
|
leaveDotGit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = python3Packages.pythonOlder "3.7";
|
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace-fail ', "setuptools-git-versioning>=2.0,<3"' ""
|
--replace-fail ', "setuptools-git-versioning>=2.0,<3"' ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "amd_debug" ];
|
meta = with lib; {
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Debug tools for AMD zen systems";
|
description = "Debug tools for AMD zen systems";
|
||||||
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git/";
|
homepage = "https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git/";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -94,12 +94,12 @@
|
|||||||
# "net.ipv6.conf.default.use_tempaddr" = 2;
|
# "net.ipv6.conf.default.use_tempaddr" = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
# nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
# (final: prev: {
|
(final: prev: {
|
||||||
# inherit (pkgs-dda3dcd3f)
|
inherit (pkgs-dda3dcd3f)
|
||||||
# linux-firmware
|
linux-firmware
|
||||||
# ;
|
;
|
||||||
# })
|
})
|
||||||
# ];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
(lib.mkIf (!config.me.optimizations.enable) (
|
(lib.mkIf (!config.me.optimizations.enable) (
|
||||||
lib.mkMerge [
|
lib.mkMerge [
|
||||||
{
|
{
|
||||||
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_6_16;
|
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux_6_15;
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
))
|
))
|
||||||
@ -94,7 +94,7 @@
|
|||||||
HZ = lib.kernel.freeform "300";
|
HZ = lib.kernel.freeform "300";
|
||||||
HZ_300 = lib.kernel.yes;
|
HZ_300 = lib.kernel.yes;
|
||||||
HZ_1000 = lib.kernel.no;
|
HZ_1000 = lib.kernel.no;
|
||||||
} prev.linux_6_16;
|
} prev.linux_6_15;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
@ -126,29 +126,6 @@
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
# (final: prev: {
|
|
||||||
# python = prev.python.override {
|
|
||||||
# packageOverrides = python-final: python-prev: {
|
|
||||||
# inherit (pkgs-unoptimized.pythonPackages) coverage;
|
|
||||||
# };
|
|
||||||
# };
|
|
||||||
# })
|
|
||||||
# (final: prev: {
|
|
||||||
# pythonPackagesOverlays = prev.pythonPackagesOverlays.extend (
|
|
||||||
# final': prev': {
|
|
||||||
# inherit (pkgs-unoptimized.pythonPackagesOverlays)
|
|
||||||
# coverage
|
|
||||||
# ;
|
|
||||||
# }
|
|
||||||
# );
|
|
||||||
# })
|
|
||||||
# (final: prev: {
|
|
||||||
# pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
|
|
||||||
# (python-final: python-prev: {
|
|
||||||
# inherit (pkgs-unoptimized.pythonPackages) coverage;
|
|
||||||
# })
|
|
||||||
# ];
|
|
||||||
# })
|
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
inherit (pkgs-unoptimized)
|
inherit (pkgs-unoptimized)
|
||||||
gsl
|
gsl
|
||||||
@ -156,7 +133,6 @@
|
|||||||
valkey
|
valkey
|
||||||
nix-serve-ng
|
nix-serve-ng
|
||||||
rapidjson
|
rapidjson
|
||||||
assimp
|
|
||||||
;
|
;
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user