1
1
Fork 0

Compare commits

...

5 commits

Author SHA1 Message Date
1382e879dc
niri: disable hide-when-typing
Signed-off-by: Myned <dev@bjork.tech>
2025-01-10 16:59:53 -06:00
71ddce3239
niri: use software cursors
Signed-off-by: Myned <dev@bjork.tech>
2025-01-10 16:59:39 -06:00
df41293058
mypi3: fix borgmatic filename
Signed-off-by: Myned <dev@bjork.tech>
2025-01-10 16:03:40 -06:00
370060f75e
nix: make pulseaudio options version-dependent
Signed-off-by: Myned <dev@bjork.tech>
2025-01-10 16:01:00 -06:00
6fa9b974ec
ghostty: add minimal option for terminfo
Signed-off-by: Myned <dev@bjork.tech>
2025-01-10 16:00:21 -06:00
9 changed files with 61 additions and 34 deletions

View file

@ -65,6 +65,9 @@
# https://github.com/NixOS/nixpkgs/pull/369808
freerdp3 = dcsunset.freerdp3;
# TODO: Remove when on stable
ghostty = unstable.ghostty;
### Development
#// ciscoPacketTracer8 = local.ciscoPacketTracer8;
}

View file

@ -107,6 +107,7 @@ in {
# https://github.com/YaLTeR/niri/wiki/Configuration:-Debug-Options
# https://github.com/sodiboo/niri-flake/blob/main/docs.md#programsnirisettingsdebug
settings.debug = {
disable-cursor-plane = []; # Software cursor
#// disable-direct-scanout = [];
};
};

View file

@ -30,8 +30,9 @@ in {
inherit size;
theme = name;
# BUG: Heavily increases CPU usage with cursor movement
#// hide-after-inactive-ms = 1000 * 15; # Milliseconds
hide-when-typing = true;
#// hide-when-typing = true;
};
# HACK: Inherit home-manager environment variables in lieu of upstream fix

View file

@ -10,6 +10,7 @@ with lib; {
direnv.enable = true;
fastfetch.enable = true;
fish.enable = true;
ghostty.enable = true;
git.enable = true;
htop.enable = true;
man.enable = true;
@ -32,7 +33,6 @@ with lib; {
dconf.enable = true;
firefox.enable = true;
#// foot.enable = true;
ghostty.enable = true;
#// gnome-terminal.enable = true;
#// kdeconnect.enable = true;
kitty.enable = true;

View file

@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
@ -8,10 +9,13 @@ with lib; let
in {
options.custom.programs.ghostty = {
enable = mkOption {default = false;};
minimal = mkOption {default = false;};
};
config = mkIf cfg.enable {
home-manager.sharedModules = [
environment.systemPackages = mkIf cfg.minimal [pkgs.ghostty]; # Terminfo
home-manager.sharedModules = mkIf (!cfg.minimal) [
{
# https://ghostty.org/
programs.ghostty = {

View file

@ -8,35 +8,45 @@ with lib; let
in {
options.custom.services.pipewire.enable = mkOption {default = false;};
config = mkIf cfg.enable {
#!! Realtime priority may cause desync
#// security.rtkit.enable = true;
config = mkIf cfg.enable ({
#!! Realtime priority may cause desync
#// security.rtkit.enable = true;
services = {
pulseaudio.enable = false;
services = {
# https://wiki.nixos.org/wiki/PipeWire
# https://gitlab.freedesktop.org/pipewire/pipewire
pipewire = {
enable = true;
pulse.enable = true;
# https://wiki.nixos.org/wiki/PipeWire
# https://gitlab.freedesktop.org/pipewire/pipewire
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
# Avoid resampling if possible
# https://wiki.archlinux.org/title/PipeWire#Changing_the_allowed_sample_rate(s)
extraConfig.pipewire = {
"10-sample-rate"."context.properties"."default.clock.allowed-rates" = [
32000
44100
48000
88200
96000
176400
192000
];
# Avoid resampling if possible
# https://wiki.archlinux.org/title/PipeWire#Changing_the_allowed_sample_rate(s)
extraConfig.pipewire = {
"10-sample-rate"."context.properties"."default.clock.allowed-rates" = [
32000
44100
48000
88200
96000
176400
192000
];
};
};
};
};
};
}
// (
if versionAtLeast version "25.05"
then {
services.pulseaudio.enable = false;
}
else {
hardware.pulseaudio.enable = false;
}
));
}

View file

@ -1,7 +1,11 @@
{config, ...}: {
custom = {
profile = "sbc";
programs.fastfetch.greet = true;
programs = {
fastfetch.greet = true;
ghostty.minimal = true;
};
containers = {
enable = true;

View file

@ -1,7 +1,11 @@
{config, ...}: {
custom = {
profile = "server";
programs.fastfetch.greet = true;
programs = {
fastfetch.greet = true;
ghostty.minimal = true;
};
containers = {
enable = true;
@ -14,10 +18,10 @@
#// headscale.enable = true;
mastodon.enable = true;
netbox.enable = true;
nextcloud.enable = true;
#// nextcloud.enable = true;
owncast.enable = true;
redlib.enable = true;
searxng.enable = true;
#// redlib.enable = true;
#// searxng.enable = true;
};
services = {