Added NixOS configs

This commit is contained in:
2021-03-31 05:41:15 +05:30
commit 2680d535b5
21 changed files with 1902 additions and 0 deletions

1462
Packages/colemak-dh.map Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
{lib,stdenv,fetchFromGitHub}:
stdenv.mkDerivation rec{
name = "customscripts";
src = ./scripts;
unpackPhase = ":";
installPhase = ''
mkdir -p $out/bin
cp -r $src/* $out/bin
for x in $out/bin/*;do chmod +x "$x";done
'';
# src = fetchFromGitHub {
# owner = "idcretard";
# repo = "custom-scripts";
# rev = "86eaba74a01c8bafd8c81885eddbe9cd6f381e64";
# sha256 = "1g1z3mlp7h2ig1rmgabsbhcdnpgy65yki0dj3pr100jw202i6jqq";
# };
}

View File

@@ -0,0 +1,30 @@
/* See LICENSE file for copyright and license details. */
/* Default settings; can be overriden by command line. */
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
static int centered = 1; /* -c option; centers dmenu on screen */
static int min_width = 500; /* minimum width when centered */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
"Consolas:pixelsize=15"
};
static const char *prompt = NULL; /* -p option; prompt to the left of input field */
static const char *colors[SchemeLast][2] = {
/* fg bg */
[SchemeNorm] = { "#bbbbbb", "#1d2021" },
[SchemeSel] = { "#1d2021", "#ebdbb2" },
// [SchemeSelHighlight] = { "#000080", "#ebdbb2" },
// [SchemeNormHighlight] = { "#ffc978", "#1d2021" },
[SchemeOut] = { "#000000", "#00ffff" },
// Settings[SchemeOutHighlight] = { "#ffc978", "#00ffff" },
};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines = 0;
/*
* Characters not considered part of a word while deleting words
* for example: " /?\"&[]"
*/
static const char worddelimiters[] = " ";
/* Size of the window border */
static const unsigned int border_width = 4;

View File

@@ -0,0 +1,26 @@
{lib, stdenv, fetchFromGitHub, discord-rpc, cmake, libmpdclient}:
with lib;
stdenv.mkDerivation rec{
name = "mpd_discord_richpresence";
src = fetchFromGitHub {
owner = "justas-d";
repo = "mpd-rich-presence-discord";
rev = "ced628d3eaf3f18c5eff286b0955c605616348ee";
sha256 = "0vl31sdgxalbnc4d4fggzqs2vsssibn53pjm6wj596cfkfpdf4y3";
};
buildInputs = [
libmpdclient
cmake
discord-rpc
];
configurePhase = ''
cmake .
'';
buildPhase = ''
make
'';
installPhase = ''
mkdir -p $out/bin
cp mpd_discord_richpresence $out/bin/
'';
}

37
Packages/override.nix Normal file
View File

@@ -0,0 +1,37 @@
{lib, config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
(callPackage ./customscripts.nix {})
(callPackage ./mpd_discord_richpresence.nix {})
(dwm.overrideAttrs (oldAttrs: rec {
src = fetchFromGitHub {
owner = "idcretard";
repo = "dwm";
rev = "363951cb05142f4c423af561a05658e74be7c768";
sha256 ="003sl6w5dkycw8wcymvhi843xjngsys6qsl3fc5b9vpyd1l7i0sr";
};
}))
(st.overrideAttrs (oldAttrs: rec {
src = fetchFromGitHub {
owner = "idcretard";
repo = "st";
rev = "0cd1e394e6d07c5f605ae23070c40de9690bafb1";
sha256 = "0riqg63aghx71v3rrpic3mxhcxqhry20312bicwbf3ks7ndl13hi";
};
}))
(dmenu.overrideAttrs (oldAttrs: rec {
configFile = writeText "config.def.h" (builtins.readFile ./dmenu/config.def.h);
postPatch = "${oldAttrs.postPatch}\n cp ${configFile} config.def.h";
}))
(kbd.overrideAttrs (oldAttrs: rec{
buildInputs = oldAttrs.buildInputs ++ [ gzip ];
colemak-dh = writeText "colemak-dh.map" (builtins.readFile ./colemak-dh.map);
postInstall = "${oldAttrs.postInstall}\n cp ${colemak-dh} $out/share/keymaps/i386/colemak/colemak-dh.map\n gzip $out/share/keymaps/i386/colemak/colemak-dh.map";
}))
(ncmpcpp.overrideAttrs (_ :{
visualizerSupport = true;
clockSupport = true;
}))
];
}

1
Packages/scripts Submodule

Submodule Packages/scripts added at 51197513c5