Compare commits

...

7 commits

Author SHA1 Message Date
Emmet 01d0b747ce Logseq background blur 2024-10-21 22:03:41 -05:00
Emmet 9d152a1131 fstrim! 2024-10-21 21:43:10 -05:00
Emmet 4469e7c8ff Add C-p and C-n to zsh (forward-backward) 2024-10-21 21:42:54 -05:00
Emmet b4a99c6090 Appimage Cura 2024-10-21 21:42:42 -05:00
Emmet d9bcbd5f44 Trying logseq instead of org-roam :| 2024-10-19 11:23:06 -05:00
Emmet 3b9eea143e Updated system and removed broken emacs :( 2024-10-18 20:34:52 -05:00
Emmet 37e63c0ec5 Various fixes 2024-10-11 22:03:58 -05:00
10 changed files with 171 additions and 48 deletions

View file

@ -102,11 +102,11 @@
"blocklist-hosts": { "blocklist-hosts": {
"flake": false, "flake": false,
"locked": { "locked": {
"lastModified": 1728682327, "lastModified": 1729258669,
"narHash": "sha256-lTYUdo00JzPLJgtvv2dETHKyZ67vSY6Vd+fOin4L2z4=", "narHash": "sha256-e1t7Uqegsa14IIa880xx174Zsx1cSmg+nGx3xdfe8GY=",
"owner": "StevenBlack", "owner": "StevenBlack",
"repo": "hosts", "repo": "hosts",
"rev": "ebcd90663f670627612d86de564eb504e7e63b35", "rev": "3eb62cf79953401fab84826491d2468bd8519487",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -511,11 +511,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728685293, "lastModified": 1729260213,
"narHash": "sha256-1WowL96pksT/XCi+ZXHgqiQ9NiU5oxWuNIQYWqOoEYc=", "narHash": "sha256-jAvHoU/1y/yCuXzr2fNF+q6uKmr8Jj2xgAisK4QB9to=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "2b13611eaed8326789f76f70d21d06fbb14e3e47", "rev": "09a0c0c02953318bf94425738c7061ffdc4cba75",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1019,11 +1019,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1728492678, "lastModified": 1729070438,
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=", "narHash": "sha256-KOTTUfPkugH52avUvXGxvWy8ibKKj4genodIYUED+Kc=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7", "rev": "5785b6bb5eaae44e627d541023034e1601455827",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1066,11 +1066,11 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1728500571, "lastModified": 1729044727,
"narHash": "sha256-dOymOQ3AfNI4Z337yEwHGohrVQb4yPODCW9MDUyAc4w=", "narHash": "sha256-GKJjtPY+SXfLF/yTN7M2cAnQB6RERFKnQhD8UvPSf3M=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d51c28603def282a24fa034bcb007e2bcb5b5dd0", "rev": "dc2e0028d274394f73653c7c90cc63edbb696be1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1081,11 +1081,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1718428119, "lastModified": 1728538411,
"narHash": "sha256-WdWDpNaq6u1IPtxtYHHWpl5BmabtpmLnMAx0RdJ/vo8=", "narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "e6cea36f83499eb4e9cd184c8a8e823296b50ad5", "rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1476,11 +1476,11 @@
"nixpkgs": "nixpkgs_2" "nixpkgs": "nixpkgs_2"
}, },
"locked": { "locked": {
"lastModified": 1728613723, "lastModified": 1729218602,
"narHash": "sha256-zVVj0PKguM8ZMdLE43YW7dzer3tl9e6i5Qs1fr878+c=", "narHash": "sha256-KDmYxpkFWa0Go0WnOpkgQOypVaQxbwgpEutET5ey1VQ=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "ca93f28abd2147dd9997261dcaeacc5a30dba463", "rev": "9051466c82b9b3a6ba9e06be99621ad25423ec94",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1538,11 +1538,11 @@
"tinted-tmux": "tinted-tmux" "tinted-tmux": "tinted-tmux"
}, },
"locked": { "locked": {
"lastModified": 1728640680, "lastModified": 1728900372,
"narHash": "sha256-JH2+RXJNooFtZIN6ZhaGZWn2KChMrso4H7Fkp1Ujrdo=", "narHash": "sha256-hmG/u7qZEm7CTh1XPDi+pg4Oi0nNrv7sL8PgZDRe6wg=",
"owner": "danth", "owner": "danth",
"repo": "stylix", "repo": "stylix",
"rev": "f95022bb6e74f726a87975aec982a5aa9fad8691", "rev": "33a2eff15181e557bb6dd9d2073b90f7d218975d",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -56,7 +56,9 @@
(import inputs.nixpkgs { system = systemSettings.system; rocmSupport = (if systemSettings.gpu == "amd" then true else false); }).applyPatches { (import inputs.nixpkgs { system = systemSettings.system; rocmSupport = (if systemSettings.gpu == "amd" then true else false); }).applyPatches {
name = "nixpkgs-patched"; name = "nixpkgs-patched";
src = inputs.nixpkgs; src = inputs.nixpkgs;
patches = [ ./patches/emacs-no-version-check.patch ]; patches = [ ./patches/emacs-no-version-check.patch
./patches/nixpkgs-348697.patch
];
}; };
# configure pkgs # configure pkgs

View file

@ -0,0 +1,76 @@
diff --git a/pkgs/development/python-modules/pyqt/6.x.nix b/pkgs/development/python-modules/pyqt/6.x.nix
index 9f031347d354e..6356eeb9637f0 100644
--- a/pkgs/development/python-modules/pyqt/6.x.nix
+++ b/pkgs/development/python-modules/pyqt/6.x.nix
@@ -25,17 +25,15 @@
buildPythonPackage rec {
pname = "pyqt6";
- version = "6.7.0.dev2404081550";
+ version = "6.8.0.dev2410141303";
format = "pyproject";
disabled = pythonOlder "3.6";
+ # This is dangerous, how can we get web archive to archive the URL?
src = fetchurl {
- urls = [
- "https://riverbankcomputing.com/pypi/packages/PyQt6/PyQt6-${version}.tar.gz"
- "http://web.archive.org/web/20240411124842if_/https://riverbankcomputing.com/pypi/packages/PyQt6/PyQt6-${version}.tar.gz"
- ];
- hash = "sha256-H5qZ/rnruGh+UVSXLZyTSvjagmmli/iYq+7BaIzl1YQ=";
+ url = "https://riverbankcomputing.com/pypi/packages/PyQt6/PyQt6-${version}.tar.gz";
+ hash = "sha256-eHYqj22us07uFkErJD2d0y0wueZxtQTwTFW9cI7yoK4=";
};
patches = [
@@ -55,8 +53,11 @@ buildPythonPackage rec {
verbose = true
EOF
+ # pythonRelaxDeps doesn't work and the wanted versions are not released AFAIK
substituteInPlace pyproject.toml \
- --replace-fail 'version = "${version}"' 'version = "${lib.versions.pad 3 version}"'
+ --replace-fail 'version = "${version}"' 'version = "${lib.versions.pad 3 version}"' \
+ --replace-fail "sip >=6.9, <7" "sip >=6.8.6, <7" \
+ --replace-fail 'PyQt-builder >=1.17, <2' "PyQt-builder >=1.16, <2"
'';
enableParallelBuilding = true;
diff --git a/pkgs/development/python-modules/sip/default.nix b/pkgs/development/python-modules/sip/default.nix
index 8a398654b08ce..8fd6240e4a512 100644
--- a/pkgs/development/python-modules/sip/default.nix
+++ b/pkgs/development/python-modules/sip/default.nix
@@ -4,6 +4,7 @@
fetchPypi,
pythonOlder,
setuptools,
+ setuptools-scm,
packaging,
tomli,
@@ -15,17 +16,20 @@
buildPythonPackage rec {
pname = "sip";
- version = "6.8.3";
+ version = "6.8.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
- hash = "sha256-iIVHsBi7JMNq3tUZ6T0+UT1MaqC6VbfMGv+9Rc8Qdiw=";
+ hash = "sha256-f8lZ5I5uxdWvi9Am9p9eJNCLPLirs0IXb1q4AwzAfXo=";
};
- nativeBuildInputs = [ setuptools ];
+ build-system = [
+ setuptools
+ setuptools-scm
+ ];
- propagatedBuildInputs = [
+ dependencies = [
packaging
setuptools
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];

View file

@ -38,6 +38,27 @@
nix.extraOptions = '' nix.extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';
nixpkgs.overlays = [
(
final: prev: {
logseq = prev.logseq.overrideAttrs (oldAttrs: {
postFixup = ''
makeWrapper ${prev.electron_27}/bin/electron $out/bin/${oldAttrs.pname} \
--set "LOCAL_GIT_DIRECTORY" ${prev.git} \
--add-flags $out/share/${oldAttrs.pname}/resources/app \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
--prefix LD_LIBRARY_PATH : "${prev.lib.makeLibraryPath [ prev.stdenv.cc.cc.lib ]}"
'';
});
}
)
];
# logseq
nixpkgs.config.permittedInsecurePackages = [
"electron-27.3.11"
];
# wheel group gets trusted access to nix daemon # wheel group gets trusted access to nix daemon
nix.settings.trusted-users = [ "@wheel" ]; nix.settings.trusted-users = [ "@wheel" ];
@ -87,6 +108,7 @@
# System packages # System packages
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim
logseq
wget wget
zsh zsh
git git

View file

@ -12,7 +12,7 @@
(./. + "../../../user/wm"+("/"+userSettings.wm+"/"+userSettings.wm)+".nix") # My window manager selected from flake (./. + "../../../user/wm"+("/"+userSettings.wm+"/"+userSettings.wm)+".nix") # My window manager selected from flake
../../user/shell/sh.nix # My zsh and bash config ../../user/shell/sh.nix # My zsh and bash config
../../user/shell/cli-collection.nix # Useful CLI apps ../../user/shell/cli-collection.nix # Useful CLI apps
../../user/app/doom-emacs/doom.nix # My doom emacs config #../../user/app/doom-emacs/doom.nix # My doom emacs config
../../user/app/nvim/nvim.nix # My doom emacs config ../../user/app/nvim/nvim.nix # My doom emacs config
#../../user/app/emacsng # Me experimenting with emacsng and a vanilla config #../../user/app/emacsng # Me experimenting with emacsng and a vanilla config
../../user/app/ranger/ranger.nix # My ranger file manager config ../../user/app/ranger/ranger.nix # My ranger file manager config
@ -119,24 +119,31 @@
yt-dlp yt-dlp
blender-hip blender-hip
libresprite libresprite
# cura is moderately broken on wayland, so use xwayland (pkgs.appimageTools.wrapType2 {
(pkgs-stable.cura.overrideAttrs (oldAttrs: { name = "Cura";
postInstall = oldAttrs.postInstall + ''cp -rf ${(pkgs.makeDesktopItem { src = fetchurl {
name = "com.ultimaker.cura"; url = "https://github.com/Ultimaker/Cura/releases/download/5.8.1/UltiMaker-Cura-5.8.1-linux-X64.AppImage";
icon = "cura-icon"; hash = "sha256-VLd+V00LhRZYplZbKkEp4DXsqAhA9WLQhF933QAZRX0=";
desktopName = "Cura"; };
exec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura %F"; extraPkgs = pkgs: with pkgs; [];
tryExec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura"; })
terminal = false; #(pkgs-stable.cura.overrideAttrs (oldAttrs: {
type = "Application"; # postInstall = oldAttrs.postInstall + ''cp -rf ${(pkgs.makeDesktopItem {
categories = ["Graphics"]; # name = "com.ultimaker.cura";
mimeTypes = ["model/stl" "application/vnd.ms-3mfdocument" "application/prs.wavefront-obj" # icon = "cura-icon";
"image/bmp" "image/gif" "image/jpeg" "image/png" "text/x-gcode" "application/x-amf" # desktopName = "Cura";
"application/x-ply" "application/x-ctm" "model/vnd.collada+xml" "model/gltf-binary" # exec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura %F";
"model/gltf+json" "model/vnd.collada+xml+zip"]; # tryExec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura";
})}/share/applications $out/share''; # terminal = false;
})) # type = "Application";
(pkgs.writeShellScriptBin "curax" ''env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura'') # categories = ["Graphics"];
# mimeTypes = ["model/stl" "application/vnd.ms-3mfdocument" "application/prs.wavefront-obj"
# "image/bmp" "image/gif" "image/jpeg" "image/png" "text/x-gcode" "application/x-amf"
# "application/x-ply" "application/x-ctm" "model/vnd.collada+xml" "model/gltf-binary"
# "model/gltf+json" "model/vnd.collada+xml+zip"];
# })}/share/applications $out/share'';
#}))
#(pkgs.writeShellScriptBin "curax" ''env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura $@'')
(pkgs-stable.curaengine_stable) (pkgs-stable.curaengine_stable)
openscad openscad
(stdenv.mkDerivation { (stdenv.mkDerivation {
@ -177,6 +184,7 @@
tenacity tenacity
# Various dev packages # Various dev packages
remmina
sshfs sshfs
texinfo texinfo
libffi zlib libffi zlib

View file

@ -1,19 +1,32 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, inputs, ... }:
{ {
imports = imports =
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
services.fstrim.enable = true;
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "radeon" ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "radeon" ];
boot.initrd.kernelModules = [ "radeon" ]; boot.initrd.kernelModules = [ "radeon" ];
boot.kernelModules = [ "kvm-amd" "radeon" ]; boot.kernelModules = [ "kvm-amd" "radeon" "zenpower" "8812au" ];
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ]; boot.blacklistedKernelModules = [ "k10temp" ];
hardware.opengl.extraPackages = [ pkgs.amdvlk pkgs.rocmPackages.clr.icd ]; boot.kernelParams = [ "amd_pstate=active" ];
hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ]; boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower rtl8812au ];
hardware.opengl.extraPackages = [ pkgs.rocmPackages.clr.icd ];
hardware.opengl.extraPackages32 = [ ];
services.xserver.videoDrivers = lib.mkDefault [ "modesetting" ];
hardware.graphics = {
enable = lib.mkDefault true;
enable32Bit = lib.mkDefault true;
};
hardware.amdgpu.initrd.enable = lib.mkDefault true;
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"

View file

@ -139,7 +139,6 @@ base0F = "#''+config.lib.stylix.colors.base0F+''"
config.set('content.cookies.accept', 'no-3rdparty', 'chrome-devtools://*') config.set('content.cookies.accept', 'no-3rdparty', 'chrome-devtools://*')
config.set('content.cookies.accept', 'no-3rdparty', 'devtools://*') config.set('content.cookies.accept', 'no-3rdparty', 'devtools://*')
config.set('content.headers.user_agent','Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36')
config.set('content.headers.user_agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36', 'https://accounts.google.com/*') config.set('content.headers.user_agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36', 'https://accounts.google.com/*')
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*') config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*')

View file

@ -1,6 +1,6 @@
#+TITLE: Doom Emacs Literate Config #+TITLE: Doom Emacs Literate Config
#+AUTHOR: Emmet #+AUTHOR: Emmet
# FIXME doom emacs config
* Table of Contents :TOC:QUOTE: * Table of Contents :TOC:QUOTE:
#+BEGIN_QUOTE #+BEGIN_QUOTE
- [[#what-is-doom-emacs][What is Doom Emacs?]] - [[#what-is-doom-emacs][What is Doom Emacs?]]

View file

@ -26,6 +26,8 @@ in
%F{green}%f " %F{green}%f "
RPROMPT="%F{red}%f%F{yellow}%f%F{green}%f%F{cyan}%f%F{blue}%f%F{magenta}%f%F{white}%f" RPROMPT="%F{red}%f%F{yellow}%f%F{green}%f%F{cyan}%f%F{blue}%f%F{magenta}%f%F{white}%f"
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ ' [ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
bindkey '^P' history-beginning-search-backward
bindkey '^N' history-beginning-search-forward
''; '';
}; };

View file

@ -335,6 +335,7 @@ in
windowrulev2 = opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1 windowrulev2 = opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1
windowrulev2 = opacity 0.85,class:^(Element)$ windowrulev2 = opacity 0.85,class:^(Element)$
windowrulev2 = opacity 0.85,class:^(Logseq)$
windowrulev2 = opacity 0.85,class:^(lollypop)$ windowrulev2 = opacity 0.85,class:^(lollypop)$
windowrulev2 = opacity 1.0,class:^(Brave-browser),fullscreen:1 windowrulev2 = opacity 1.0,class:^(Brave-browser),fullscreen:1
windowrulev2 = opacity 1.0,class:^(librewolf),fullscreen:1 windowrulev2 = opacity 1.0,class:^(librewolf),fullscreen:1