Skip to content

Instantly share code, notes, and snippets.

View PerchunPak's full-sized avatar

Perchun Pak PerchunPak

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PerchunPak
PerchunPak / python3.12-pydocstyle-6.3.0.log
Created March 15, 2024 18:08
nix log /nix/store/05908nd888ss63axnky4xv17swjvq2jd-python3.12-pydocstyle-6.3.0.drv
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
@PerchunPak
PerchunPak / nix-2.19.4-build.log
Created March 17, 2024 17:27
nix log /nix/store/kbsz0x3jz2x617g67kgpzssg0jy1kxpm-nix-2.19.4.drv
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/044fcnhp4wzqzg6f1k76sfnqq787l6nn-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
patching script interpreter paths in tests
tests/functional/install-darwin.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/4vzal97iq3dmrgycj8r0gflrh51p8w1s-bash-5.2p26/bin/sh"
tests/functional/nix-daemon-untrusting.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/4vzal97iq3dmrgycj8r0gflrh51p8w1s-bash-5.2p26/bin/sh"
tests/functional/push-to-store-old.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/4vzal97iq3dmrgycj8r0gflrh51p8w1s-bash-5.2p26/bin/sh"
diff --git a/modules/nixos/disko.nix b/modules/nixos/disko.nix
index 2c49e4a..2528d1f 100644
--- a/modules/nixos/disko.nix
+++ b/modules/nixos/disko.nix
@@ -22,18 +22,22 @@
};
};
swap = {
- size = "4G";
+ size = "8G";
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/044fcnhp4wzqzg6f1k76sfnqq787l6nn-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
patching script interpreter paths in tests
tests/functional/ca/build-with-garbage-path.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5lr5n3qa4day8l1ivbwlcby2nknczqkq-bash-5.2p26/bin/bash"
tests/functional/ca/concurrent-builds.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5lr5n3qa4day8l1ivbwlcby2nknczqkq-bash-5.2p26/bin/bash"
tests/functional/ca/gc.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/5lr5n3qa4day8l1ivbwlcby2nknczqkq-bash-5.2p26/bin/bash"
[nixos@nixos:~/nixos-dotfiles]$ sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode create ./modules/nixos/disko.nix --arg device '"/dev/vda"'
trace: the create output is deprecated, use format instead
this derivation will be built:
/nix/store/g6qdlfivkbr0xa9j6v4kl97sg789jvmw-disko-format.drv
building '/nix/store/g6qdlfivkbr0xa9j6v4kl97sg789jvmw-disko-format.drv'...
++ mktemp -d
+ disko_devices_dir=/tmp/tmp.S66ppwTquk
+ trap 'rm -rf "$disko_devices_dir"' EXIT
+ mkdir -p /tmp/tmp.S66ppwTquk
+ device=/dev/vda
@PerchunPak
PerchunPak / EXPLANATION.md
Created April 4, 2024 16:06
Use disko to partition your disk without deleting existing data

this formats disk

-# shellcheck disable=SC2043
-for dev in /dev/vda; do
-  /nix/store/nxykihliwdnlmp6apf2ivi0vnfv9ddak-disk-deactivate/disk-deactivate "$dev"
-done

this check for some reason failed and totally skipped execution of creation of partitions (does it check whether there are any partitions on a disk?)

@PerchunPak
PerchunPak / diswall-module.nix
Created April 16, 2024 18:06
untested WIP diswall module for nixos, do note that I am not planning to continue it
{
lib,
config,
pkgs,
...
}: let
cfg = config.my.diswall;
srcPath = cfg.package.src.outPath;
in {
options = {
final: prev: {
vlc-nightly = let
revision = "2a58b2bf9263b33538bca88ab4e5e6a04e73c88e";
vlc-without-qt5 = prev.vlc.override {withQt5 = false;};
in
vlc-without-qt5.overrideAttrs (old: {
version = "nightly";
src = final.fetchFromGitLab {
domain = "code.videolan.org";
owner = "videolan";