Move NixOS modules

This commit is contained in:
Oliver Davies 2024-09-23 08:49:12 +01:00
parent e17aa080ba
commit 8b0d618672
5 changed files with 9 additions and 5 deletions

View file

@ -0,0 +1 @@
{ imports = [ ./docker.nix ]; }

View file

@ -0,0 +1,6 @@
{
imports = [
../.
./fonts.nix
];
}

View file

@ -0,0 +1,31 @@
{ pkgs, ... }:
let
theme = import ../../../lib/theme { inherit pkgs; };
in
{
fonts = {
fontconfig = {
enable = true;
defaultFonts = {
monospace = [ theme.fonts.monospace.name ];
};
};
packages =
with pkgs;
[
(nerdfonts.override {
fonts = [
"AnonymousPro"
"FiraCode"
"GeistMono"
"IntelOneMono"
"Iosevka"
"JetBrainsMono"
];
})
]
++ [ theme.fonts.monospace.package ];
};
}

10
modules/nixos/docker.nix Normal file
View file

@ -0,0 +1,10 @@
{
virtualisation.docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
}