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
52
flake.nix
52
flake.nix
|
|
@ -20,25 +20,27 @@
|
|||
modules = [
|
||||
./hosts/nixos-common.nix
|
||||
|
||||
./modules/applications.nix
|
||||
./modules/firefox.nix
|
||||
./modules/fonts.nix
|
||||
./modules/linux/games.nix
|
||||
./modules/nix.nix
|
||||
./modules/applications/default.nix
|
||||
./modules/browser/firefox.nix
|
||||
./modules/games/linux.nix
|
||||
./modules/nix/linux.nix
|
||||
./modules/shell.nix
|
||||
|
||||
./modules/linux/arr.nix
|
||||
./modules/linux/glance.nix
|
||||
./modules/linux/avahi.nix
|
||||
# ./modules/linux/tuigreet.nix
|
||||
./modules/linux/desktop.nix
|
||||
./modules/linux/ssh.nix
|
||||
./modules/linux/opensnitch.nix
|
||||
./modules/linux/hyprland.nix
|
||||
./modules/linux/tailscale.nix
|
||||
./modules/linux/niri.nix
|
||||
./modules/linux/users.nix
|
||||
./modules/linux/secureboot.nix
|
||||
./modules/desktop/default.nix
|
||||
./modules/desktop/de/hyprland.nix
|
||||
./modules/desktop/de/niri.nix
|
||||
|
||||
./modules/services/media/arr.nix
|
||||
./modules/services/media/jellyfin.nix
|
||||
./modules/services/glance.nix
|
||||
./modules/services/ssh.nix
|
||||
|
||||
./modules/network/avahi.nix
|
||||
./modules/network/firewall/opensnitch.nix
|
||||
./modules/network/vpn/tailscale.nix
|
||||
|
||||
./modules/users/nico.nix
|
||||
./modules/hardware/secureboot.nix
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
|
||||
./hosts/disko-desktop.nix
|
||||
|
|
@ -51,16 +53,16 @@
|
|||
darwinConfigurations.faye = nix-darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
modules = [
|
||||
./modules/fonts.nix
|
||||
./modules/nix.nix
|
||||
./modules/desktop/fonts.nix
|
||||
./modules/nix/darwin.nix
|
||||
./modules/shell.nix
|
||||
|
||||
./modules/darwin/games.nix
|
||||
./modules/darwin/applications.nix
|
||||
./modules/darwin/desktop.nix
|
||||
./modules/darwin/hardware.nix
|
||||
./modules/darwin/nix.nix
|
||||
./modules/darwin/tailscale.nix
|
||||
./modules/games/darwin.nix
|
||||
./modules/applications/darwin.nix
|
||||
./modules/desktop/de/darwin.nix
|
||||
./modules/hardware/darwin.nix
|
||||
./modules/nix/darwin.nix
|
||||
./modules/network/vpn/tailscale.nix
|
||||
|
||||
./hosts/faye/conf.nix
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ../applications.nix ];
|
||||
imports = [ ./default.nix ];
|
||||
|
||||
# dock
|
||||
system.defaults.dock.persistent-apps = [
|
||||
|
|
@ -25,12 +25,6 @@
|
|||
"/Applications/OpenUTAU.app"
|
||||
];
|
||||
|
||||
# nix pkgs
|
||||
environment.systemPackages = with pkgs; [
|
||||
iina
|
||||
utm
|
||||
];
|
||||
|
||||
# homebrew pkgs
|
||||
homebrew = {
|
||||
enable = true;
|
||||
|
|
@ -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