forked from nico/dots
chore: organise modules
Organise modules in a significantly better way with categories.
This commit is contained in:
parent
7444260d7d
commit
3660ef23f1
33 changed files with 77 additions and 76 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../applications.nix ];
|
||||
imports = [ ./default.nix ];
|
||||
|
||||
# dock
|
||||
system.defaults.dock.persistent-apps = [
|
||||
|
|
@ -23,13 +23,7 @@
|
|||
"/Applications/Krita.app"
|
||||
"/Applications/Blender.app"
|
||||
"/Applications/OpenUTAU.app"
|
||||
];
|
||||
|
||||
# nix pkgs
|
||||
environment.systemPackages = with pkgs; [
|
||||
iina
|
||||
utm
|
||||
];
|
||||
];
|
||||
|
||||
# homebrew pkgs
|
||||
homebrew = {
|
||||
|
|
@ -16,5 +16,8 @@
|
|||
openutau
|
||||
obs-studio
|
||||
blender
|
||||
]) ++ lib.optionals pkgs.stdenv.isDarwin (with pkgs; [
|
||||
iina
|
||||
utm
|
||||
]);
|
||||
}
|
||||
12
modules/desktop/default.nix
Normal file
12
modules/desktop/default.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./pipewire.nix
|
||||
./flatpak.nix
|
||||
./fonts.nix
|
||||
];
|
||||
|
||||
# Enable font dir for compatability
|
||||
fonts.fontDir.enable = true;
|
||||
}
|
||||
5
modules/desktop/flatpak.nix
Normal file
5
modules/desktop/flatpak.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
services.flatpak.enable = true;
|
||||
}
|
||||
13
modules/desktop/pipewire.nix
Normal file
13
modules/desktop/pipewire.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# Enable sound.
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../games.nix ];
|
||||
imports = [ ./default.nix ];
|
||||
|
||||
homebrew.casks = [
|
||||
"whisky"
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../games.nix ];
|
||||
imports = [ ./default.nix ];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
heroic
|
||||
|
|
@ -10,5 +10,8 @@
|
|||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
extraPackages = [ pkgs.gamescope ];
|
||||
gamescopeSession.enable = true;
|
||||
extest.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Enable sound.
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
|
||||
# Applications
|
||||
programs.steam = {
|
||||
# doesn't do anything if steam isn't enabled so safe here
|
||||
extraPackages = [ pkgs.gamescope ];
|
||||
gamescopeSession.enable = true;
|
||||
extest.enable = true;
|
||||
};
|
||||
|
||||
# Enable font dir for compatability
|
||||
fonts.fontDir.enable = true;
|
||||
|
||||
services.flatpak.enable = true;
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
||||
|
|
@ -45,13 +45,6 @@
|
|||
};
|
||||
|
||||
|
||||
# Streaming frontend
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
group = "media";
|
||||
};
|
||||
|
||||
# Requesting Frontend
|
||||
services.jellyseerr = {
|
||||
enable = true;
|
||||
10
modules/services/media/jellyfin.nix
Normal file
10
modules/services/media/jellyfin.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# Streaming frontend
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
group = "media";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue