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-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; [
|
|
|
|
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
|
|
|
|
|
|
|
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";
|
|
|
|
login.passwordFile = "/var/lib/secrets/podman/wsproxy"; # should create it manually.
|
|
|
|
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 = [
|
|
|
|
"1089:1089";
|
|
|
|
];
|
|
|
|
|
|
|
|
extraOptions = [
|
|
|
|
"--restart=always"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-06-21 05:29:28 +00:00
|
|
|
}
|