Compare commits
No commits in common. "c621860314327a947a3de38f0730c9ae31807e3b" and "03ecaf76d6dee634ad7d1eee2f18a8d771a2893d" have entirely different histories.
c621860314
...
03ecaf76d6
15 changed files with 127 additions and 179 deletions
10
default.nix
10
default.nix
|
@ -4,14 +4,14 @@ let
|
||||||
# https://github.com/andir/npins?tab=readme-ov-file#using-the-nixpkgs-fetchers
|
# https://github.com/andir/npins?tab=readme-ov-file#using-the-nixpkgs-fetchers
|
||||||
src = import ./npins;
|
src = import ./npins;
|
||||||
pkgs = import src.nixpkgs { };
|
pkgs = import src.nixpkgs { };
|
||||||
sources = mapAttrs (_: v: v { inherit pkgs; }) src;
|
sources = mapAttrs (k: v: v { inherit pkgs; }) src;
|
||||||
|
|
||||||
inherit (pkgs) lib;
|
inherit (pkgs) lib;
|
||||||
inherit (lib.filesystem) listFilesRecursive;
|
inherit (lib.filesystem) listFilesRecursive;
|
||||||
inherit (lib.strings) hasSuffix;
|
inherit (lib.strings) hasSuffix;
|
||||||
|
|
||||||
mkSystem =
|
mkSystem =
|
||||||
hostname:
|
system: hostname:
|
||||||
import (src.nixpkgs + "/nixos/lib/eval-config.nix") {
|
import (src.nixpkgs + "/nixos/lib/eval-config.nix") {
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit sources;
|
inherit sources;
|
||||||
|
@ -28,7 +28,7 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
temperance = mkSystem "temperance";
|
temperance = mkSystem "x86_64-linux" "temperance";
|
||||||
hermit = mkSystem "hermit";
|
hermit = mkSystem "x86_64-linux" "hermit";
|
||||||
tower = mkSystem "tower";
|
tower = mkSystem "aarch64-linux" "tower";
|
||||||
}
|
}
|
||||||
|
|
8
docs/resizing.md
Normal file
8
docs/resizing.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
## Resizing images using imagemagick
|
||||||
|
|
||||||
|
I wanted to resize an image using imagemagick.
|
||||||
|
|
||||||
|
To do this I had to run:
|
||||||
|
`magick lain.png -crop 1072x1448^ -gravity center -quality 90 sca.png`
|
||||||
|
|
||||||
|
What does this do?
|
|
@ -16,6 +16,7 @@
|
||||||
cbonsai
|
cbonsai
|
||||||
cinny-desktop
|
cinny-desktop
|
||||||
cmus
|
cmus
|
||||||
|
comma
|
||||||
difftastic
|
difftastic
|
||||||
dua
|
dua
|
||||||
evince
|
evince
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
calc
|
calc
|
||||||
calibre
|
calibre
|
||||||
carapace
|
carapace
|
||||||
|
comma
|
||||||
digikam
|
digikam
|
||||||
difftastic
|
difftastic
|
||||||
dnsutils
|
dnsutils
|
||||||
|
|
|
@ -6,10 +6,9 @@
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib.attrsets) mapAttrs' nameValuePair;
|
inherit (lib.attrsets) mapAttrs' nameValuePair;
|
||||||
inherit (lib.meta) getExe;
|
|
||||||
|
|
||||||
helix = pkgs.helix.overrideAttrs (
|
helix = pkgs.helix.overrideAttrs (
|
||||||
finalAttrs: _: {
|
finalAttrs: previousAttrs: {
|
||||||
version = "25.07.2";
|
version = "25.07.2";
|
||||||
src = pkgs.fetchzip {
|
src = pkgs.fetchzip {
|
||||||
url = "https://github.com/bloxx12/helix/releases/download/${finalAttrs.version}/helix-${finalAttrs.version}-source.tar.xz";
|
url = "https://github.com/bloxx12/helix/releases/download/${finalAttrs.version}/helix-${finalAttrs.version}-source.tar.xz";
|
||||||
|
@ -26,6 +25,28 @@ let
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
helix-with-plugins = pkgs.helix.overrideAttrs (
|
||||||
|
finalAttrs: previousAttrs: {
|
||||||
|
name = "helix-with-plugins";
|
||||||
|
version = "25.07.2";
|
||||||
|
src = pkgs.fetchzip {
|
||||||
|
url = "https://github.com/bloxx12/helix/releases/download/${finalAttrs.version}/helix-${finalAttrs.version}-source.tar.xz";
|
||||||
|
hash = "sha256-ZNsQwFfPXe6oewajx1tl68W60kVo7q2SuvTgy/o1HKk=";
|
||||||
|
stripRoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
doInstallCheck = false;
|
||||||
|
|
||||||
|
cargoDeps = pkgs.rustPlatform.fetchCargoVendor {
|
||||||
|
inherit (helix) src;
|
||||||
|
hash = "sha256-3poZSvIrkx8lguxxDeNfngW6+4hH8TV/LHcZx5W5aXg=";
|
||||||
|
};
|
||||||
|
postInstall = ''
|
||||||
|
mv $out/bin/hx $out/bin/hxp
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
toml = pkgs.formats.toml { };
|
toml = pkgs.formats.toml { };
|
||||||
|
|
||||||
languages =
|
languages =
|
||||||
|
@ -49,7 +70,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
new-deadnix = pkgs.deadnix.overrideAttrs (
|
new-deadnix = pkgs.deadnix.overrideAttrs (
|
||||||
_: _: {
|
finalAttrs: previousAttrs: {
|
||||||
version = "unstable-15-07-2025";
|
version = "unstable-15-07-2025";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "astro";
|
owner = "astro";
|
||||||
|
@ -137,10 +158,7 @@ let
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
language-servers = [
|
language-servers = [ "nil" ];
|
||||||
"nil"
|
|
||||||
"deadnix"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "qml";
|
name = "qml";
|
||||||
|
@ -262,11 +280,11 @@ let
|
||||||
config.nil = {
|
config.nil = {
|
||||||
formatting.command = [ "${getExe nixfmt}" ];
|
formatting.command = [ "${getExe nixfmt}" ];
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
bindingEndHintMinLines = 10;
|
bindingEndHintMinLines = 3;
|
||||||
};
|
};
|
||||||
nix.flake = {
|
nix.flake = {
|
||||||
autoArchive = true;
|
autoArchive = true;
|
||||||
autoEvalInputs = true;
|
# autoEvalInputs = true;
|
||||||
nixpkgsInputName = "nixpkgs";
|
nixpkgsInputName = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -293,8 +311,10 @@ let
|
||||||
args = [ "server" ];
|
args = [ "server" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
qmlls.command = getExe' pkgs.kdePackages.qtdeclarative "qmlls";
|
qmlls = {
|
||||||
|
command = getExe' pkgs.kdePackages.qtdeclarative "qmlls";
|
||||||
|
args = [ "-E" ];
|
||||||
|
};
|
||||||
basedpyright.command = "${pkgs.basedpyright}/bin/basedpyright-langserver";
|
basedpyright.command = "${pkgs.basedpyright}/bin/basedpyright-langserver";
|
||||||
|
|
||||||
vscode-css-language-server = {
|
vscode-css-language-server = {
|
||||||
|
@ -343,7 +363,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
theme = "gruvbox_dark_hard";
|
theme = "nord";
|
||||||
editor = {
|
editor = {
|
||||||
cursorline = true;
|
cursorline = true;
|
||||||
color-modes = true;
|
color-modes = true;
|
||||||
|
@ -352,28 +372,18 @@ let
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
auto-signature-help = true;
|
auto-signature-help = true;
|
||||||
display-inlay-hints = true;
|
display-inlay-hints = false;
|
||||||
display-messages = true;
|
display-messages = true;
|
||||||
display-progress-messages = true;
|
|
||||||
snippets = true;
|
snippets = true;
|
||||||
};
|
};
|
||||||
file-picker = {
|
file-picker = {
|
||||||
hidden = false;
|
hidden = true;
|
||||||
};
|
};
|
||||||
line-number = "relative";
|
line-number = "relative";
|
||||||
|
auto-format = true;
|
||||||
completion-timeout = 5;
|
completion-timeout = 5;
|
||||||
clipboard-provider = "wayland";
|
|
||||||
|
|
||||||
# Shell to use when running external commands.
|
|
||||||
shell = [
|
|
||||||
(getExe pkgs.nushell)
|
|
||||||
"-c"
|
|
||||||
];
|
|
||||||
completion-trigger-len = 1;
|
|
||||||
completion-replace = true;
|
|
||||||
mouse = true;
|
mouse = true;
|
||||||
bufferline = "multiple";
|
bufferline = "multiple";
|
||||||
popup-border = "none";
|
|
||||||
soft-wrap.enable = true;
|
soft-wrap.enable = true;
|
||||||
word-completion = {
|
word-completion = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -387,26 +397,22 @@ let
|
||||||
statusline = {
|
statusline = {
|
||||||
left = [
|
left = [
|
||||||
"spinner"
|
"spinner"
|
||||||
|
"version-control"
|
||||||
"diagnostics"
|
"diagnostics"
|
||||||
"file-name"
|
"file-name"
|
||||||
];
|
];
|
||||||
right = [
|
right = [
|
||||||
"file-base-name"
|
"file-base-name"
|
||||||
|
"file-type"
|
||||||
"position"
|
"position"
|
||||||
];
|
"file-encoding"
|
||||||
diagnostics = [
|
|
||||||
"warning"
|
|
||||||
"error"
|
|
||||||
];
|
|
||||||
workspace-diagnostics = [
|
|
||||||
"warning"
|
|
||||||
"error"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
gutters.layout = [
|
gutters.layout = [
|
||||||
"diff"
|
"diff"
|
||||||
"diagnostics"
|
"diagnostics"
|
||||||
"line-numbers"
|
"line-numbers"
|
||||||
|
"spacer"
|
||||||
];
|
];
|
||||||
inline-diagnostics = {
|
inline-diagnostics = {
|
||||||
cursor-line = "hint";
|
cursor-line = "hint";
|
||||||
|
|
|
@ -27,7 +27,7 @@ in
|
||||||
directory = config.users.users.${username}.home;
|
directory = config.users.users.${username}.home;
|
||||||
clobberFiles = mkForce true;
|
clobberFiles = mkForce true;
|
||||||
};
|
};
|
||||||
extraModules = (listFilesRecursive ./.) |> filter (hasSuffix ".hjem.nix");
|
extraModules = ((listFilesRecursive ./.) |> filter (hasSuffix ".hjem.nix"));
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit sources;
|
inherit sources;
|
||||||
};
|
};
|
||||||
|
|
|
@ -42,7 +42,7 @@ let
|
||||||
resize-overlay-duration = "0s";
|
resize-overlay-duration = "0s";
|
||||||
shell-integration-features = "cursor,sudo,no-title";
|
shell-integration-features = "cursor,sudo,no-title";
|
||||||
term = "xterm-256color";
|
term = "xterm-256color";
|
||||||
theme = "GruvboxDarkHard";
|
theme = "nightfox";
|
||||||
window-decoration = "none";
|
window-decoration = "none";
|
||||||
window-padding-balance = true;
|
window-padding-balance = true;
|
||||||
window-padding-x = 8;
|
window-padding-x = 8;
|
||||||
|
|
|
@ -1,36 +1,10 @@
|
||||||
{
|
{
|
||||||
lib,
|
|
||||||
pkgs,
|
pkgs,
|
||||||
sources,
|
sources,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
nixfmt = pkgs.callPackage "${sources.nixfmt}/default.nix" { };
|
nixfmt = pkgs.callPackage "${sources.nixfmt}/default.nix" { };
|
||||||
comma = pkgs.callPackage (
|
|
||||||
_:
|
|
||||||
pkgs.rustPlatform.buildRustPackage {
|
|
||||||
pname = "comma";
|
|
||||||
version = "unstable";
|
|
||||||
src = sources.comma;
|
|
||||||
cargoLock = {
|
|
||||||
allowBuiltinFetchGit = true;
|
|
||||||
lockFile = "${sources.comma}/Cargo.lock";
|
|
||||||
};
|
|
||||||
nativeBuildInputs = [ pkgs.makeBinaryWrapper ];
|
|
||||||
doInstallCheck = false;
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
wrapProgram $out/bin/comma \
|
|
||||||
--prefix PATH : ${
|
|
||||||
lib.makeBinPath [
|
|
||||||
pkgs.fzy
|
|
||||||
pkgs.nix-index-unwrapped
|
|
||||||
]
|
|
||||||
}
|
|
||||||
ln -s $out/bin/comma $out/bin/,
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
) { };
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
|
@ -66,7 +40,6 @@ in
|
||||||
glow
|
glow
|
||||||
# dua-cli
|
# dua-cli
|
||||||
dust
|
dust
|
||||||
iamb
|
|
||||||
kondo
|
kondo
|
||||||
# better grep
|
# better grep
|
||||||
ripgrep
|
ripgrep
|
||||||
|
@ -102,8 +75,5 @@ in
|
||||||
unzip
|
unzip
|
||||||
zip
|
zip
|
||||||
]
|
]
|
||||||
++ [
|
++ [ nixfmt ];
|
||||||
nixfmt
|
|
||||||
comma
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
# We have to disable this and use nix-index instead. (Rust >>> Pearl)
|
# We have to disable this and use nix-index instead. (Rust >>> Pearl)
|
||||||
|
|
|
@ -124,7 +124,7 @@ in
|
||||||
'';
|
'';
|
||||||
base-brand = fetchurl {
|
base-brand = fetchurl {
|
||||||
url = "https://codeberg.org/Codeberg-Infrastructure/forgejo/src/branch/codeberg-11/web_src/css/themes/codeberg/base-brand.css";
|
url = "https://codeberg.org/Codeberg-Infrastructure/forgejo/src/branch/codeberg-11/web_src/css/themes/codeberg/base-brand.css";
|
||||||
hash = "sha256-8gUmye/Z8H1Xe6U1CNAq907n3jt2TnPtzgpz6KhdiDU=";
|
hash = "sha256-rYZolA7maYEjzfx7mKJtEfyK62kfpGxvQ1eaC9qlZNw=";
|
||||||
};
|
};
|
||||||
dark-variables = fetchurl {
|
dark-variables = fetchurl {
|
||||||
url = "https://codeberg.org/Codeberg-Infrastructure/forgejo/raw/branch/codeberg-11/web_src/css/themes/codeberg/dark-variables.css";
|
url = "https://codeberg.org/Codeberg-Infrastructure/forgejo/raw/branch/codeberg-11/web_src/css/themes/codeberg/dark-variables.css";
|
||||||
|
@ -140,30 +140,30 @@ in
|
||||||
"d '${customDir}/public/assets' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets' 0750 ${user} ${group} - -"
|
||||||
"d '${customDir}/public/assets/img' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets/img' 0750 ${user} ${group} - -"
|
||||||
# Copeberg logo, thanks Raf <3
|
# Copeberg logo, thanks Raf <3
|
||||||
"f '${customDir}/public/assets/img/logo.svg' - - - - ${img}/logo.svg"
|
"L+ '${customDir}/public/assets/img/logo.svg' - - - - ${img}/logo.svg"
|
||||||
"f '${customDir}/public/assets/img/logo.png' - - - - ${img}/logo.png"
|
"L+ '${customDir}/public/assets/img/logo.png' - - - - ${img}/logo.png"
|
||||||
"f '${customDir}/public/assets/img/apple-touch-icon' - - - - ${img}/logo.png"
|
"L+ '${customDir}/public/assets/img/apple-touch-icon' - - - - ${img}/logo.png"
|
||||||
"f '${customDir}/public/assets/img/favicon.svg' - - - - ${img}/logo.svg"
|
"L+ '${customDir}/public/assets/img/favicon.svg' - - - - ${img}/logo.svg"
|
||||||
"f '${customDir}/public/assets/img/favicon.png' - - - - ${img}/logo.png"
|
"L+ '${customDir}/public/assets/img/favicon.png' - - - - ${img}/logo.png"
|
||||||
|
|
||||||
# Theming shenanigans
|
# Theming shenanigans
|
||||||
"d '${customDir}/public/assets' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets' 0750 ${user} ${group} - -"
|
||||||
"d '${customDir}/public/assets/css' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets/css' 0750 ${user} ${group} - -"
|
||||||
"d '${customDir}/public/assets/css/codeberg' 0750 ${user} ${group} - -"
|
"d '${customDir}/public/assets/css/codeberg' 0750 ${user} ${group} - -"
|
||||||
|
|
||||||
"f '${customDir}/public/assets/css/theme-codeberg-dark.css' - - - - ${theme-codeberg-dark}"
|
"L+ '${customDir}/public/assets/css/theme-codeberg-dark.css' - - - - ${theme-codeberg-dark}"
|
||||||
"f '${customDir}/public/assets/css/codeberg/base-brand.css' - - - - ${base-brand}"
|
"L+ '${customDir}/public/assets/css/codeberg/base-brand.css' - - - - ${base-brand}"
|
||||||
"f '${customDir}/public/assets/css/codeberg/dark-variables.css' - - - - ${dark-variables}"
|
"L+ '${customDir}/public/assets/css/codeberg/dark-variables.css' - - - - ${dark-variables}"
|
||||||
|
|
||||||
# Templates
|
# Templates
|
||||||
"d '${customDir}/templates' 0750 ${user} ${group} - -"
|
"d '${customDir}/templates' 0750 ${user} ${group} - -"
|
||||||
"d '${customDir}/templates/repo' 0750 ${user} ${group} - -"
|
"d '${customDir}/templates/repo' 0750 ${user} ${group} - -"
|
||||||
# Home page
|
# Home page
|
||||||
"f '${customDir}/templates/home.tmpl' - - - - ${./templates}/home.tmpl"
|
"L+ '${customDir}/templates/home.tmpl' - - - - ${./templates}/home.tmpl"
|
||||||
"f '${customDir}/templates/repo/header.tmpl' - - - - ${./templates/repo}/header.tmpl"
|
"L+ '${customDir}/templates/repo/header.tmpl' - - - - ${./templates/repo}/header.tmpl"
|
||||||
|
|
||||||
# Fuck off scrapers
|
# Fuck off scrapers
|
||||||
"f ${customDir}/public/robots.txt - - - - ${robots.outPath}"
|
"L+ ${customDir}/public/robots.txt - - - - ${robots.outPath}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib.modules) mkDefault mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
cfg = config.modules.system.hardware;
|
cfg = config.modules.system.hardware;
|
||||||
|
@ -19,21 +18,12 @@ in
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics = {
|
graphics.enable = true;
|
||||||
enable = true;
|
|
||||||
extraPackages = [ pkgs.nvidia-vaapi-driver ];
|
|
||||||
};
|
|
||||||
|
|
||||||
nvidia = mkIf cfg.nvidia.enable {
|
nvidia = mkIf cfg.nvidia.enable {
|
||||||
open = mkDefault true;
|
# we want the open-source drivers
|
||||||
|
open = true;
|
||||||
|
|
||||||
# Whether to enable kernel modesetting when using the NVIDIA proprietary driver.
|
|
||||||
# Enabling this causes the proprietary NVIDIA driver to provide its own
|
|
||||||
# framebuffer device, which can cause Wayland compositors to work when
|
|
||||||
# they otherwise wouldn’t. .
|
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
|
|
||||||
# nvidia-settings is useless on NixOS.
|
|
||||||
nvidiaSettings = false;
|
nvidiaSettings = false;
|
||||||
|
|
||||||
# fixes sleep on nvidia devices
|
# fixes sleep on nvidia devices
|
||||||
|
@ -44,27 +34,6 @@ in
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.xserver.videoDrivers = [
|
services.xserver.videoDrivers = mkIf cfg.nvidia.enable [ "nvidia" ];
|
||||||
"nvidia"
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = builtins.attrValues {
|
|
||||||
inherit (pkgs)
|
|
||||||
mesa
|
|
||||||
vulkan-tools
|
|
||||||
vulkan-loader
|
|
||||||
libva
|
|
||||||
libva-utils
|
|
||||||
;
|
|
||||||
inherit (pkgs.nvtopPackages) nvidia;
|
|
||||||
};
|
|
||||||
# Nouveau is a set of free and open-source drivers for NVIDIA GPUs
|
|
||||||
# that provide 2D/3D acceleration for all NVIDIA GPUs.
|
|
||||||
# Its use is in general not recommended due to its considerably worse
|
|
||||||
# performance compared to NVIDIA's kernel modules, as it does not
|
|
||||||
# support reclocking (changing the GPU clock frequency on-demand)
|
|
||||||
# for many NVIDIA GPUs.
|
|
||||||
# I therefore disable it to save myself from headaches.
|
|
||||||
boot.blacklistedKernelModules = mkIf cfg.nvidia.enable [ "nouveau" ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,41 +20,43 @@ in
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
config.nixpkgs.pkgs = import sources.nixpkgs {
|
config.nixpkgs.pkgs = (
|
||||||
inherit (pkgs.stdenv) hostPlatform;
|
import sources.nixpkgs {
|
||||||
overlays = [ ];
|
hostPlatform = pkgs.stdenv.hostPlatform;
|
||||||
config = {
|
overlays = [ ];
|
||||||
# Configuration reference:
|
config = {
|
||||||
# <https://nixos.org/manual/nixpkgs/unstable/#chap-packageconfig>
|
# Configuration reference:
|
||||||
# Disallow broken packages to be built.
|
# <https://nixos.org/manual/nixpkgs/unstable/#chap-packageconfig>
|
||||||
allowBroken = false;
|
# Disallow broken packages to be built.
|
||||||
|
allowBroken = false;
|
||||||
|
|
||||||
allowUnsupportedSystem = true;
|
allowUnsupportedSystem = true;
|
||||||
|
|
||||||
# Warn when config contains an unrecognized attribute.
|
# Warn when config contains an unrecognized attribute.
|
||||||
# This might be useful for getting a better configuration.
|
# This might be useful for getting a better configuration.
|
||||||
warnUndeclaredOptions = true;
|
warnUndeclaredOptions = true;
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
|
|
||||||
# Permitted insecure packages in a system.
|
# Permitted insecure packages in a system.
|
||||||
# Default to none, add more as necessary.
|
# Default to none, add more as necessary.
|
||||||
# Matrix also likes using deprecated libraries, which tend to go into this list.
|
# Matrix also likes using deprecated libraries, which tend to go into this list.
|
||||||
# permittedInsecurePackages = [];
|
# permittedInsecurePackages = [];
|
||||||
|
|
||||||
# Whether to set enableParallelBuilding to true by default while
|
# Whether to set enableParallelBuilding to true by default while
|
||||||
# building nixpkgs packages. Changing the default causes a mass rebuild.
|
# building nixpkgs packages. Changing the default causes a mass rebuild.
|
||||||
enableParallelBuildingByDefault = false;
|
enableParallelBuildingByDefault = false;
|
||||||
|
|
||||||
# Whether to expose old attribute names for compatibility.
|
# Whether to expose old attribute names for compatibility.
|
||||||
# This improves backwards compatibility,
|
# This improves backwards compatibility,
|
||||||
# which I could not care less about in my configuration.
|
# which I could not care less about in my configuration.
|
||||||
allowAliases = false;
|
allowAliases = false;
|
||||||
|
|
||||||
# List of derivation warnings to display while rebuilding.
|
# List of derivation warnings to display while rebuilding.
|
||||||
# See: <https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/check-meta.nix>
|
# See: <https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/check-meta.nix>
|
||||||
showDerivationWarnings = [ ];
|
showDerivationWarnings = [ ];
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,9 @@ let
|
||||||
allowBuiltinFetchGit = true;
|
allowBuiltinFetchGit = true;
|
||||||
lockFile = "${sources.niri}/Cargo.lock";
|
lockFile = "${sources.niri}/Cargo.lock";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
strictDeps = true;
|
||||||
|
doInstallCheck = false;
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
|
|
|
@ -1,18 +1,5 @@
|
||||||
{
|
{
|
||||||
"pins": {
|
"pins": {
|
||||||
"comma": {
|
|
||||||
"type": "Git",
|
|
||||||
"repository": {
|
|
||||||
"type": "GitHub",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "comma"
|
|
||||||
},
|
|
||||||
"branch": "master",
|
|
||||||
"submodules": false,
|
|
||||||
"revision": "393f20bc8805730b8183460235f26ae3fc171509",
|
|
||||||
"url": "https://github.com/nix-community/comma/archive/393f20bc8805730b8183460235f26ae3fc171509.tar.gz",
|
|
||||||
"hash": "sha256-OLerZuEhGTeSg7uiiEL+AV9iusBZLhwCx4pdYGTGRNU="
|
|
||||||
},
|
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -62,9 +49,9 @@
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "4775927ef576f6493b79b1d205e42493d6878d47",
|
"revision": "5a776450d904b7ccd377c2a759703152b2553e98",
|
||||||
"url": "https://github.com/nix-community/lanzaboote/archive/4775927ef576f6493b79b1d205e42493d6878d47.tar.gz",
|
"url": "https://github.com/nix-community/lanzaboote/archive/5a776450d904b7ccd377c2a759703152b2553e98.tar.gz",
|
||||||
"hash": "sha256-wGfVht5kOLc9t3GZxEr4IIq5QgHV6nB3w9qqhcVKloo="
|
"hash": "sha256-9Cc0YqL9ZUpaybJsrRJfXex91QlPmQNqpTLgw/KvJGA="
|
||||||
},
|
},
|
||||||
"lix": {
|
"lix": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -76,9 +63,9 @@
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "ef94901156c0c688ffffaa2c5caf1498119f01d4",
|
"revision": "43d6a79863d5e28b6a2cd98ecb22fe4ff491057e",
|
||||||
"url": "https://git.lix.systems/lix-project/lix/archive/ef94901156c0c688ffffaa2c5caf1498119f01d4.tar.gz",
|
"url": "https://git.lix.systems/lix-project/lix/archive/43d6a79863d5e28b6a2cd98ecb22fe4ff491057e.tar.gz",
|
||||||
"hash": "sha256-fCaJ29ZqevsIT1yqbpgdKeYr5GHF6sDhHlcXo2m+VuI="
|
"hash": "sha256-/C+d8ET7B935H+xY9NTlw2kFiCeDq380yhv9Ez4379k="
|
||||||
},
|
},
|
||||||
"lix-module": {
|
"lix-module": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -103,9 +90,9 @@
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "d9a869acec8dd35efa658234c158e6fc82e7064a",
|
"revision": "a90e3124111d9c3eb64e97a5334db09a8e2a4bae",
|
||||||
"url": "https://github.com/nix-community/nh/archive/d9a869acec8dd35efa658234c158e6fc82e7064a.tar.gz",
|
"url": "https://github.com/nix-community/nh/archive/a90e3124111d9c3eb64e97a5334db09a8e2a4bae.tar.gz",
|
||||||
"hash": "sha256-OIYIlXCYOHLvapwxKwX5nixMT1pf9hTx+/oWN9PHWPk="
|
"hash": "sha256-KKaUEg1/ntHVsG61CkKFr2mfdsoK9Nj5FM/W1PBhe5o="
|
||||||
},
|
},
|
||||||
"nil": {
|
"nil": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -155,8 +142,8 @@
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"type": "Channel",
|
"type": "Channel",
|
||||||
"name": "nixpkgs-unstable",
|
"name": "nixpkgs-unstable",
|
||||||
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre834687.6027c30c8e98/nixexprs.tar.xz",
|
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre833298.83e677f31c84/nixexprs.tar.xz",
|
||||||
"hash": "sha256-Ba/cFHWBoCISrKBcqU8kH/8LJXYUj2kfFz7l7a7RwMU="
|
"hash": "sha256-GCDhyo1oW8YXwYNKSsJzwy4ilTMnRrPh+6OTWatUYn4="
|
||||||
},
|
},
|
||||||
"npins": {
|
"npins": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -179,9 +166,9 @@
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "a5431dd02dc23d9ef1680e67777fed00fe5f7cda",
|
"revision": "db77c71c216530159c2dcf5b269ebb4706b2e2dd",
|
||||||
"url": null,
|
"url": null,
|
||||||
"hash": "sha256-vqkSDvh7hWhPvNjMjEDV4KbSCv2jyl2Arh73ZXe274k="
|
"hash": "sha256-QG14m53ZGp2Gk7xD2Q+Tf7RYCKfk/BYRaBtX3X4IKbc="
|
||||||
},
|
},
|
||||||
"spicetify-nix": {
|
"spicetify-nix": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -192,9 +179,9 @@
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "26c488b60360e15db372483d826cec89ac532980",
|
"revision": "51ac0aee7e7ee21ca0874b913f07f9004bc9311f",
|
||||||
"url": "https://github.com/Gerg-L/spicetify-nix/archive/26c488b60360e15db372483d826cec89ac532980.tar.gz",
|
"url": "https://github.com/Gerg-L/spicetify-nix/archive/51ac0aee7e7ee21ca0874b913f07f9004bc9311f.tar.gz",
|
||||||
"hash": "sha256-Ow+qyFckroPS4SQFHcFZ8mKh3HIQ2pQdC6DRjiYF9EE="
|
"hash": "sha256-1AK8+W7d5eNyGRkcWHa+9oIChLJbY6jt7ujSJo+ft4M="
|
||||||
},
|
},
|
||||||
"systems": {
|
"systems": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
ralc = pkgsFor.${system}.callPackage ./nix/package.nix { };
|
ralc = pkgsFor.${system}.callPackage ./nix/package.nix { };
|
||||||
});
|
});
|
||||||
|
|
||||||
devShells = mapAttrs (_: pkgs: {
|
devShells = mapAttrs (system: pkgs: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
cargo
|
cargo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue