init
This commit is contained in:
commit
b6cdc78668
210 changed files with 9929 additions and 0 deletions
18
s0mePC-nix/services/greetd.nix
Normal file
18
s0mePC-nix/services/greetd.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:{
|
||||
services = {
|
||||
greetd = {
|
||||
enable = true;
|
||||
vt = 7;
|
||||
restart = false;
|
||||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet -r -t -c Hyprland --greet-align center";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
9
s0mePC-nix/services/irqbalance.nix
Normal file
9
s0mePC-nix/services/irqbalance.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
irqbalance = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
17
s0mePC-nix/services/libinput.nix
Normal file
17
s0mePC-nix/services/libinput.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
libinput = {
|
||||
enable = true;
|
||||
mouse = {
|
||||
accelProfile = "flat";
|
||||
accelSpeed = "-1.0";
|
||||
buttonMapping = "1 3 2 4 5 6 7 8 9";
|
||||
horizontalScrolling = true;
|
||||
leftHanded = false;
|
||||
naturalScrolling = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
9
s0mePC-nix/services/netbird.nix
Normal file
9
s0mePC-nix/services/netbird.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
netbird = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
25
s0mePC-nix/services/openssh.nix
Normal file
25
s0mePC-nix/services/openssh.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
allowSFTP = true;
|
||||
openFirewall = true;
|
||||
ports = [
|
||||
49560
|
||||
];
|
||||
|
||||
settings = {
|
||||
PrintMotd = false;
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
|
||||
authorizedKeysFiles = [
|
||||
config.sops.secrets.sshKey.path
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
67
s0mePC-nix/services/pipewire.nix
Normal file
67
s0mePC-nix/services/pipewire.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
pipewire = {
|
||||
enable = true;
|
||||
alsa = {
|
||||
enable = true;
|
||||
support32Bit = true;
|
||||
};
|
||||
|
||||
audio = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
pulse = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
jack = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
wireplumber = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
extraConfig = {
|
||||
pipewire = {
|
||||
"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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
12
s0mePC-nix/services/qmk.nix
Normal file
12
s0mePC-nix/services/qmk.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
udev = {
|
||||
packages = with pkgs; [
|
||||
qmk-udev-rules
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
12
s0mePC-nix/services/scx.nix
Normal file
12
s0mePC-nix/services/scx.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
scx = {
|
||||
enable = true;
|
||||
package = pkgs.scx_git.full;
|
||||
scheduler = "scx_lavd";
|
||||
};
|
||||
};
|
||||
}
|
||||
12
s0mePC-nix/services/sunshine.nix
Normal file
12
s0mePC-nix/services/sunshine.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
sunshine = {
|
||||
enable = true;
|
||||
capSysAdmin = true;
|
||||
openFirewall = true;
|
||||
autoStart = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
11
s0mePC-nix/services/usbmuxd.nix
Normal file
11
s0mePC-nix/services/usbmuxd.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
usbmuxd = {
|
||||
enable = true;
|
||||
package = pkgs.usbmuxd2;
|
||||
};
|
||||
};
|
||||
}
|
||||
29
s0mePC-nix/services/xserver.nix
Normal file
29
s0mePC-nix/services/xserver.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
xserver = {
|
||||
display = lib.mkForce 0;
|
||||
enable = true;
|
||||
tty = 7;
|
||||
|
||||
excludePackages = with pkgs; [
|
||||
xterm
|
||||
];
|
||||
|
||||
|
||||
videoDrivers = [
|
||||
"amdgpu"
|
||||
];
|
||||
|
||||
xkb = {
|
||||
layout = "us, ru";
|
||||
variant = "qwerty";
|
||||
options = "grp:caps_toggle";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
68
s0mePC-nix/services/yggdrasil.nix
Normal file
68
s0mePC-nix/services/yggdrasil.nix
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
yggdrasil = {
|
||||
enable = true;
|
||||
persistentKeys = false;
|
||||
settings = {
|
||||
PrivateKey = config.sops.secrets.yggKeyPc.path;
|
||||
|
||||
Peers = [
|
||||
|
||||
# Germany :Erm:
|
||||
"tcp://s-fra-0.sergeysedoy97.ru:65533"
|
||||
"tls://s-fra-0.sergeysedoy97.ru:65534"
|
||||
"tcp://x-fra-0.sergeysedoy97.ru:65533"
|
||||
"tls://x-fra-0.sergeysedoy97.ru:65534"
|
||||
"quic://x-fra-0.sergeysedoy97.ru:65535"
|
||||
"tls://helium.avevad.com:13378"
|
||||
"tcp://bode.theender.net:42069"
|
||||
"tls://bode.theender.net:42169?key=f91b909f43829f8b20732b3bcf80cbc4bb078dd47b41638379a078e35984c9a4"
|
||||
|
||||
# Russia
|
||||
"tcp://s-mow-0.sergeysedoy97.ru:65533"
|
||||
"tls://s-mow-0.sergeysedoy97.ru:65534"
|
||||
"tcp://x-mow-0.sergeysedoy97.ru:65533"
|
||||
"tls://x-mow-0.sergeysedoy97.ru:65534"
|
||||
"quic://x-mow-0.sergeysedoy97.ru:65535"
|
||||
"tcp://s-mow-1.sergeysedoy97.ru:65533"
|
||||
"tls://s-mow-1.sergeysedoy97.ru:65534"
|
||||
"tcp://x-mow-1.sergeysedoy97.ru:65533"
|
||||
"tls://x-mow-1.sergeysedoy97.ru:65534"
|
||||
"quic://x-mow-1.sergeysedoy97.ru:65535"
|
||||
"quic://kursk.cleverfox.org:15015"
|
||||
"tls://kursk.cleverfox.org:15015"
|
||||
"ws://kursk.cleverfox.org:15016"
|
||||
"tcp://kzn1.neonxp.ru:7991"
|
||||
"tls://kzn1.neonxp.ru:7992"
|
||||
"ws://kzn1.neonxp.ru:7993"
|
||||
"quic://kzn1.neonxp.ru:7994"
|
||||
|
||||
];
|
||||
|
||||
Listen = [
|
||||
#
|
||||
];
|
||||
|
||||
MulticastInterfaces = [
|
||||
{
|
||||
Regex = ".*";
|
||||
Beacon = true;
|
||||
Listen = false;
|
||||
Password = "";
|
||||
}
|
||||
];
|
||||
|
||||
AllowedPublicKeys = [
|
||||
#
|
||||
];
|
||||
|
||||
IfName = "auto";
|
||||
|
||||
IfMTU = 65535;
|
||||
NodeInfoPrivacy = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
147
s0mePC-nix/services/zapret.nix
Normal file
147
s0mePC-nix/services/zapret.nix
Normal file
|
|
@ -0,0 +1,147 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
zapret = {
|
||||
enable = true;
|
||||
configureFirewall = true;
|
||||
qnum = 350;
|
||||
params = [
|
||||
"--wssize 1:6"
|
||||
|
||||
"--filter-tcp=80"
|
||||
"--dpi-desync=multisplit"
|
||||
"--dpi-desync-split-pos=10"
|
||||
"--dpi-desync-repeats=6"
|
||||
"--new"
|
||||
|
||||
"--filter-tcp=443"
|
||||
"--dpi-desync=multidisorder"
|
||||
"--dpi-desync-split-pos=1,midsld"
|
||||
"--new"
|
||||
|
||||
"--filter-tcp=443"
|
||||
"--dpi-desync=syndata"
|
||||
"--dpi-desync-fake-syndata=0x00000000"
|
||||
"--dpi-desync-ttl=10"
|
||||
"--new"
|
||||
|
||||
"--filter-udp=443"
|
||||
"--dpi-desync=fake"
|
||||
"--dpi-desync-repeats=6"
|
||||
"--dpi-desync-fake-quic=0x00000000"
|
||||
"--new"
|
||||
|
||||
"--filter-udp=443"
|
||||
"--dpi-desync=fake,udplen"
|
||||
"--dpi-desync-udplen-increment=5"
|
||||
"--dpi-desync-fake-tls=0x00000000"
|
||||
"--dpi-desync-cutoff=n3"
|
||||
"--dpi-desync-repeats=2"
|
||||
"--new"
|
||||
|
||||
"--filter-tcp=443"
|
||||
"--dpi-desync=split"
|
||||
"--dpi-desync-fooling=md5sig,badseq"
|
||||
"--dpi-desync-fake-tls=0x00000000"
|
||||
"--dpi-desync-split-pos=1"
|
||||
"--dpi-desync-repeats=10"
|
||||
"--new"
|
||||
|
||||
"--filter-tcp=443"
|
||||
"--dpi-desync=fake,split2"
|
||||
"--dpi-desync-fooling=md5sig"
|
||||
"--dpi-desync-fake-tls=0x00000000"
|
||||
"--dpi-desync-split-seqovl=2"
|
||||
"--dpi-desync-split-pos=2"
|
||||
|
||||
"--dpi-desync-autottl"
|
||||
"--new"
|
||||
"--filter-tcp=443"
|
||||
"--dpi-desync=fake,split2"
|
||||
"--dpi-desync-fooling=md5sig"
|
||||
"--dpi-desync-fake-tls=0x00000000"
|
||||
"--dpi-desync-split-seqovl=2"
|
||||
"--dpi-desync-split-pos=2"
|
||||
"--dpi-desync-autottl"
|
||||
"--new"
|
||||
|
||||
"--filter-tcp=80"
|
||||
"--dpi-desync=fake,split2"
|
||||
"--dpi-desync-fooling=md5sig"
|
||||
"--dpi-desync-fake-tls=0x00000000"
|
||||
"--dpi-desync-autottl"
|
||||
"--new"
|
||||
|
||||
"--filter-tcp=80"
|
||||
"--dpi-desync-ttl=1"
|
||||
"--dpi-desync-autottl=2"
|
||||
"--dpi-desync-fake-tls=0x00000000"
|
||||
"--dpi-desync-split-pos=1"
|
||||
"--dpi-desync=fake,split2"
|
||||
"--dpi-desync-repeats=6"
|
||||
"--dpi-desync-fooling=md5sig"
|
||||
"--new"
|
||||
];
|
||||
|
||||
whitelist = [
|
||||
"googlevideo.com"
|
||||
"youtu.be"
|
||||
"youtube.com"
|
||||
"youtubei.googleapis.com"
|
||||
"googlevideo.com"
|
||||
"youtu.be"
|
||||
"youtube.com"
|
||||
"youtubei.googleapis.com"
|
||||
"youtubeembeddedplayer.googleapis.com"
|
||||
"ytimg.l.google.com"
|
||||
"ytimg.com"
|
||||
"jnn-pa.googleapis.com"
|
||||
"youtube-nocookie.com"
|
||||
"youtube-ui.l.google.com"
|
||||
"yt-video-upload.l.google.com"
|
||||
"wide-youtube.l.google.com"
|
||||
"youtubekids.com"
|
||||
"ggpht.com"
|
||||
"music.youtube.com"
|
||||
"test.googlevideo.com"
|
||||
"discord.com"
|
||||
"gateway.discord.gg"
|
||||
"cdn.discordapp.com"
|
||||
"discordapp.net"
|
||||
"discordapp.com"
|
||||
"discord.gg"
|
||||
"media.discordapp.net"
|
||||
"images-ext-1.discordapp.net"
|
||||
"discord.app"
|
||||
"discord.media"
|
||||
"discordcdn.com"
|
||||
"discord.dev"
|
||||
"discord.new"
|
||||
"discord.gift"
|
||||
"discordstatus.com"
|
||||
"dis.gd"
|
||||
"discord.co"
|
||||
"discord-attachments-uploads-prd.storage.googleapis.com"
|
||||
"7tv.app"
|
||||
"7tv.io"
|
||||
"10tv.app"
|
||||
"x.com"
|
||||
"t.co"
|
||||
"ads-twitter.com"
|
||||
"twimg.com"
|
||||
"twitter.com"
|
||||
"pscp.tv"
|
||||
"twtrdns.net"
|
||||
"twttr.com"
|
||||
"periscope.tv"
|
||||
"tweetdeck.com"
|
||||
"twitpic.com"
|
||||
"twitter.co"
|
||||
"twitterinc.com"
|
||||
"twitteroauth.com"
|
||||
"twitterstat.us"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
12
s0mePC-nix/services/zerotier.nix
Normal file
12
s0mePC-nix/services/zerotier.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
services = {
|
||||
zerotierone = {
|
||||
enable = true;
|
||||
joinNetworks = [
|
||||
config.sops.secrets.ztNetwork.path
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue