wanda: new host (NixOS-WSL)
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
d3588098ee
commit
e3e1612691
66 changed files with 914 additions and 0 deletions
18
wanda/services/greetd.nix
Normal file
18
wanda/services/greetd.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
greetd = {
|
||||
enable = true;
|
||||
restart = false;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${lib.getExe pkgs.tuigreet} -r -t -c ${lib.getExe' pkgs.hyprland "start-hyprland"} --greet-align center";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
7
wanda/services/irqbalance.nix
Normal file
7
wanda/services/irqbalance.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
_: {
|
||||
services = {
|
||||
irqbalance = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
15
wanda/services/libinput.nix
Normal file
15
wanda/services/libinput.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
_: {
|
||||
services = {
|
||||
libinput = {
|
||||
enable = true;
|
||||
mouse = {
|
||||
accelProfile = "flat";
|
||||
accelSpeed = "-1.0";
|
||||
buttonMapping = "1 2 3 4 5 6 7 8 9";
|
||||
horizontalScrolling = true;
|
||||
leftHanded = false;
|
||||
naturalScrolling = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
7
wanda/services/netbird.nix
Normal file
7
wanda/services/netbird.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
_: {
|
||||
services = {
|
||||
netbird = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
22
wanda/services/openssh.nix
Normal file
22
wanda/services/openssh.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{config, ...}: {
|
||||
services = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
allowSFTP = true;
|
||||
openFirewall = true;
|
||||
ports = [
|
||||
48630
|
||||
];
|
||||
|
||||
settings = {
|
||||
PrintMotd = false;
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
|
||||
authorizedKeysFiles = [
|
||||
config.sops.secrets.sshKey.path
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
66
wanda/services/pipewire.nix
Normal file
66
wanda/services/pipewire.nix
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
_: {
|
||||
services = {
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
|
||||
audio = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
pulse = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
jack = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
wireplumber = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
pipewire = {
|
||||
# PIPEWIRE_PROPS=node.force-rate=0
|
||||
"92-low-latency" = {
|
||||
"context.properties" = {
|
||||
"default.clock.rate" = 48000;
|
||||
"default.clock.allowed-rates" = [
|
||||
44100
|
||||
48000
|
||||
88200
|
||||
96000
|
||||
];
|
||||
|
||||
"default.clock.min-quantum" = 512;
|
||||
"default.clock.quantum" = 4096;
|
||||
"default.clock.max-quantum" = 8192;
|
||||
};
|
||||
};
|
||||
|
||||
"93-no-resampling" = {
|
||||
"context.properties" = {
|
||||
"default.clock.rate" = 48000;
|
||||
"default.clock.allowed-rates" = [
|
||||
44100
|
||||
48000
|
||||
96000
|
||||
192000
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
"94-no-upmixing" = {
|
||||
"stream.properties" = {
|
||||
"channelmix.upmix" = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
9
wanda/services/qmk.nix
Normal file
9
wanda/services/qmk.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
services = {
|
||||
udev = {
|
||||
packages = with pkgs; [
|
||||
qmk-udev-rules
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
39
wanda/services/resolved.nix
Normal file
39
wanda/services/resolved.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
_: {
|
||||
services = {
|
||||
resolved = {
|
||||
enable = true;
|
||||
dnsovertls = "true";
|
||||
dnssec = "true";
|
||||
llmnr = "true";
|
||||
domains = [
|
||||
"~."
|
||||
];
|
||||
|
||||
fallbackDns = [
|
||||
# cf dns
|
||||
"1.1.1.1"
|
||||
"1.0.0.1"
|
||||
"2606:4700:4700::1111"
|
||||
"2606:4700:4700::1001"
|
||||
|
||||
# google dns
|
||||
"8.8.8.8"
|
||||
"8.8.4.4"
|
||||
"2001:4860:4860::8888"
|
||||
"2001:4860:4860::8844"
|
||||
|
||||
# q9 dns
|
||||
"9.9.9.9"
|
||||
"149.112.112.112"
|
||||
"2620:fe::fe"
|
||||
"2620:fe::9"
|
||||
|
||||
# open dns
|
||||
"208.67.222.222"
|
||||
"208.67.220.220"
|
||||
"2620:119:35::35"
|
||||
"2620:119:53::53"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
8
wanda/services/scx.nix
Normal file
8
wanda/services/scx.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
_: {
|
||||
services = {
|
||||
scx = {
|
||||
enable = true;
|
||||
scheduler = "scx_cosmos";
|
||||
};
|
||||
};
|
||||
}
|
||||
10
wanda/services/sunshine.nix
Normal file
10
wanda/services/sunshine.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
_: {
|
||||
services = {
|
||||
sunshine = {
|
||||
enable = true;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
autoStart = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
8
wanda/services/usbmuxd.nix
Normal file
8
wanda/services/usbmuxd.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
services = {
|
||||
usbmuxd = {
|
||||
enable = true;
|
||||
package = pkgs.usbmuxd2;
|
||||
};
|
||||
};
|
||||
}
|
||||
26
wanda/services/xserver.nix
Normal file
26
wanda/services/xserver.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
xserver = {
|
||||
display = lib.mkForce 0;
|
||||
enable = true;
|
||||
|
||||
excludePackages = with pkgs; [
|
||||
xterm
|
||||
];
|
||||
|
||||
videoDrivers = [
|
||||
"modesetting"
|
||||
];
|
||||
|
||||
xkb = {
|
||||
layout = "us, ru";
|
||||
variant = "";
|
||||
options = "grp:caps_toggle";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
8
wanda/services/yubikey-agent.nix
Normal file
8
wanda/services/yubikey-agent.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
services = {
|
||||
yubikey-agent = {
|
||||
package = pkgs.yubikey-agent;
|
||||
enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
10
wanda/services/zerotier.nix
Normal file
10
wanda/services/zerotier.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
_: {
|
||||
services = {
|
||||
zerotierone = {
|
||||
enable = true;
|
||||
joinNetworks = [
|
||||
#
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue