Compare commits
9 commits
03ecaf76d6
...
c621860314
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c621860314 |
||
![]() |
03067acb8d |
||
![]() |
6ae25f23cf |
||
![]() |
e69e385f93 |
||
![]() |
dc1fdbe07b |
||
![]() |
cffcf81824 |
||
1524aa6c1f |
|||
347d9fcb6f |
|||
cc13ebdfe1 |
15 changed files with 180 additions and 128 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 (k: v: v { inherit pkgs; }) src;
|
sources = mapAttrs (_: 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 =
|
||||||
system: hostname:
|
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 "x86_64-linux" "temperance";
|
temperance = mkSystem "temperance";
|
||||||
hermit = mkSystem "x86_64-linux" "hermit";
|
hermit = mkSystem "hermit";
|
||||||
tower = mkSystem "aarch64-linux" "tower";
|
tower = mkSystem "tower";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
## 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,7 +16,6 @@
|
||||||
cbonsai
|
cbonsai
|
||||||
cinny-desktop
|
cinny-desktop
|
||||||
cmus
|
cmus
|
||||||
comma
|
|
||||||
difftastic
|
difftastic
|
||||||
dua
|
dua
|
||||||
evince
|
evince
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
calc
|
calc
|
||||||
calibre
|
calibre
|
||||||
carapace
|
carapace
|
||||||
comma
|
|
||||||
digikam
|
digikam
|
||||||
difftastic
|
difftastic
|
||||||
dnsutils
|
dnsutils
|
||||||
|
|
|
@ -6,9 +6,10 @@
|
||||||
}:
|
}:
|
||||||
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: previousAttrs: {
|
finalAttrs: _: {
|
||||||
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";
|
||||||
|
@ -25,28 +26,6 @@ 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 =
|
||||||
|
@ -70,7 +49,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";
|
||||||
|
@ -158,7 +137,10 @@ let
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
language-servers = [ "nil" ];
|
language-servers = [
|
||||||
|
"nil"
|
||||||
|
"deadnix"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "qml";
|
name = "qml";
|
||||||
|
@ -280,11 +262,11 @@ let
|
||||||
config.nil = {
|
config.nil = {
|
||||||
formatting.command = [ "${getExe nixfmt}" ];
|
formatting.command = [ "${getExe nixfmt}" ];
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
bindingEndHintMinLines = 3;
|
bindingEndHintMinLines = 10;
|
||||||
};
|
};
|
||||||
nix.flake = {
|
nix.flake = {
|
||||||
autoArchive = true;
|
autoArchive = true;
|
||||||
# autoEvalInputs = true;
|
autoEvalInputs = true;
|
||||||
nixpkgsInputName = "nixpkgs";
|
nixpkgsInputName = "nixpkgs";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -311,10 +293,8 @@ let
|
||||||
args = [ "server" ];
|
args = [ "server" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
qmlls = {
|
qmlls.command = getExe' pkgs.kdePackages.qtdeclarative "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 = {
|
||||||
|
@ -363,7 +343,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
theme = "nord";
|
theme = "gruvbox_dark_hard";
|
||||||
editor = {
|
editor = {
|
||||||
cursorline = true;
|
cursorline = true;
|
||||||
color-modes = true;
|
color-modes = true;
|
||||||
|
@ -372,18 +352,28 @@ let
|
||||||
lsp = {
|
lsp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
auto-signature-help = true;
|
auto-signature-help = true;
|
||||||
display-inlay-hints = false;
|
display-inlay-hints = true;
|
||||||
display-messages = true;
|
display-messages = true;
|
||||||
|
display-progress-messages = true;
|
||||||
snippets = true;
|
snippets = true;
|
||||||
};
|
};
|
||||||
file-picker = {
|
file-picker = {
|
||||||
hidden = true;
|
hidden = false;
|
||||||
};
|
};
|
||||||
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;
|
||||||
|
@ -397,22 +387,26 @@ 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 = "nightfox";
|
theme = "GruvboxDarkHard";
|
||||||
window-decoration = "none";
|
window-decoration = "none";
|
||||||
window-padding-balance = true;
|
window-padding-balance = true;
|
||||||
window-padding-x = 8;
|
window-padding-x = 8;
|
||||||
|
|
|
@ -1,10 +1,36 @@
|
||||||
{
|
{
|
||||||
|
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 =
|
||||||
|
@ -40,6 +66,7 @@ in
|
||||||
glow
|
glow
|
||||||
# dua-cli
|
# dua-cli
|
||||||
dust
|
dust
|
||||||
|
iamb
|
||||||
kondo
|
kondo
|
||||||
# better grep
|
# better grep
|
||||||
ripgrep
|
ripgrep
|
||||||
|
@ -75,5 +102,8 @@ in
|
||||||
unzip
|
unzip
|
||||||
zip
|
zip
|
||||||
]
|
]
|
||||||
++ [ nixfmt ];
|
++ [
|
||||||
|
nixfmt
|
||||||
|
comma
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
{ 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-rYZolA7maYEjzfx7mKJtEfyK62kfpGxvQ1eaC9qlZNw=";
|
hash = "sha256-8gUmye/Z8H1Xe6U1CNAq907n3jt2TnPtzgpz6KhdiDU=";
|
||||||
};
|
};
|
||||||
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
|
||||||
"L+ '${customDir}/public/assets/img/logo.svg' - - - - ${img}/logo.svg"
|
"f '${customDir}/public/assets/img/logo.svg' - - - - ${img}/logo.svg"
|
||||||
"L+ '${customDir}/public/assets/img/logo.png' - - - - ${img}/logo.png"
|
"f '${customDir}/public/assets/img/logo.png' - - - - ${img}/logo.png"
|
||||||
"L+ '${customDir}/public/assets/img/apple-touch-icon' - - - - ${img}/logo.png"
|
"f '${customDir}/public/assets/img/apple-touch-icon' - - - - ${img}/logo.png"
|
||||||
"L+ '${customDir}/public/assets/img/favicon.svg' - - - - ${img}/logo.svg"
|
"f '${customDir}/public/assets/img/favicon.svg' - - - - ${img}/logo.svg"
|
||||||
"L+ '${customDir}/public/assets/img/favicon.png' - - - - ${img}/logo.png"
|
"f '${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} - -"
|
||||||
|
|
||||||
"L+ '${customDir}/public/assets/css/theme-codeberg-dark.css' - - - - ${theme-codeberg-dark}"
|
"f '${customDir}/public/assets/css/theme-codeberg-dark.css' - - - - ${theme-codeberg-dark}"
|
||||||
"L+ '${customDir}/public/assets/css/codeberg/base-brand.css' - - - - ${base-brand}"
|
"f '${customDir}/public/assets/css/codeberg/base-brand.css' - - - - ${base-brand}"
|
||||||
"L+ '${customDir}/public/assets/css/codeberg/dark-variables.css' - - - - ${dark-variables}"
|
"f '${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
|
||||||
"L+ '${customDir}/templates/home.tmpl' - - - - ${./templates}/home.tmpl"
|
"f '${customDir}/templates/home.tmpl' - - - - ${./templates}/home.tmpl"
|
||||||
"L+ '${customDir}/templates/repo/header.tmpl' - - - - ${./templates/repo}/header.tmpl"
|
"f '${customDir}/templates/repo/header.tmpl' - - - - ${./templates/repo}/header.tmpl"
|
||||||
|
|
||||||
# Fuck off scrapers
|
# Fuck off scrapers
|
||||||
"L+ ${customDir}/public/robots.txt - - - - ${robots.outPath}"
|
"f ${customDir}/public/robots.txt - - - - ${robots.outPath}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkDefault mkIf;
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
cfg = config.modules.system.hardware;
|
cfg = config.modules.system.hardware;
|
||||||
|
@ -18,12 +19,21 @@ in
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
hardware = {
|
hardware = {
|
||||||
graphics.enable = true;
|
graphics = {
|
||||||
nvidia = mkIf cfg.nvidia.enable {
|
enable = true;
|
||||||
# we want the open-source drivers
|
extraPackages = [ pkgs.nvidia-vaapi-driver ];
|
||||||
open = true;
|
};
|
||||||
|
|
||||||
|
nvidia = mkIf cfg.nvidia.enable {
|
||||||
|
open = mkDefault 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
|
||||||
|
@ -34,6 +44,27 @@ in
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.xserver.videoDrivers = mkIf cfg.nvidia.enable [ "nvidia" ];
|
services.xserver.videoDrivers = [
|
||||||
|
"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,9 +20,8 @@ in
|
||||||
readOnly = true;
|
readOnly = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
config.nixpkgs.pkgs = (
|
config.nixpkgs.pkgs = import sources.nixpkgs {
|
||||||
import sources.nixpkgs {
|
inherit (pkgs.stdenv) hostPlatform;
|
||||||
hostPlatform = pkgs.stdenv.hostPlatform;
|
|
||||||
overlays = [ ];
|
overlays = [ ];
|
||||||
config = {
|
config = {
|
||||||
# Configuration reference:
|
# Configuration reference:
|
||||||
|
@ -57,6 +56,5 @@ in
|
||||||
# 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,9 +30,6 @@ 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,5 +1,18 @@
|
||||||
{
|
{
|
||||||
"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": {
|
||||||
|
@ -49,9 +62,9 @@
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "5a776450d904b7ccd377c2a759703152b2553e98",
|
"revision": "4775927ef576f6493b79b1d205e42493d6878d47",
|
||||||
"url": "https://github.com/nix-community/lanzaboote/archive/5a776450d904b7ccd377c2a759703152b2553e98.tar.gz",
|
"url": "https://github.com/nix-community/lanzaboote/archive/4775927ef576f6493b79b1d205e42493d6878d47.tar.gz",
|
||||||
"hash": "sha256-9Cc0YqL9ZUpaybJsrRJfXex91QlPmQNqpTLgw/KvJGA="
|
"hash": "sha256-wGfVht5kOLc9t3GZxEr4IIq5QgHV6nB3w9qqhcVKloo="
|
||||||
},
|
},
|
||||||
"lix": {
|
"lix": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -63,9 +76,9 @@
|
||||||
},
|
},
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "43d6a79863d5e28b6a2cd98ecb22fe4ff491057e",
|
"revision": "ef94901156c0c688ffffaa2c5caf1498119f01d4",
|
||||||
"url": "https://git.lix.systems/lix-project/lix/archive/43d6a79863d5e28b6a2cd98ecb22fe4ff491057e.tar.gz",
|
"url": "https://git.lix.systems/lix-project/lix/archive/ef94901156c0c688ffffaa2c5caf1498119f01d4.tar.gz",
|
||||||
"hash": "sha256-/C+d8ET7B935H+xY9NTlw2kFiCeDq380yhv9Ez4379k="
|
"hash": "sha256-fCaJ29ZqevsIT1yqbpgdKeYr5GHF6sDhHlcXo2m+VuI="
|
||||||
},
|
},
|
||||||
"lix-module": {
|
"lix-module": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -90,9 +103,9 @@
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "a90e3124111d9c3eb64e97a5334db09a8e2a4bae",
|
"revision": "d9a869acec8dd35efa658234c158e6fc82e7064a",
|
||||||
"url": "https://github.com/nix-community/nh/archive/a90e3124111d9c3eb64e97a5334db09a8e2a4bae.tar.gz",
|
"url": "https://github.com/nix-community/nh/archive/d9a869acec8dd35efa658234c158e6fc82e7064a.tar.gz",
|
||||||
"hash": "sha256-KKaUEg1/ntHVsG61CkKFr2mfdsoK9Nj5FM/W1PBhe5o="
|
"hash": "sha256-OIYIlXCYOHLvapwxKwX5nixMT1pf9hTx+/oWN9PHWPk="
|
||||||
},
|
},
|
||||||
"nil": {
|
"nil": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -142,8 +155,8 @@
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"type": "Channel",
|
"type": "Channel",
|
||||||
"name": "nixpkgs-unstable",
|
"name": "nixpkgs-unstable",
|
||||||
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre833298.83e677f31c84/nixexprs.tar.xz",
|
"url": "https://releases.nixos.org/nixpkgs/nixpkgs-25.11pre834687.6027c30c8e98/nixexprs.tar.xz",
|
||||||
"hash": "sha256-GCDhyo1oW8YXwYNKSsJzwy4ilTMnRrPh+6OTWatUYn4="
|
"hash": "sha256-Ba/cFHWBoCISrKBcqU8kH/8LJXYUj2kfFz7l7a7RwMU="
|
||||||
},
|
},
|
||||||
"npins": {
|
"npins": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -166,9 +179,9 @@
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "db77c71c216530159c2dcf5b269ebb4706b2e2dd",
|
"revision": "a5431dd02dc23d9ef1680e67777fed00fe5f7cda",
|
||||||
"url": null,
|
"url": null,
|
||||||
"hash": "sha256-QG14m53ZGp2Gk7xD2Q+Tf7RYCKfk/BYRaBtX3X4IKbc="
|
"hash": "sha256-vqkSDvh7hWhPvNjMjEDV4KbSCv2jyl2Arh73ZXe274k="
|
||||||
},
|
},
|
||||||
"spicetify-nix": {
|
"spicetify-nix": {
|
||||||
"type": "Git",
|
"type": "Git",
|
||||||
|
@ -179,9 +192,9 @@
|
||||||
},
|
},
|
||||||
"branch": "master",
|
"branch": "master",
|
||||||
"submodules": false,
|
"submodules": false,
|
||||||
"revision": "51ac0aee7e7ee21ca0874b913f07f9004bc9311f",
|
"revision": "26c488b60360e15db372483d826cec89ac532980",
|
||||||
"url": "https://github.com/Gerg-L/spicetify-nix/archive/51ac0aee7e7ee21ca0874b913f07f9004bc9311f.tar.gz",
|
"url": "https://github.com/Gerg-L/spicetify-nix/archive/26c488b60360e15db372483d826cec89ac532980.tar.gz",
|
||||||
"hash": "sha256-1AK8+W7d5eNyGRkcWHa+9oIChLJbY6jt7ujSJo+ft4M="
|
"hash": "sha256-Ow+qyFckroPS4SQFHcFZ8mKh3HIQ2pQdC6DRjiYF9EE="
|
||||||
},
|
},
|
||||||
"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 (system: pkgs: {
|
devShells = mapAttrs (_: 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