wayland
This commit is contained in:
parent
d73d2be924
commit
32abc8de2a
3 changed files with 36 additions and 2 deletions
|
|
@ -12,6 +12,7 @@
|
||||||
./users.nix
|
./users.nix
|
||||||
./ssh.nix
|
./ssh.nix
|
||||||
./steam.nix
|
./steam.nix
|
||||||
|
./wayland.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
|
|
|
||||||
34
system/hyprland.nix
Normal file
34
system/hyprland.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
conf,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
security.polkit.enable = true;
|
||||||
|
security.pam.services.hyprlock = {};
|
||||||
|
|
||||||
|
services.dbus.enable = true;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
xdg-dektop-portal-hyprland
|
||||||
|
];
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
wlr.enable = true;
|
||||||
|
config.common.default = "hyprland";
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.opengl.enable = true;
|
||||||
|
|
||||||
|
services.greetd = {
|
||||||
|
enable = true;
|
||||||
|
settings = rec {
|
||||||
|
default_session = initial_session;
|
||||||
|
initial_session = {
|
||||||
|
user = conf.user;
|
||||||
|
command = "Hyprland; hyprlock";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{nixpkgs, ...}: {
|
{...}: {
|
||||||
nix = {
|
nix = {
|
||||||
nixPath = ["nixpkgs=${nixpkgs}"];
|
|
||||||
gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "05:30";
|
dates = "05:30";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue