mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 11:45:06 +01:00
Compare commits
2 commits
811bad1317
...
7b5e96646f
| Author | SHA1 | Date | |
|---|---|---|---|
| 7b5e96646f | |||
| aeef4ade19 |
3 changed files with 9 additions and 59 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
pkgs: {
|
pkgs: {
|
||||||
cargo-bisect-rustc = import ./cargo-bisect-rustc/default.nix pkgs;
|
cargo-bisect-rustc = import ./cargo-bisect-rustc/default.nix pkgs;
|
||||||
monaspace = import ./monaspace.nix pkgs;
|
|
||||||
sl = import ./sl { inherit pkgs; };
|
sl = import ./sl { inherit pkgs; };
|
||||||
run = import ./run { inherit pkgs; };
|
run = import ./run { inherit pkgs; };
|
||||||
unpem = import ./unpem { inherit pkgs; };
|
unpem = import ./unpem { inherit pkgs; };
|
||||||
|
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
||||||
# Copied from https://github.com/NixOS/nixpkgs/blob/703b9db6c5154530264bd7b6b09552596d0e5ede/pkgs/by-name/mo/monaspace/package.nix,
|
|
||||||
# in nixos-unstable soon
|
|
||||||
{ lib, stdenv, fetchzip, ... }:
|
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
|
||||||
pname = "monaspace";
|
|
||||||
version = "1.000";
|
|
||||||
|
|
||||||
src = fetchzip {
|
|
||||||
url = "https://github.com/githubnext/monaspace/releases/download/v${finalAttrs.version}/monaspace-v${finalAttrs.version}.zip";
|
|
||||||
stripRoot = false;
|
|
||||||
hash = "sha256-H8NOS+pVkrY9DofuJhPR2OlzkF4fMdmP2zfDBfrk83A=";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [ "out" "woff" ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
runHook preInstall
|
|
||||||
pushd monaspace-v${finalAttrs.version}/fonts/
|
|
||||||
install -Dm644 otf/*.otf -t $out/share/fonts/opentype
|
|
||||||
install -Dm644 variable/*.ttf -t $out/share/fonts/truetype
|
|
||||||
install -Dm644 webfonts/*.woff -t $woff/share/fonts/woff
|
|
||||||
popd
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "An innovative superfamily of fonts for code";
|
|
||||||
longDescription = ''
|
|
||||||
Since the earliest days of the teletype machine, code has been set in
|
|
||||||
monospaced type — letters, on a grid. Monaspace is a new type system that
|
|
||||||
advances the state of the art for the display of code on screen.
|
|
||||||
Every advancement in the technology of computing has been accompanied by
|
|
||||||
advancements to the display and editing of code. CRTs made screen editors
|
|
||||||
possible. The advent of graphical user interfaces gave rise to integrated
|
|
||||||
development environments.
|
|
||||||
Even today, we still have limited options when we want to layer additional
|
|
||||||
meaning on top of code. Syntax highlighting was invented in 1982 to help
|
|
||||||
children to code in BASIC. But beyond colors, most editors must
|
|
||||||
communicate with developers through their interfaces — hovers, underlines,
|
|
||||||
and other graphical decorations.
|
|
||||||
Monaspace offers a more expressive palette for code and the tools we use
|
|
||||||
to work with it.
|
|
||||||
'';
|
|
||||||
homepage = "https://monaspace.githubnext.com/";
|
|
||||||
license = lib.licenses.ofl;
|
|
||||||
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
||||||
platforms = lib.platforms.all;
|
|
||||||
};
|
|
||||||
})
|
|
||||||
|
|
@ -1,11 +1,7 @@
|
||||||
# This is your system's configuration file.
|
# This is your system's configuration file.
|
||||||
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
|
||||||
|
|
||||||
{ inputs, lib, config, pkgs, ... }:
|
{ inputs, lib, config, pkgs, ... }: {
|
||||||
let
|
|
||||||
customPkgs = import ../custom-pkgs/default.nix pkgs;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
# You can import other NixOS modules here
|
# You can import other NixOS modules here
|
||||||
imports = [
|
imports = [
|
||||||
# If you want to use modules from other flakes (such as nixos-hardware):
|
# If you want to use modules from other flakes (such as nixos-hardware):
|
||||||
|
|
@ -118,6 +114,7 @@ in
|
||||||
|
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enable32Bit = true; # for games stores??
|
||||||
extraPackages = with pkgs; [
|
extraPackages = with pkgs; [
|
||||||
vaapiVdpau
|
vaapiVdpau
|
||||||
];
|
];
|
||||||
|
|
@ -171,7 +168,11 @@ in
|
||||||
#media-session.enable = true;
|
#media-session.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
fonts.packages = with pkgs; [ fira-code customPkgs.monaspace ];
|
fonts = {
|
||||||
|
enableDefaultPackages = true;
|
||||||
|
packages = with pkgs; [ fira-code monaspace font-awesome ];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
services.nixseparatedebuginfod.enable = true;
|
services.nixseparatedebuginfod.enable = true;
|
||||||
|
|
||||||
|
|
@ -236,7 +237,7 @@ in
|
||||||
# inputs.firefox.packages.${pkgs.system}.firefox-nightly-bin
|
# inputs.firefox.packages.${pkgs.system}.firefox-nightly-bin
|
||||||
firefox
|
firefox
|
||||||
git
|
git
|
||||||
(linuxKernel.packagesFor linuxKernel.kernels.linux_latest).perf
|
perf
|
||||||
fish
|
fish
|
||||||
unzip
|
unzip
|
||||||
(steam.override {
|
(steam.override {
|
||||||
|
|
@ -244,6 +245,7 @@ in
|
||||||
}).run
|
}).run
|
||||||
# Wine for 32 and 64 bit applications
|
# Wine for 32 and 64 bit applications
|
||||||
wineWowPackages.stable
|
wineWowPackages.stable
|
||||||
|
lutris
|
||||||
virt-manager
|
virt-manager
|
||||||
podman
|
podman
|
||||||
neofetch # for the grub theme
|
neofetch # for the grub theme
|
||||||
|
|
@ -257,7 +259,6 @@ in
|
||||||
alacritty
|
alacritty
|
||||||
fuzzel
|
fuzzel
|
||||||
xwayland-satellite
|
xwayland-satellite
|
||||||
font-awesome
|
|
||||||
mpv
|
mpv
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue