- Add `noctalia` input to flake and lock it in `flake.lock`. - Include `noctalia` and `quickshell` modules in `flake.nix`. - Extend core packages to accept `inputs` and `system`; add `quickshell.nix` with required Qt6 packages and environment variables. - Enable `upower` service for battery handling. - Add home modules `noctalia.nix` and `overview.nix` (QML UI, README, assets, widgets, services) to provide a workspace overview. - Comment out unused rofi and web‑search binds; update `exec‑once` to start the overview daemon and `noctalia-shell`. - Provide `restart.noctalia` script and its Nix wrapper. - Enable `noctalia-shell` in `stylix` configuration.
59 lines
1.6 KiB
Nix
59 lines
1.6 KiB
Nix
{profile, ...}: {
|
|
# Services to start
|
|
services = {
|
|
libinput.enable = true; # Input Handling
|
|
fstrim.enable = true; # SSD Optimizer
|
|
gvfs.enable = true; # For Mounting USB & More
|
|
openssh = {
|
|
enable = true; # Enable SSH
|
|
settings = {
|
|
PermitRootLogin = "no"; # Prevent root from SSH login
|
|
PasswordAuthentication = true; # Users can SSH using kb and password
|
|
KbdInteractiveAuthentication = true;
|
|
};
|
|
ports = [22];
|
|
};
|
|
blueman.enable = true; # Bluetooth Support
|
|
tumbler.enable = true; # Image/video preview
|
|
gnome.gnome-keyring.enable = true;
|
|
|
|
smartd = {
|
|
enable =
|
|
if profile == "vm"
|
|
then false
|
|
else true;
|
|
autodetect = true;
|
|
};
|
|
pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
alsa.support32Bit = true;
|
|
pulse.enable = true;
|
|
jack.enable = true;
|
|
extraConfig.pipewire."92-low-latency" = {
|
|
"context.properties" = {
|
|
"default.clock.rate" = 48000;
|
|
"default.clock.quantum" = 256;
|
|
"default.clock.min-quantum" = 256;
|
|
"default.clock.max-quantum" = 256;
|
|
};
|
|
};
|
|
extraConfig.pipewire-pulse."92-low-latency" = {
|
|
context.modules = [
|
|
{
|
|
name = "libpipewire-module-protocol-pulse";
|
|
args = {
|
|
pulse.min.req = "256/48000";
|
|
pulse.default.req = "256/48000";
|
|
pulse.max.req = "256/48000";
|
|
pulse.min.quantum = "256/48000";
|
|
pulse.max.quantum = "256/48000";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
upower.enable = true; # noctalia shell battery
|
|
};
|
|
}
|