This repository has been archived on 2023-07-23. You can view files and clone it, but cannot push or open issues or pull requests.
gpd-configurations/global/software-configuration.nix
2023-07-20 12:39:48 +00:00

119 lines
2.1 KiB
Nix

{ pkgs, ... }: {
xdg.portal = {
enable = true;
#wlr.enable = true;
xdgOpenUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
];
};
# Enable automatic login for the user.
services = {
# flatpak dev.deedles.Trayscale
# sudo tailscale up --operator=$USER
# use https://hs.wetofu.me
tailscale.enable = true;
blueman.enable = true;
logrotate.checkConfig = false;
flatpak.enable = true;
gvfs.enable = true;
ntp = {
enable = true;
servers = [
"ntp.ntsc.ac.cn" # China
];
};
greetd = {
enable = true;
settings = rec {
initial_session = {
user = "user";
command = "${pkgs.hyprland}/bin/Hyprland";
};
default_session = initial_session;
};
};
xserver = {
layout = "cn";
xkbVariant = "";
libinput = {
mouse = {
accelProfile = "flat";
};
};
videoDrivers = [
"intel"
];
};
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
keyd = {
enable = false;
settings = {
main = {
capslock = "C-space";
};
};
};
upower = {
enable = true;
criticalPowerAction = "Hibernate";
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
hyprpaper
hyprland-protocols
hyprland-share-picker
];
programs = {
thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
hyprland = {
enable = true;
xwayland = {
enable = true;
hidpi = true;
};
};
proxychains = {
enable = true;
quietMode = true;
proxies = {
default = {
type = "socks5";
port = 1089;
host = "127.0.0.1";
enable = true;
};
};
};
#git.enable = true;
zsh.enable = true;
light.enable = true;
dconf.enable = true;
};
}