This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/default.nix b/default.nix | |
index 18aafb6..0fabd2e 100644 | |
--- a/default.nix | |
+++ b/default.nix | |
@@ -148,15 +148,20 @@ let | |
shortRev = builtins.substring 0 7 info.rev; | |
} | |
else if info.type == "path" then | |
- { | |
- outPath = builtins.path ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/default.nix b/default.nix | |
index 18aafb6..0fabd2e 100644 | |
--- a/default.nix | |
+++ b/default.nix | |
@@ -148,15 +148,20 @@ let | |
shortRev = builtins.substring 0 7 info.rev; | |
} | |
else if info.type == "path" then | |
- { | |
- outPath = builtins.path ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/C/flake-compat [🎋 main][!⇡][📦 v0.0.0][🐍 ][🗀 not loaded/not allowed][🐚fish][as🧙] | |
[15:47:06]❯ nix build --file $FLAKE/default.nix "nixosConfigurations.\"$hostname\".config.system.build.toplevel" --log-format internal-json | |
@nix {"action":"start","id":4712262023512064,"level":5,"parent":0,"text":"copying '/home/lillecarl/Code/nixpkgs/pkgs/stdenv/generic/source-stdenv.sh' to the store","type":0} | |
@nix {"action":"stop","id":4712262023512064} | |
@nix {"action":"start","id":4712262023512065,"level":5,"parent":0,"text":"copying '/home/lillecarl/Code/nixpkgs/pkgs/stdenv/generic/default-builder.sh' to the store","type":0} | |
@nix {"action":"stop","id":4712262023512065} | |
@nix {"action":"start","id":4712262023512066,"level":5,"parent":0,"text":"copying '/home/lillecarl/Code/nixpkgs/pkgs/stdenv/linux/bootstrap-tools/glibc/unpack-bootstrap-tools.sh' to the store","type":0} | |
@nix {"action":"stop","id":4712262023512066} | |
@nix {"action":"start","id":4712262023512067,"level":5,"parent":0,"text":"copying '/home/lillecarl/Code/nixpkgs/pk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env fish | |
function padd | |
for path in $(nix build nixpkgs#$argv[1] --print-out-paths --no-link) | |
set bin "$path/bin" | |
if test -d $bin | |
echo "Added $bin to PATH" | |
set --prepend --global PATH $bin | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 496226e89..b2975c94d 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -46,38 +46,6 @@ get_filename_component(REAL_CMAKE_SOURCE_DIR "${CMAKE_SOURCE_DIR}" REALPATH) | |
add_definitions(-DCMAKE_BINARY_DIR="${REAL_CMAKE_BINARY_DIR}") | |
add_definitions(-DCMAKE_SOURCE_DIR="${REAL_CMAKE_SOURCE_DIR}") | |
-# Define a function to build and link dependencies. | |
-function(CREATE_TARGET target) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
stdenv, | |
fetchFromGitHub, | |
cmake, | |
rust, | |
rustc, | |
cargo, | |
ncurses, | |
pcre2, | |
gettext, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ lib, config, ... }: | |
let | |
modName = "template"; | |
cfg = config.ps.${modName}; | |
in | |
{ | |
options.ps = { | |
${modName} = { | |
enable = lib.mkOption { | |
default = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8408190844005f078d59ff39158e4107e1be2d98 Mon Sep 17 00:00:00 2001 | |
From: Carl Hjerpe <[email protected]> | |
Date: Tue, 24 Sep 2024 00:05:34 +0200 | |
Subject: [PATCH 1/2] fish/login/niri: Rework niri initialisation | |
Create niri-session systemd unit that binds to graphical-session.target | |
that Mr. Poettering has some special fetish for. Start | |
graphical-session.target with niri, stop it with fish once niri exists. | |
Instead of execing into sh we unset SHLVL with env before launching |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_: | |
{ | |
environment.etc."lvm/lvm.conf".text = lib.mkForce '' | |
devices { | |
issue_discards = 1 | |
} | |
allocations { | |
thin_pool_discards = 1 | |
} | |
''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# We need $FLAKE for our impurity | |
export FLAKE=$PWD | |
# Save $FLAKE to a file | |
echo "\"$FLAKE\"" > "$FLAKE/.flakepath" | |
dotenv_if_exists /run/user/1000/agenix/cloudflare | |
watch_file .nix |
NewerOlder