- Formatted everything using Alejandra
- Added 'ncli format' as a quick command to format everything
This commit is contained in:
@ -1,17 +1,21 @@
|
||||
{ config, pkgs, username, project, ... }:
|
||||
{
|
||||
|
||||
#To show logs of services run:
|
||||
#journalctl --user-unit={service-name} --user
|
||||
config,
|
||||
pkgs,
|
||||
username,
|
||||
project,
|
||||
...
|
||||
}: {
|
||||
#To show logs of services run:
|
||||
#journalctl --user-unit={service-name} --user
|
||||
systemd.user.services.niri-waybar = {
|
||||
description = "Waybar status bar for Niri";
|
||||
|
||||
|
||||
# "wantedBy" replaces the [Install] section
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
|
||||
wantedBy = ["graphical-session.target"];
|
||||
|
||||
# "partOf" and "after" replace the [Unit] section dependencies
|
||||
partOf = [ "graphical-session.target" ];
|
||||
after = [ "graphical-session.target" ];
|
||||
partOf = ["graphical-session.target"];
|
||||
after = ["graphical-session.target"];
|
||||
|
||||
# [Unit] configuration goes here
|
||||
unitConfig = {
|
||||
@ -32,9 +36,9 @@
|
||||
# it forcibly stops the graphical-session.target to ensure a clean state for the next login.
|
||||
systemd.user.services.niri-session-manager = {
|
||||
description = "Niri Session Management";
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
partOf = [ "graphical-session.target" ];
|
||||
|
||||
wantedBy = ["graphical-session.target"];
|
||||
partOf = ["graphical-session.target"];
|
||||
|
||||
# Only run this cleanup logic for Niri
|
||||
unitConfig.ConditionEnvironment = "XDG_CURRENT_DESKTOP=niri";
|
||||
|
||||
@ -42,7 +46,7 @@
|
||||
Type = "simple";
|
||||
# A dummy command that stays alive. 'sleep infinity' is low resource.
|
||||
ExecStart = "${pkgs.coreutils}/bin/sleep infinity";
|
||||
|
||||
|
||||
# IMPORTANT: When this service stops (which happens when niri kills its children),
|
||||
# it brings down the whole target.
|
||||
ExecStopPost = "${pkgs.systemd}/bin/systemctl --user stop graphical-session.target";
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
{ config, inputs, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./autostart.nix
|
||||
../modules/hyprlock
|
||||
@ -10,9 +14,8 @@
|
||||
home-manager.sharedModules = [
|
||||
./home.nix
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs;
|
||||
[
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
#mako
|
||||
fuzzel
|
||||
waybar
|
||||
@ -26,17 +29,16 @@
|
||||
xwayland.enable = true;
|
||||
};
|
||||
|
||||
|
||||
#services.xserver.enable = true;
|
||||
#services.xserver.displayManager.sddm.enable = true;
|
||||
|
||||
xdg.portal = { #Needed for waybar
|
||||
enable = true;
|
||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr ];
|
||||
xdg.portal = {
|
||||
#Needed for waybar
|
||||
enable = true;
|
||||
extraPortals = [pkgs.xdg-desktop-portal-gtk pkgs.xdg-desktop-portal-wlr];
|
||||
config.common.default = "*";
|
||||
};
|
||||
|
||||
#sound.enable = true;
|
||||
#security.rtkit.enable = true;
|
||||
|
||||
}
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
{pkgs, inputs, ...}:
|
||||
{
|
||||
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.niri.homeModules.niri
|
||||
../modules/waybar/home.nix
|
||||
@ -15,19 +17,19 @@
|
||||
package = pkgs.niri;
|
||||
enable = true;
|
||||
#xwayland.enable = true;
|
||||
# config = ''
|
||||
# binds {
|
||||
# Super+Return { spawn "kitty"; }
|
||||
# Super+Space { spawn "fuzzel"; }
|
||||
# Super+Q { close-window; }
|
||||
# Super+Left { focus-column-left; }
|
||||
# Super+Right { focus-column-right; }
|
||||
# Super+Up { focus-workspace-up; }
|
||||
# Super+Down { focus-workspace-down; }
|
||||
# Super+L { spawn "hyprlock"; }
|
||||
# Super+Shift+E { "quit"; }
|
||||
# }
|
||||
# '';
|
||||
# config = ''
|
||||
# binds {
|
||||
# Super+Return { spawn "kitty"; }
|
||||
# Super+Space { spawn "fuzzel"; }
|
||||
# Super+Q { close-window; }
|
||||
# Super+Left { focus-column-left; }
|
||||
# Super+Right { focus-column-right; }
|
||||
# Super+Up { focus-workspace-up; }
|
||||
# Super+Down { focus-workspace-down; }
|
||||
# Super+L { spawn "hyprlock"; }
|
||||
# Super+Shift+E { "quit"; }
|
||||
# }
|
||||
# '';
|
||||
config = ''
|
||||
input {
|
||||
keyboard {
|
||||
|
||||
Reference in New Issue
Block a user