hosts/hyacinth: split into modules
This commit is contained in:
parent
4ddd7b1366
commit
3d26dce8d6
6 changed files with 43 additions and 21 deletions
|
|
@ -17,14 +17,18 @@
|
||||||
audio
|
audio
|
||||||
base
|
base
|
||||||
ccache
|
ccache
|
||||||
|
corectrl
|
||||||
|
flatpak
|
||||||
greetd
|
greetd
|
||||||
gui
|
gui
|
||||||
input
|
input
|
||||||
kernel
|
kernel
|
||||||
nix
|
nix
|
||||||
packages
|
packages
|
||||||
|
printing
|
||||||
security
|
security
|
||||||
snapper
|
snapper
|
||||||
|
virtualisation
|
||||||
wireguard
|
wireguard
|
||||||
|
|
||||||
modules.services.postgres
|
modules.services.postgres
|
||||||
|
|
@ -35,34 +39,14 @@
|
||||||
|
|
||||||
../../users/rin
|
../../users/rin
|
||||||
];
|
];
|
||||||
programs.corectrl = {
|
|
||||||
enable = true;
|
|
||||||
gpuOverclock = {
|
|
||||||
enable = true;
|
|
||||||
ppfeaturemask = "0xffffffff";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.murmur = {
|
services.murmur = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = 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" ];
|
services.postgresql.ensureDatabases = [ "barista" "barista-dev" ];
|
||||||
|
|
||||||
|
# For steam fhs-env
|
||||||
nixpkgs.config.permittedInsecurePackages = [
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
"openssl-1.1.1v"
|
"openssl-1.1.1v"
|
||||||
"python-2.7.18.6-env"
|
|
||||||
"python-2.7.18.6"
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,8 @@ in {
|
||||||
./system/audio.nix
|
./system/audio.nix
|
||||||
./system/base.nix
|
./system/base.nix
|
||||||
./system/ccache.nix
|
./system/ccache.nix
|
||||||
|
./system/corectrl.nix
|
||||||
|
./system/flatpak.nix
|
||||||
./system/greetd.nix
|
./system/greetd.nix
|
||||||
./system/gui.nix
|
./system/gui.nix
|
||||||
./system/home-manager.nix
|
./system/home-manager.nix
|
||||||
|
|
@ -36,9 +38,11 @@ in {
|
||||||
./system/nix.nix
|
./system/nix.nix
|
||||||
./system/nix-stable.nix
|
./system/nix-stable.nix
|
||||||
./system/packages.nix
|
./system/packages.nix
|
||||||
|
./system/printing.nix
|
||||||
./system/security.nix
|
./system/security.nix
|
||||||
./system/snapper.nix
|
./system/snapper.nix
|
||||||
./system/transmission.nix
|
./system/transmission.nix
|
||||||
|
./system/virtualisation.nix
|
||||||
./system/wireguard.nix
|
./system/wireguard.nix
|
||||||
];
|
];
|
||||||
user = mkAttrsFromPaths [
|
user = mkAttrsFromPaths [
|
||||||
|
|
|
||||||
9
modules/system/corectrl.nix
Normal file
9
modules/system/corectrl.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ ... }: {
|
||||||
|
programs.corectrl = {
|
||||||
|
enable = true;
|
||||||
|
gpuOverclock = {
|
||||||
|
enable = true;
|
||||||
|
ppfeaturemask = "0xffffffff";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
7
modules/system/flatpak.nix
Normal file
7
modules/system/flatpak.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
services.flatpak.enable = true;
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/system/printing.nix
Normal file
9
modules/system/printing.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
services.printing = {
|
||||||
|
enable = true;
|
||||||
|
drivers = with pkgs; [
|
||||||
|
epson-escpr
|
||||||
|
me.epson-201112j
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
9
modules/system/virtualisation.nix
Normal file
9
modules/system/virtualisation.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
virtualisation = {
|
||||||
|
spiceUSBRedirection.enable = true;
|
||||||
|
libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
qemu.package = pkgs.qemu_kvm.override { smbdSupport = true; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue