Skip to content

Commit 3b9eea1

Browse files
committed
Updated system and removed broken emacs :(
1 parent 37e63c0 commit 3b9eea1

File tree

6 files changed

+118
-29
lines changed

6 files changed

+118
-29
lines changed

flake.lock

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@
5656
(import inputs.nixpkgs { system = systemSettings.system; rocmSupport = (if systemSettings.gpu == "amd" then true else false); }).applyPatches {
5757
name = "nixpkgs-patched";
5858
src = inputs.nixpkgs;
59-
patches = [ ./patches/emacs-no-version-check.patch ];
59+
patches = [ ./patches/emacs-no-version-check.patch
60+
./patches/nixpkgs-348697.patch
61+
];
6062
};
6163

6264
# configure pkgs

patches/nixpkgs-348697.patch

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
diff --git a/pkgs/development/python-modules/pyqt/6.x.nix b/pkgs/development/python-modules/pyqt/6.x.nix
2+
index 9f031347d354e..6356eeb9637f0 100644
3+
--- a/pkgs/development/python-modules/pyqt/6.x.nix
4+
+++ b/pkgs/development/python-modules/pyqt/6.x.nix
5+
@@ -25,17 +25,15 @@
6+
7+
buildPythonPackage rec {
8+
pname = "pyqt6";
9+
- version = "6.7.0.dev2404081550";
10+
+ version = "6.8.0.dev2410141303";
11+
format = "pyproject";
12+
13+
disabled = pythonOlder "3.6";
14+
15+
+ # This is dangerous, how can we get web archive to archive the URL?
16+
src = fetchurl {
17+
- urls = [
18+
- "https://riverbankcomputing.com/pypi/packages/PyQt6/PyQt6-${version}.tar.gz"
19+
- "http://web.archive.org/web/20240411124842if_/https://riverbankcomputing.com/pypi/packages/PyQt6/PyQt6-${version}.tar.gz"
20+
- ];
21+
- hash = "sha256-H5qZ/rnruGh+UVSXLZyTSvjagmmli/iYq+7BaIzl1YQ=";
22+
+ url = "https://riverbankcomputing.com/pypi/packages/PyQt6/PyQt6-${version}.tar.gz";
23+
+ hash = "sha256-eHYqj22us07uFkErJD2d0y0wueZxtQTwTFW9cI7yoK4=";
24+
};
25+
26+
patches = [
27+
@@ -55,8 +53,11 @@ buildPythonPackage rec {
28+
verbose = true
29+
EOF
30+
31+
+ # pythonRelaxDeps doesn't work and the wanted versions are not released AFAIK
32+
substituteInPlace pyproject.toml \
33+
- --replace-fail 'version = "${version}"' 'version = "${lib.versions.pad 3 version}"'
34+
+ --replace-fail 'version = "${version}"' 'version = "${lib.versions.pad 3 version}"' \
35+
+ --replace-fail "sip >=6.9, <7" "sip >=6.8.6, <7" \
36+
+ --replace-fail 'PyQt-builder >=1.17, <2' "PyQt-builder >=1.16, <2"
37+
'';
38+
39+
enableParallelBuilding = true;
40+
diff --git a/pkgs/development/python-modules/sip/default.nix b/pkgs/development/python-modules/sip/default.nix
41+
index 8a398654b08ce..8fd6240e4a512 100644
42+
--- a/pkgs/development/python-modules/sip/default.nix
43+
+++ b/pkgs/development/python-modules/sip/default.nix
44+
@@ -4,6 +4,7 @@
45+
fetchPypi,
46+
pythonOlder,
47+
setuptools,
48+
+ setuptools-scm,
49+
packaging,
50+
tomli,
51+
52+
@@ -15,17 +16,20 @@
53+
54+
buildPythonPackage rec {
55+
pname = "sip";
56+
- version = "6.8.3";
57+
+ version = "6.8.6";
58+
pyproject = true;
59+
60+
src = fetchPypi {
61+
inherit pname version;
62+
- hash = "sha256-iIVHsBi7JMNq3tUZ6T0+UT1MaqC6VbfMGv+9Rc8Qdiw=";
63+
+ hash = "sha256-f8lZ5I5uxdWvi9Am9p9eJNCLPLirs0IXb1q4AwzAfXo=";
64+
};
65+
66+
- nativeBuildInputs = [ setuptools ];
67+
+ build-system = [
68+
+ setuptools
69+
+ setuptools-scm
70+
+ ];
71+
72+
- propagatedBuildInputs = [
73+
+ dependencies = [
74+
packaging
75+
setuptools
76+
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];

profiles/work/home.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(./. + "../../../user/wm"+("/"+userSettings.wm+"/"+userSettings.wm)+".nix") # My window manager selected from flake
1313
../../user/shell/sh.nix # My zsh and bash config
1414
../../user/shell/cli-collection.nix # Useful CLI apps
15-
../../user/app/doom-emacs/doom.nix # My doom emacs config
15+
#../../user/app/doom-emacs/doom.nix # My doom emacs config
1616
../../user/app/nvim/nvim.nix # My doom emacs config
1717
#../../user/app/emacsng # Me experimenting with emacsng and a vanilla config
1818
../../user/app/ranger/ranger.nix # My ranger file manager config

system/hardware-configuration.nix

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Do not modify this file! It was generated by ‘nixos-generate-config’
22
# and may be overwritten by future invocations. Please make changes
33
# to /etc/nixos/configuration.nix instead.
4-
{ config, lib, pkgs, modulesPath, ... }:
4+
{ config, lib, pkgs, modulesPath, inputs, ... }:
55

66
{
77
imports =
@@ -10,10 +10,21 @@
1010

1111
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "radeon" ];
1212
boot.initrd.kernelModules = [ "radeon" ];
13-
boot.kernelModules = [ "kvm-amd" "radeon" ];
14-
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
15-
hardware.opengl.extraPackages = [ pkgs.amdvlk pkgs.rocmPackages.clr.icd ];
16-
hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
13+
boot.kernelModules = [ "kvm-amd" "radeon" "zenpower" "8812au" ];
14+
boot.blacklistedKernelModules = [ "k10temp" ];
15+
boot.kernelParams = [ "amd_pstate=active" ];
16+
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower rtl8812au ];
17+
hardware.opengl.extraPackages = [ pkgs.rocmPackages.clr.icd ];
18+
hardware.opengl.extraPackages32 = [ ];
19+
20+
services.xserver.videoDrivers = lib.mkDefault [ "modesetting" ];
21+
22+
hardware.graphics = {
23+
enable = lib.mkDefault true;
24+
enable32Bit = lib.mkDefault true;
25+
};
26+
27+
hardware.amdgpu.initrd.enable = lib.mkDefault true;
1728

1829
systemd.tmpfiles.rules = [
1930
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"

user/app/doom-emacs/doom.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#+TITLE: Doom Emacs Literate Config
22
#+AUTHOR: Emmet
3-
3+
# FIXME doom emacs config
44
* Table of Contents :TOC:QUOTE:
55
#+BEGIN_QUOTE
66
- [[#what-is-doom-emacs][What is Doom Emacs?]]

0 commit comments

Comments
 (0)