51 lines
1.2 KiB
Nix
51 lines
1.2 KiB
Nix
|
{pkgs, ...}: {
|
||
|
xdg.portal = {
|
||
|
enable = true;
|
||
|
wlr.enable = true;
|
||
|
}
|
||
|
|
||
|
# Enable automatic login for the user.
|
||
|
services = {
|
||
|
flatpak.enable = true;
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# List packages installed in system profile. To search, run:
|
||
|
# $ nix search wget
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
kitty
|
||
|
rofi
|
||
|
hyprland-protocols
|
||
|
hyprland-share-picker
|
||
|
xdg-desktop-portal-hyprland
|
||
|
];
|
||
|
|
||
|
programs = {
|
||
|
hyprland = {
|
||
|
enable = true;
|
||
|
xwayland = {
|
||
|
enable = true;
|
||
|
hidpi = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|