mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Compare commits
7 commits
8ef3a38392
...
01d0b747ce
Author | SHA1 | Date | |
---|---|---|---|
01d0b747ce | |||
9d152a1131 | |||
4469e7c8ff | |||
b4a99c6090 | |||
d9bcbd5f44 | |||
3b9eea143e | |||
37e63c0ec5 |
42
flake.lock
42
flake.lock
|
@ -102,11 +102,11 @@
|
|||
"blocklist-hosts": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1728682327,
|
||||
"narHash": "sha256-lTYUdo00JzPLJgtvv2dETHKyZ67vSY6Vd+fOin4L2z4=",
|
||||
"lastModified": 1729258669,
|
||||
"narHash": "sha256-e1t7Uqegsa14IIa880xx174Zsx1cSmg+nGx3xdfe8GY=",
|
||||
"owner": "StevenBlack",
|
||||
"repo": "hosts",
|
||||
"rev": "ebcd90663f670627612d86de564eb504e7e63b35",
|
||||
"rev": "3eb62cf79953401fab84826491d2468bd8519487",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -511,11 +511,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1728685293,
|
||||
"narHash": "sha256-1WowL96pksT/XCi+ZXHgqiQ9NiU5oxWuNIQYWqOoEYc=",
|
||||
"lastModified": 1729260213,
|
||||
"narHash": "sha256-jAvHoU/1y/yCuXzr2fNF+q6uKmr8Jj2xgAisK4QB9to=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "2b13611eaed8326789f76f70d21d06fbb14e3e47",
|
||||
"rev": "09a0c0c02953318bf94425738c7061ffdc4cba75",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1019,11 +1019,11 @@
|
|||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1728492678,
|
||||
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=",
|
||||
"lastModified": 1729070438,
|
||||
"narHash": "sha256-KOTTUfPkugH52avUvXGxvWy8ibKKj4genodIYUED+Kc=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7",
|
||||
"rev": "5785b6bb5eaae44e627d541023034e1601455827",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1066,11 +1066,11 @@
|
|||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1728500571,
|
||||
"narHash": "sha256-dOymOQ3AfNI4Z337yEwHGohrVQb4yPODCW9MDUyAc4w=",
|
||||
"lastModified": 1729044727,
|
||||
"narHash": "sha256-GKJjtPY+SXfLF/yTN7M2cAnQB6RERFKnQhD8UvPSf3M=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "d51c28603def282a24fa034bcb007e2bcb5b5dd0",
|
||||
"rev": "dc2e0028d274394f73653c7c90cc63edbb696be1",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1081,11 +1081,11 @@
|
|||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1718428119,
|
||||
"narHash": "sha256-WdWDpNaq6u1IPtxtYHHWpl5BmabtpmLnMAx0RdJ/vo8=",
|
||||
"lastModified": 1728538411,
|
||||
"narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e6cea36f83499eb4e9cd184c8a8e823296b50ad5",
|
||||
"rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1476,11 +1476,11 @@
|
|||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1728613723,
|
||||
"narHash": "sha256-zVVj0PKguM8ZMdLE43YW7dzer3tl9e6i5Qs1fr878+c=",
|
||||
"lastModified": 1729218602,
|
||||
"narHash": "sha256-KDmYxpkFWa0Go0WnOpkgQOypVaQxbwgpEutET5ey1VQ=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "ca93f28abd2147dd9997261dcaeacc5a30dba463",
|
||||
"rev": "9051466c82b9b3a6ba9e06be99621ad25423ec94",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -1538,11 +1538,11 @@
|
|||
"tinted-tmux": "tinted-tmux"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1728640680,
|
||||
"narHash": "sha256-JH2+RXJNooFtZIN6ZhaGZWn2KChMrso4H7Fkp1Ujrdo=",
|
||||
"lastModified": 1728900372,
|
||||
"narHash": "sha256-hmG/u7qZEm7CTh1XPDi+pg4Oi0nNrv7sL8PgZDRe6wg=",
|
||||
"owner": "danth",
|
||||
"repo": "stylix",
|
||||
"rev": "f95022bb6e74f726a87975aec982a5aa9fad8691",
|
||||
"rev": "33a2eff15181e557bb6dd9d2073b90f7d218975d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -56,7 +56,9 @@
|
|||
(import inputs.nixpkgs { system = systemSettings.system; rocmSupport = (if systemSettings.gpu == "amd" then true else false); }).applyPatches {
|
||||
name = "nixpkgs-patched";
|
||||
src = inputs.nixpkgs;
|
||||
patches = [ ./patches/emacs-no-version-check.patch ];
|
||||
patches = [ ./patches/emacs-no-version-check.patch
|
||||
./patches/nixpkgs-348697.patch
|
||||
];
|
||||
};
|
||||
|
||||
# configure pkgs
|
||||
|
|
76
patches/nixpkgs-348697.patch
Normal file
76
patches/nixpkgs-348697.patch
Normal 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 ];
|
|
@ -38,6 +38,27 @@
|
|||
nix.extraOptions = ''
|
||||
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
|
||||
nix.settings.trusted-users = [ "@wheel" ];
|
||||
|
@ -87,6 +108,7 @@
|
|||
# System packages
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim
|
||||
logseq
|
||||
wget
|
||||
zsh
|
||||
git
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
(./. + "../../../user/wm"+("/"+userSettings.wm+"/"+userSettings.wm)+".nix") # My window manager selected from flake
|
||||
../../user/shell/sh.nix # My zsh and bash config
|
||||
../../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/emacsng # Me experimenting with emacsng and a vanilla config
|
||||
../../user/app/ranger/ranger.nix # My ranger file manager config
|
||||
|
@ -119,24 +119,31 @@
|
|||
yt-dlp
|
||||
blender-hip
|
||||
libresprite
|
||||
# cura is moderately broken on wayland, so use xwayland
|
||||
(pkgs-stable.cura.overrideAttrs (oldAttrs: {
|
||||
postInstall = oldAttrs.postInstall + ''cp -rf ${(pkgs.makeDesktopItem {
|
||||
name = "com.ultimaker.cura";
|
||||
icon = "cura-icon";
|
||||
desktopName = "Cura";
|
||||
exec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura %F";
|
||||
tryExec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura";
|
||||
terminal = false;
|
||||
type = "Application";
|
||||
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.appimageTools.wrapType2 {
|
||||
name = "Cura";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Ultimaker/Cura/releases/download/5.8.1/UltiMaker-Cura-5.8.1-linux-X64.AppImage";
|
||||
hash = "sha256-VLd+V00LhRZYplZbKkEp4DXsqAhA9WLQhF933QAZRX0=";
|
||||
};
|
||||
extraPkgs = pkgs: with pkgs; [];
|
||||
})
|
||||
#(pkgs-stable.cura.overrideAttrs (oldAttrs: {
|
||||
# postInstall = oldAttrs.postInstall + ''cp -rf ${(pkgs.makeDesktopItem {
|
||||
# name = "com.ultimaker.cura";
|
||||
# icon = "cura-icon";
|
||||
# desktopName = "Cura";
|
||||
# exec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura %F";
|
||||
# tryExec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura";
|
||||
# terminal = false;
|
||||
# type = "Application";
|
||||
# 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)
|
||||
openscad
|
||||
(stdenv.mkDerivation {
|
||||
|
@ -177,6 +184,7 @@
|
|||
tenacity
|
||||
|
||||
# Various dev packages
|
||||
remmina
|
||||
sshfs
|
||||
texinfo
|
||||
libffi zlib
|
||||
|
|
|
@ -1,19 +1,32 @@
|
|||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{ config, lib, pkgs, modulesPath, inputs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
services.fstrim.enable = true;
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "radeon" ];
|
||||
boot.initrd.kernelModules = [ "radeon" ];
|
||||
boot.kernelModules = [ "kvm-amd" "radeon" ];
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
|
||||
hardware.opengl.extraPackages = [ pkgs.amdvlk pkgs.rocmPackages.clr.icd ];
|
||||
hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ];
|
||||
boot.kernelModules = [ "kvm-amd" "radeon" "zenpower" "8812au" ];
|
||||
boot.blacklistedKernelModules = [ "k10temp" ];
|
||||
boot.kernelParams = [ "amd_pstate=active" ];
|
||||
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 = [
|
||||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||||
|
|
|
@ -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', '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 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*')
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#+TITLE: Doom Emacs Literate Config
|
||||
#+AUTHOR: Emmet
|
||||
|
||||
# FIXME doom emacs config
|
||||
* Table of Contents :TOC:QUOTE:
|
||||
#+BEGIN_QUOTE
|
||||
- [[#what-is-doom-emacs][What is Doom Emacs?]]
|
||||
|
|
|
@ -26,6 +26,8 @@ in
|
|||
%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"
|
||||
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
|
||||
bindkey '^P' history-beginning-search-backward
|
||||
bindkey '^N' history-beginning-search-forward
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
|
@ -335,6 +335,7 @@ in
|
|||
|
||||
windowrulev2 = opacity 1.0,class:^(org.qutebrowser.qutebrowser),fullscreen:1
|
||||
windowrulev2 = opacity 0.85,class:^(Element)$
|
||||
windowrulev2 = opacity 0.85,class:^(Logseq)$
|
||||
windowrulev2 = opacity 0.85,class:^(lollypop)$
|
||||
windowrulev2 = opacity 1.0,class:^(Brave-browser),fullscreen:1
|
||||
windowrulev2 = opacity 1.0,class:^(librewolf),fullscreen:1
|
||||
|
|
Loading…
Reference in a new issue