here we go
This commit is contained in:
4
hosts/m3-kratos/services/containers/default.nix
Normal file
4
hosts/m3-kratos/services/containers/default.nix
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
imports = [
|
||||
];
|
||||
}
|
30
hosts/m3-kratos/services/default.nix
Normal file
30
hosts/m3-kratos/services/default.nix
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
imports = [
|
||||
./containers
|
||||
./n8n.nix
|
||||
./sound.nix
|
||||
./udev.nix
|
||||
];
|
||||
services = {
|
||||
hypridle.enable = true;
|
||||
printing.enable = true;
|
||||
gvfs.enable = true;
|
||||
trezord.enable = true;
|
||||
gnome.gnome-keyring.enable = true;
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
publish = {
|
||||
addresses = true;
|
||||
workstation = true;
|
||||
userServices = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
systemd.sleep.extraConfig = ''
|
||||
AllowSuspend=no
|
||||
AllowHibernation=no
|
||||
AllowHybridSleep=no
|
||||
AllowSuspendThenHibernate=no
|
||||
'';
|
||||
}
|
11
hosts/m3-kratos/services/n8n.nix
Normal file
11
hosts/m3-kratos/services/n8n.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
services.n8n = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
systemd.services.n8n = {
|
||||
environment = {
|
||||
N8N_SECURE_COOKIE = "false";
|
||||
};
|
||||
};
|
||||
}
|
14
hosts/m3-kratos/services/sound.nix
Normal file
14
hosts/m3-kratos/services/sound.nix
Normal file
@ -0,0 +1,14 @@
|
||||
{pkgs, ...}: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
speechd
|
||||
];
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = false;
|
||||
wireplumber.enable = true;
|
||||
};
|
||||
}
|
8
hosts/m3-kratos/services/udev.nix
Normal file
8
hosts/m3-kratos/services/udev.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{pkgs, ...}: {
|
||||
services.udev.extraRules = ''
|
||||
SUBSYSTEM=="usb", MODE="0666
|
||||
'';
|
||||
environment.systemPackages = with pkgs; [
|
||||
zsa-udev-rules
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user