hosts/hyacinth: split into modules

This commit is contained in:
LavaDesu 2023-09-26 20:42:01 +07:00
parent 4ddd7b1366
commit 3d26dce8d6
Signed by: cilly
GPG key ID: 6500251E087653C9
6 changed files with 43 additions and 21 deletions

View file

@ -17,14 +17,18 @@
audio
base
ccache
corectrl
flatpak
greetd
gui
input
kernel
nix
packages
printing
security
snapper
virtualisation
wireguard
modules.services.postgres
@ -35,34 +39,14 @@
../../users/rin
];
programs.corectrl = {
enable = true;
gpuOverclock = {
enable = true;
ppfeaturemask = "0xffffffff";
};
};
services.murmur = {
enable = true;
openFirewall = true;
};
virtualisation = {
spiceUSBRedirection.enable = true;
libvirtd = {
enable = true;
qemu.package = pkgs.qemu_kvm.override { smbdSupport = true; };
};
};
services.flatpak.enable = true;
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
services.printing.enable = true;
services.printing.drivers = [ pkgs.epson-escpr pkgs.me.epson-201112j ];
services.postgresql.ensureDatabases = [ "barista" "barista-dev" ];
# For steam fhs-env
nixpkgs.config.permittedInsecurePackages = [
"openssl-1.1.1v"
"python-2.7.18.6-env"
"python-2.7.18.6"
];
}

View file

@ -28,6 +28,8 @@ in {
./system/audio.nix
./system/base.nix
./system/ccache.nix
./system/corectrl.nix
./system/flatpak.nix
./system/greetd.nix
./system/gui.nix
./system/home-manager.nix
@ -36,9 +38,11 @@ in {
./system/nix.nix
./system/nix-stable.nix
./system/packages.nix
./system/printing.nix
./system/security.nix
./system/snapper.nix
./system/transmission.nix
./system/virtualisation.nix
./system/wireguard.nix
];
user = mkAttrsFromPaths [

View file

@ -0,0 +1,9 @@
{ ... }: {
programs.corectrl = {
enable = true;
gpuOverclock = {
enable = true;
ppfeaturemask = "0xffffffff";
};
};
}

View file

@ -0,0 +1,7 @@
{ pkgs, ... }: {
services.flatpak.enable = true;
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
};
}

View file

@ -0,0 +1,9 @@
{ pkgs, ... }: {
services.printing = {
enable = true;
drivers = with pkgs; [
epson-escpr
me.epson-201112j
];
};
}

View file

@ -0,0 +1,9 @@
{ pkgs, ... }: {
virtualisation = {
spiceUSBRedirection.enable = true;
libvirtd = {
enable = true;
qemu.package = pkgs.qemu_kvm.override { smbdSupport = true; };
};
};
}