Testing nixpkgs-waylan doverlay
This commit is contained in:
parent
65d3cc875a
commit
120c217fb5
4 changed files with 21 additions and 23 deletions
|
@ -15,12 +15,13 @@ nixos-rebuild switch --flake '/etc/nixos#<HOSTNAME>'
|
||||||
* [ ] Fix cursor size
|
* [ ] Fix cursor size
|
||||||
* [ ] Try the multi-GPU configs on the wiki
|
* [ ] Try the multi-GPU configs on the wiki
|
||||||
* [ ] set up pinentry on awesome-hyprland
|
* [ ] 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
|
* [x] swayosd
|
||||||
* [ ] wayprompt
|
* [ ] wayprompt
|
||||||
* [ ] Needs an overlay? Can't find it in search
|
* [ ] Needs an overlay? Can't find it in search
|
||||||
* [ ] wlogout / nwg-bar theming
|
* [ ] 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
|
* [x] Find a way to adjust window sizes with a keyboard shortcut in Hyprland
|
||||||
* [ ] Try disko - [Link](https://github.com/nix-community/disko)
|
* [ ] Try disko - [Link](https://github.com/nix-community/disko)
|
||||||
* [ ] btrfs snapshots
|
* [ ] btrfs snapshots
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
description = "NixOS System Config";
|
description = "NixOS System Config";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
|
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
|
||||||
home-manager.url = "github:nix-community/home-manager/master";
|
home-manager.url = "github:nix-community/home-manager/master";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
lanzaboote.url = "github:nix-community/lanzaboote";
|
lanzaboote.url = "github:nix-community/lanzaboote";
|
||||||
|
@ -11,7 +12,7 @@
|
||||||
doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
doom-emacs.url = "github:nix-community/nix-doom-emacs";
|
||||||
};
|
};
|
||||||
outputs = {
|
outputs = {
|
||||||
self, nixpkgs, home-manager, lanzaboote, nur, sops-nix, doom-emacs, ...
|
self, nixpkgs, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, ...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
inherit (self) outputs;
|
inherit (self) outputs;
|
||||||
|
|
|
@ -1,14 +1 @@
|
||||||
(setq doom-theme 'doom-gruvbox)
|
(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))))
|
|
|
@ -1,6 +1,14 @@
|
||||||
{pkgs, gpu, ...}: {
|
{pkgs, gpu, ...}: {
|
||||||
services.xserver.videoDrivers = [ gpu ];
|
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
overlays = [
|
||||||
|
# https://github.com/nix-community/nixpkgs-wayland
|
||||||
|
inputs.nixpkgs-wayland.overlay
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
services.xserver.videoDrivers = [ gpu ];
|
||||||
|
|
||||||
# tuigreet
|
# tuigreet
|
||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -33,7 +41,7 @@
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
# If your cursor becomes invisible
|
# If your cursor becomes invisible
|
||||||
WLR_NO_HARDWARE_CURSORS = "1";
|
WLR_NO_HARDWARE_CURSORS = "0";
|
||||||
# Hint electron apps to use wayland
|
# Hint electron apps to use wayland
|
||||||
NIXOS_OZONE_WL = "1";
|
NIXOS_OZONE_WL = "1";
|
||||||
};
|
};
|
||||||
|
@ -52,10 +60,6 @@
|
||||||
HibernateDelaySec = 600
|
HibernateDelaySec = 600
|
||||||
'';
|
'';
|
||||||
|
|
||||||
services.autosuspend = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# XDG portal
|
# XDG portal
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
|
@ -93,6 +97,11 @@
|
||||||
xdg-utils # Utilities for better X/Wayland integration
|
xdg-utils # Utilities for better X/Wayland integration
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# nixpkgs-wayland
|
||||||
|
environment.systemPackages = with input.nixpkgs-wayland.pkgs; [
|
||||||
|
wayprompt
|
||||||
|
]
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue