fonts, steam: convert to nixos modules

This commit is contained in:
Katherina Walshe-Grey 2024-07-24 18:29:29 +01:00
parent 049e3ff091
commit e3068a144a
5 changed files with 35 additions and 15 deletions

View file

@ -5,7 +5,6 @@
[
./hardware-configuration.nix
./home.nix
../../services/evolution.nix
../../services/fonts.nix
../../services/steam.nix
./syncthing.nix
@ -16,6 +15,10 @@
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.systemd-boot.editor = false;
programs.evolution.enable = true;
qenya.services.fonts.enable = true;
qenya.services.steam.enable = true;
networking.networkmanager.enable = true;
i18n.defaultLocale = "en_GB.UTF-8";

View file

@ -1,5 +1,7 @@
{
imports = [
./fonts.nix
./forgejo.nix
./steam.nix
];
}

View file

@ -1,5 +0,0 @@
{ config, lib, pkgs, ... }:
{
programs.evolution.enable = true;
}

View file

@ -1,7 +1,17 @@
{ config, lib, pkgs, ... }:
let
cfg = config.qenya.services.fonts;
inherit (lib) mkIf mkEnableOption;
in
{
options.qenya.services.fonts = {
enable = mkEnableOption "Fonts";
};
config = mkIf cfg.enable {
fonts.packages = with pkgs; [
corefonts
];
};
}

View file

@ -1,6 +1,15 @@
{ config, lib, pkgs, ... }:
let
cfg = config.qenya.services.steam;
inherit (lib) mkIf mkEnableOption;
in
{
options.qenya.services.steam = {
enable = mkEnableOption "Steam";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
@ -8,4 +17,5 @@
};
services.joycond.enable = true;
};
}