noctalia
This commit is contained in:
1 parent
0efe1cac36
commit
0b210da0c7
7 files changed
+50
-9
No files matched your search
@@ -27,7 +27,10 @@ split under `conf/` and pulled in with `require()`.
|
|||||||
- **Layout:** Hyprland's native `scrolling` layout (0.54+), no plugins required.
|
- **Layout:** Hyprland's native `scrolling` layout (0.54+), no plugins required.
|
||||||
This mirrors niri's scrollable-tiling model. See `conf/general.lua`.
|
This mirrors niri's scrollable-tiling model. See `conf/general.lua`.
|
||||||
- **Shell:** noctalia (`noctalia-shell`), autostarted in `conf/autostart.lua`
|
- **Shell:** noctalia (`noctalia-shell`), autostarted in `conf/autostart.lua`
|
||||||
via `hl.on("hyprland.start", ...)`. There is intentionally no waybar/hyprpanel.
|
via `hl.on("hyprland.start", ...)`. Launched with `setpriv --ambient-caps -all`
|
||||||
|
to drop capabilities inherited from the compositor; without it, D-Bus calls
|
||||||
|
inside quickshell-based apps fail silently (hyprwm/Hyprland#14844). There is
|
||||||
|
intentionally no waybar/hyprpanel.
|
||||||
- **Keybinds:** `conf/keybindings.lua` mirrors `configs/niri/shared/binds.kdl`
|
- **Keybinds:** `conf/keybindings.lua` mirrors `configs/niri/shared/binds.kdl`
|
||||||
and `configs/niri/noctalia/binds.kdl` as closely as Hyprland allows.
|
and `configs/niri/noctalia/binds.kdl` as closely as Hyprland allows.
|
||||||
- **Overview:** there is no native Hyprland overview, and no overview plugin that
|
- **Overview:** there is no native Hyprland overview, and no overview plugin that
|
||||||
@@ -54,7 +57,7 @@ everything else stays on Hyprland defaults. Other `workspaces` styles available:
|
|||||||
├── inputs.lua # touchpad tap + natural scroll, kb us, hl.gesture
|
├── inputs.lua # touchpad tap + natural scroll, kb us, hl.gesture
|
||||||
├── window-rules.lua # hl.window_rule floats for small dialogs/utilities
|
├── window-rules.lua # hl.window_rule floats for small dialogs/utilities
|
||||||
├── keybindings.lua # niri + noctalia binds, scrolling dispatchers (hl.bind/hl.dsp)
|
├── keybindings.lua # niri + noctalia binds, scrolling dispatchers (hl.bind/hl.dsp)
|
||||||
└── autostart.lua # noctalia, hypridle via UWSM (hl.on hyprland.start)
|
└── autostart.lua # noctalia, hypridle via setpriv (hl.on hyprland.start; drops compositor caps)
|
||||||
```
|
```
|
||||||
|
|
||||||
## Bindings without a clean 1:1 niri mapping
|
## Bindings without a clean 1:1 niri mapping
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
|
|
||||||
hl.on("hyprland.start", function()
|
hl.on("hyprland.start", function()
|
||||||
-- noctalia shell (bar / launcher / control center / notifications)
|
-- noctalia shell (bar / launcher / control center / notifications)
|
||||||
hl.exec_cmd("uwsm app -- noctalia-shell")
|
-- setpriv drops ambient capabilities inherited from the compositor;
|
||||||
|
-- without it, D-Bus calls inside quickshell-based apps fail silently.
|
||||||
|
hl.exec_cmd("setpriv --ambient-caps -all -- noctalia-shell")
|
||||||
-- Idle management
|
-- Idle management
|
||||||
hl.exec_cmd("uwsm app -- hypridle")
|
hl.exec_cmd("setpriv --ambient-caps -all -- hypridle")
|
||||||
end)
|
end)
|
||||||
File renamed without changes.
File renamed without changes.
+2
-5
@@ -3,7 +3,6 @@
|
|||||||
, lib
|
, lib
|
||||||
, user
|
, user
|
||||||
, unstablePkgs
|
, unstablePkgs
|
||||||
, noctalia
|
|
||||||
, claude-desktop
|
, claude-desktop
|
||||||
, flox
|
, flox
|
||||||
, ...
|
, ...
|
||||||
@@ -15,7 +14,7 @@ let
|
|||||||
8000
|
8000
|
||||||
8001
|
8001
|
||||||
];
|
];
|
||||||
noctaliaPkg = noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Skyg
|
# Skyg
|
||||||
@@ -44,6 +43,7 @@ in
|
|||||||
tiler = {
|
tiler = {
|
||||||
enable = true;
|
enable = true;
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
|
noctalia.enable = true;
|
||||||
niri = {
|
niri = {
|
||||||
enable = true;
|
enable = true;
|
||||||
touchscreen-gestures = {
|
touchscreen-gestures = {
|
||||||
@@ -218,9 +218,6 @@ in
|
|||||||
# Iphone Management
|
# Iphone Management
|
||||||
idevicerestore # optional, to mount using 'ifuse'
|
idevicerestore # optional, to mount using 'ifuse'
|
||||||
|
|
||||||
# Misc
|
|
||||||
noctaliaPkg
|
|
||||||
|
|
||||||
# coding agents
|
# coding agents
|
||||||
claude-desktop
|
claude-desktop
|
||||||
grok-cli
|
grok-cli
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ in
|
|||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
./niri.nix
|
./niri.nix
|
||||||
./niri-touchscreen-gestures.nix
|
./niri-touchscreen-gestures.nix
|
||||||
|
./noctalia.nix
|
||||||
./swww.nix
|
./swww.nix
|
||||||
];
|
];
|
||||||
options = {
|
options = {
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
{ config
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
, skygUtils
|
||||||
|
, noctalia
|
||||||
|
, ...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.skyg.nixos.desktop.tiler.noctalia;
|
||||||
|
system = pkgs.stdenv.hostPlatform.system;
|
||||||
|
noctaliaPkg = noctalia.packages.${system}.default;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
skyg.nixos.desktop.tiler.noctalia = {
|
||||||
|
enable = lib.mkEnableOption "noctalia";
|
||||||
|
configName = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = config.skyg.core.hostName;
|
||||||
|
description = ''
|
||||||
|
Name of the per-host noctalia config directory under `configs/`.
|
||||||
|
The module symlinks `~/.config/noctalia` -> `configs/<configName>/noctalia`.
|
||||||
|
Defaults to the machine's hostName (e.g. `fwbook` -> `configs/fwbook/noctalia`).
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
environment.systemPackages = [ noctaliaPkg ];
|
||||||
|
|
||||||
|
# Symlink ~/.config/noctalia -> configs/<configName>/noctalia (host-specific).
|
||||||
|
system.userActivationScripts.noctaliaCfg.text = skygUtils.makeHyperlinkScriptToConfigs {
|
||||||
|
filePath = "${cfg.configName}/noctalia";
|
||||||
|
targetPath = "noctalia";
|
||||||
|
configSource = "/home/${config.skyg.user.name}/nixos-setup/configs";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user