Move Nix files into a nix directory

Move everything from `config` to the root level.
This commit is contained in:
Oliver Davies 2024-11-20 21:37:15 +00:00
parent 9f47df62b5
commit 69a397e624
124 changed files with 14 additions and 14 deletions

View file

@ -0,0 +1,9 @@
{
imports = [
../.
./fonts.nix
./gitea.nix
./jellyfin.nix
./immich.nix
];
}

View file

@ -0,0 +1,36 @@
{ pkgs, ... }:
let
theme = import ../../../lib/theme { inherit pkgs; };
in
{
environment.systemPackages = with pkgs; [
terminus_font
terminus_font_ttf
];
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 ];
};
}

View file

@ -0,0 +1,17 @@
{ pkgs, ... }:
{
services.gitea = {
enable = true;
settings = {
server = {
HTTP_PORT = 2222;
};
service = {
DISABLE_REGISTRATION = true;
};
};
};
}

View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
services.immich.enable = true;
environment.systemPackages = [ pkgs.immich-cli ];
}

View file

@ -0,0 +1,6 @@
{
services.jellyfin = {
enable = true;
openFirewall = true;
};
}