2023-06-21 05:29:28 +00:00
|
|
|
{pkgs, ...}: {
|
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
|
|
|
wlr.enable = true;
|
2023-06-25 22:18:07 +00:00
|
|
|
};
|
2023-06-21 05:29:28 +00:00
|
|
|
|
|
|
|
# Enable automatic login for the user.
|
|
|
|
services = {
|
2023-06-27 02:44:31 +00:00
|
|
|
# flatpak dev.deedles.Trayscale
|
|
|
|
# sudo tailscale up --operator=$USER
|
|
|
|
# use https://hs.wetofu.me
|
|
|
|
tailscale.enable = true;
|
|
|
|
blueman.enable = true;
|
2023-06-26 00:38:25 +00:00
|
|
|
logrotate.checkConfig = false;
|
2023-06-21 05:29:28 +00:00
|
|
|
flatpak.enable = true;
|
2023-06-29 04:42:38 +00:00
|
|
|
|
|
|
|
ntp = {
|
|
|
|
enable = true;
|
|
|
|
servers = [
|
|
|
|
"ntp.ntsc.ac.cn" # China
|
|
|
|
];
|
|
|
|
};
|
2023-06-26 00:38:25 +00:00
|
|
|
|
2023-06-21 05:29:28 +00:00
|
|
|
greetd = {
|
|
|
|
enable = true;
|
|
|
|
settings = rec {
|
|
|
|
initial_session = {
|
|
|
|
user = "user";
|
|
|
|
command = "${pkgs.greetd.greetd}/bin/agreety --cmd Hyprland";
|
|
|
|
};
|
|
|
|
default_session = initial_session;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xserver = {
|
|
|
|
layout = "cn";
|
|
|
|
xkbVariant = "";
|
|
|
|
libinput = {
|
|
|
|
mouse = {
|
|
|
|
accelProfile = "flat";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-06-21 08:11:21 +00:00
|
|
|
|
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
2023-06-21 05:29:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
# $ nix search wget
|
|
|
|
environment.systemPackages = with pkgs; [
|
2023-06-29 03:38:56 +00:00
|
|
|
hyprpaper
|
2023-06-21 05:29:28 +00:00
|
|
|
hyprland-protocols
|
|
|
|
hyprland-share-picker
|
|
|
|
xdg-desktop-portal-hyprland
|
|
|
|
];
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
hyprland = {
|
|
|
|
enable = true;
|
|
|
|
xwayland = {
|
|
|
|
enable = true;
|
|
|
|
hidpi = true;
|
|
|
|
};
|
|
|
|
};
|
2023-06-25 12:38:21 +00:00
|
|
|
|
2023-06-29 00:39:38 +00:00
|
|
|
proxychains = {
|
|
|
|
enable = true;
|
|
|
|
quietMode = true;
|
|
|
|
proxies = {
|
|
|
|
default = {
|
|
|
|
type = "socks5";
|
|
|
|
port = 1089;
|
|
|
|
host = "127.0.0.1";
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-25 12:38:21 +00:00
|
|
|
git.enable = true;
|
2023-06-26 13:20:30 +00:00
|
|
|
zsh.enable = true;
|
2023-06-27 02:44:31 +00:00
|
|
|
light.enable = true;
|
2023-06-21 05:29:28 +00:00
|
|
|
};
|
2023-06-28 01:30:10 +00:00
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
podman.enable = true;
|
|
|
|
oci-containers.backend = "podman";
|
|
|
|
oci-containers.containers = {
|
|
|
|
wsproxy = {
|
|
|
|
login.username = "senseab";
|
|
|
|
login.registry = "ghcr.io";
|
2023-06-28 01:49:57 +00:00
|
|
|
login.passwordFile = "/var/lib/secrets/podman/ghcr.io"; # should create it manually.
|
2023-06-28 01:30:10 +00:00
|
|
|
image = "ghcr.io/senseab/wsproxy:master";
|
|
|
|
autoStart = true;
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
CONFIG_NO_TLS_VERIFY = "true";
|
|
|
|
CONFIG_ADDR = "wss://dev.wetofu.me/path";
|
|
|
|
WSPROXY_MODE = "client";
|
|
|
|
};
|
|
|
|
|
|
|
|
ports = [
|
2023-06-28 14:07:02 +00:00
|
|
|
"127.0.0.1:1089:1089"
|
2023-06-28 01:30:10 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-06-21 05:29:28 +00:00
|
|
|
}
|