Testing nixpkgs-waylan doverlay

This commit is contained in:
iFargle 2023-08-27 19:35:58 +09:00
parent 65d3cc875a
commit 120c217fb5
4 changed files with 21 additions and 23 deletions

View file

@ -15,12 +15,13 @@ nixos-rebuild switch --flake '/etc/nixos#<HOSTNAME>'
* [ ] Fix cursor size
* [ ] Try the multi-GPU configs on the wiki
* [ ] set up pinentry on awesome-hyprland
* [ ] Get swaylock to dim / turn off the screen, then enter suspend/hibernate
* [x] Get swaylock to dim / turn off the screen, then enter suspend/hibernate
* [x] swayosd
* [ ] wayprompt
* [ ] Needs an overlay? Can't find it in search
* [ ] wlogout / nwg-bar theming
* [ ] cli-based filebrowser for hyprland
* [x] cli-based filebrowser for hyprland
* Installed `ranger`
* [x] Find a way to adjust window sizes with a keyboard shortcut in Hyprland
* [ ] Try disko - [Link](https://github.com/nix-community/disko)
* [ ] btrfs snapshots

View file

@ -2,6 +2,7 @@
description = "NixOS System Config";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
lanzaboote.url = "github:nix-community/lanzaboote";
@ -11,7 +12,7 @@
doom-emacs.url = "github:nix-community/nix-doom-emacs";
};
outputs = {
self, nixpkgs, home-manager, lanzaboote, nur, sops-nix, doom-emacs, ...
self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, ...
}@inputs:
let
inherit (self) outputs;

View file

@ -1,14 +1 @@
(setq doom-theme 'doom-gruvbox)
(defun posframe-poshandler-window-top-center-offset (info)
"Posframe's position handler.
Get a position which let posframe stay onto current window's
top center. The structure of INFO can be found in docstring of
`posframe-show'."
(let* ((window-left (plist-get info :parent-window-left))
(window-top (plist-get info :parent-window-top))
(window-width (plist-get info :parent-window-width))
(posframe-width (plist-get info :posframe-width)))
(cons (+ window-left (/ (- window-width posframe-width) 2))
(+ window-top 48))))
(setq doom-theme 'doom-gruvbox)

View file

@ -1,6 +1,14 @@
{pkgs, gpu, ...}: {
services.xserver.videoDrivers = [ gpu ];
nixpkgs = {
overlays = [
# https://github.com/nix-community/nixpkgs-wayland
inputs.nixpkgs-wayland.overlay
];
};
services.xserver.videoDrivers = [ gpu ];
# tuigreet
services.greetd = {
enable = true;
@ -33,7 +41,7 @@
environment.sessionVariables = {
# If your cursor becomes invisible
WLR_NO_HARDWARE_CURSORS = "1";
WLR_NO_HARDWARE_CURSORS = "0";
# Hint electron apps to use wayland
NIXOS_OZONE_WL = "1";
};
@ -52,10 +60,6 @@
HibernateDelaySec = 600
'';
services.autosuspend = {
enable = true;
};
# XDG portal
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
@ -93,6 +97,11 @@
xdg-utils # Utilities for better X/Wayland integration
];
# nixpkgs-wayland
environment.systemPackages = with input.nixpkgs-wayland.pkgs; [
wayprompt
]
# Enable sound with pipewire.
sound.enable = true;
security.rtkit.enable = true;