Format using nixfmt rfc style
This commit is contained in:
parent
d07a224bbc
commit
f6be5f8b80
37 changed files with 934 additions and 612 deletions
|
|
@ -1,24 +1,29 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.media.emulators;
|
||||
in {
|
||||
let
|
||||
cfg = config.modules.media.emulators;
|
||||
in
|
||||
{
|
||||
options.modules.media.emulators = {
|
||||
psx.enable = mkBoolOpt false; # Playstation
|
||||
ds.enable = mkBoolOpt false; # Nintendo DS
|
||||
gc.enable = mkBoolOpt false; # GameCube
|
||||
gb.enable = mkBoolOpt false; # GameBoy + GameBoy Color
|
||||
gba.enable = mkBoolOpt false; # GameBoy Advance
|
||||
snes.enable = mkBoolOpt false; # Super Nintendo
|
||||
psx.enable = lib.my.mkBoolOpt false; # Playstation
|
||||
ds.enable = lib.my.mkBoolOpt false; # Nintendo DS
|
||||
gc.enable = lib.my.mkBoolOpt false; # GameCube
|
||||
gb.enable = lib.my.mkBoolOpt false; # GameBoy + GameBoy Color
|
||||
gba.enable = lib.my.mkBoolOpt false; # GameBoy Advance
|
||||
snes.enable = lib.my.mkBoolOpt false; # Super Nintendo
|
||||
};
|
||||
|
||||
config = {
|
||||
user.packages = with pkgs; [
|
||||
(mkIf cfg.psx.enable duckstation)
|
||||
(mkIf cfg.ds.enable desmume)
|
||||
(mkIf cfg.gc.enable dolphinEmu)
|
||||
(mkIf (cfg.gba.enable || cfg.gb.enable || cfg.snes.enable) higan)
|
||||
user.packages = [
|
||||
(lib.mkIf cfg.psx.enable pkgs.duckstation)
|
||||
(lib.mkIf cfg.ds.enable pkgs.desmume)
|
||||
(lib.mkIf cfg.gc.enable pkgs.dolphinEmu)
|
||||
(lib.mkIf (cfg.gba.enable || cfg.gb.enable || cfg.snes.enable) pkgs.higan)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,20 +1,25 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.media;
|
||||
in {
|
||||
let
|
||||
cfg = config.modules.media;
|
||||
in
|
||||
{
|
||||
options.modules.media = {
|
||||
steam.enable = mkBoolOpt false;
|
||||
lutris.enable = mkBoolOpt false;
|
||||
steam.enable = lib.my.mkBoolOpt false;
|
||||
lutris.enable = lib.my.mkBoolOpt false;
|
||||
};
|
||||
|
||||
config = {
|
||||
user.packages = with pkgs; [
|
||||
(mkIf cfg.steam.enable steam)
|
||||
(mkIf cfg.lutris.enable lutris)
|
||||
(mkIf cfg.lutris.enable wine)
|
||||
(mkIf (cfg.steam.enable || cfg.lutris.enable) protontricks)
|
||||
user.packages = [
|
||||
(lib.mkIf cfg.steam.enable pkgs.steam)
|
||||
(lib.mkIf cfg.lutris.enable pkgs.lutris)
|
||||
(lib.mkIf cfg.lutris.enable pkgs.wine)
|
||||
(lib.mkIf (cfg.steam.enable || cfg.lutris.enable) pkgs.protontricks)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,34 +1,38 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.media.mpd;
|
||||
in {
|
||||
options.modules.media.mpd = { enable = mkBoolOpt false; };
|
||||
config = mkIf cfg.enable {
|
||||
home-manager.users.${config.user.name} = { config, ... }: {
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
network.listenAddress = "any";
|
||||
musicDirectory = "${config.home.homeDirectory}/Nextcloud/Media/Music";
|
||||
playlistDirectory = "${config.home.homeDirectory}/Nextcloud/Playlists";
|
||||
extraConfig = ''
|
||||
max_output_buffer_size "16384"
|
||||
auto_update "yes"
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "pulse audio"
|
||||
device "pulse"
|
||||
mixer_type "hardware"
|
||||
}
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "toggle_visualizer"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
||||
'';
|
||||
let
|
||||
cfg = config.modules.media.mpd;
|
||||
in
|
||||
{
|
||||
options.modules.media.mpd = {
|
||||
enable = lib.my.mkBoolOpt false;
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${config.user.name} =
|
||||
{ config, ... }:
|
||||
{
|
||||
services.mpd = {
|
||||
enable = true;
|
||||
network.listenAddress = "any";
|
||||
musicDirectory = "${config.home.homeDirectory}/Nextcloud/Media/Music";
|
||||
playlistDirectory = "${config.home.homeDirectory}/Nextcloud/Playlists";
|
||||
extraConfig = ''
|
||||
max_output_buffer_size "16384"
|
||||
auto_update "yes"
|
||||
audio_output {
|
||||
type "pulse"
|
||||
name "pulse audio"
|
||||
device "pulse"
|
||||
mixer_type "hardware"
|
||||
}
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "toggle_visualizer"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,19 @@
|
|||
{ inputs, config, lib, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
with lib;
|
||||
with lib.my;
|
||||
let cfg = config.modules.media.ncmpcpp;
|
||||
in {
|
||||
options.modules.media.ncmpcpp = { enable = mkBoolOpt false; };
|
||||
let
|
||||
cfg = config.modules.media.ncmpcpp;
|
||||
in
|
||||
{
|
||||
options.modules.media.ncmpcpp = {
|
||||
enable = lib.my.mkBoolOpt false;
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.${config.user.name} = {
|
||||
|
||||
home = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue