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
|
||||
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"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 [
|
||||
|
|
|
|||
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