Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christopher League
nixvm
Commits
640ec997
Commit
640ec997
authored
Dec 20, 2018
by
Christopher League
Browse files
include certain fonts from google
parent
32ff8464
Changes
4
Hide whitespace changes
Inline
Side-by-side
vm/desktop.nix
View file @
640ec997
...
...
@@ -15,6 +15,7 @@ in
"
${
home-manager
}
/nixos"
./backgrounds.nix
./skel.nix
./fonts.nix
];
config
=
{
...
...
vm/fonts.nix
0 → 100644
View file @
640ec997
{
pkgs
,
...
}:
{
fonts
=
{
enableFontDir
=
true
;
enableCoreFonts
=
true
;
enableDefaultFonts
=
true
;
enableGhostscriptFonts
=
true
;
fonts
=
[(
pkgs
.
callPackage
./fonts
{})];
};
}
vm/fonts/default.nix
0 → 100644
View file @
640ec997
{
pkgs
?
(
import
<
nixpkgs
>
{})
.
pkgs
,
lib
?
pkgs
.
lib
}:
let
subdir
=
"share/fonts/truetype"
;
families
=
[
"Alegreya"
"AlegreyaSans"
];
in
pkgs
.
stdenv
.
mkDerivation
{
name
=
"selected-google-fonts"
;
src
=
./.
;
buildInputs
=
[
pkgs
.
google-fonts
];
phases
=
[
"installPhase"
];
installPhase
=
''
mkdir -p $out/
${
subdir
}
${
lib
.
concatMapStringsSep
"
\n
"
(
f
:
"cp $buildInputs/
${
subdir
}
/
${
f
}
-*.ttf $out/
${
subdir
}
"
)
families
}
''
;
}
vm/www/style.css
View file @
640ec997
body
{
font-family
:
"
Liberation Serif
"
,
serif
;
width
:
56em
;
margin
:
auto
;
}
body
{
font-family
:
"
Alegreya
"
,
serif
;
width
:
56em
;
margin
:
auto
;
}
code
{
white-space
:
pre-wrap
;
font-family
:
"Liberation Mono"
,
monospace
;
}
pre
{
border
:
1px
solid
#ddd
;
background
:
#f7f7f7
;
padding
:
5px
;
}
a
:link
{
text-decoration
:
none
;}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment