feat: a lot of stuff
This commit is contained in:
parent
e6a98be608
commit
2a9cfe768f
11 changed files with 70 additions and 18 deletions
|
|
@ -16,6 +16,7 @@
|
|||
"resume_offset=533760"
|
||||
"nvidia_drm.modeset=1"
|
||||
"nvidia.NVreg_PreserveVideoMemoryAllocations=1"
|
||||
# "intel_pstate=disable"
|
||||
];
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -2,18 +2,18 @@
|
|||
services.pipewire = lib.mkIf (!builtins.elem "gnome" config.bchmnn.gui.flavour) {
|
||||
enable = true;
|
||||
audio.enable = true;
|
||||
pulse.enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
jack.enable = true;
|
||||
pulse.enable = true;
|
||||
wireplumber.enable = true;
|
||||
extraConfig.pipewire = lib.mkIf config.bchmnn.audio.pipewire-wine-fix.enable {
|
||||
"90-wine-config" = {
|
||||
"context.properties" = {
|
||||
# "default.clock.rate" = 48000;
|
||||
# "default.clock.allowed-rates" = [ 48000 ];
|
||||
"default.clock.allowed-rates" = [ 44100 48000 ];
|
||||
# "default.clock.quantum" = 2048;
|
||||
"default.clock.min-quantum" = 1024;
|
||||
# "default.clock.min-quantum" = 1024;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -21,8 +21,8 @@
|
|||
"90-wine-config" = {
|
||||
"pulse.properties" = {
|
||||
"pulse.min.req" = "1024/48000";
|
||||
"pulse.min.frag" = "1024/48000";
|
||||
"pulse.min.quantum" = "1024/48000";
|
||||
# "pulse.min.frag" = "1024/48000";
|
||||
# "pulse.min.quantum" = "1024/48000";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@
|
|||
./kdeconnect.nix
|
||||
./keyd.nix
|
||||
./man.nix
|
||||
./memtest86.nix
|
||||
./nautilus.nix
|
||||
./network.nix
|
||||
./nh.nix
|
||||
|
|
|
|||
4
modules/memtest86.nix
Normal file
4
modules/memtest86.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ config, ... }: {
|
||||
boot.loader.systemd-boot.memtest86.enable = config.boot.loader.systemd-boot.enable;
|
||||
boot.loader.grub.memtest86.enable = config.boot.loader.grub.enable;
|
||||
}
|
||||
|
|
@ -15,8 +15,8 @@ in
|
|||
shellAliases = aliases;
|
||||
};
|
||||
|
||||
programs.htop = {
|
||||
enable = true;
|
||||
programs = {
|
||||
htop.enable = true;
|
||||
iftop.enable = true;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,16 +5,35 @@
|
|||
{
|
||||
matches = [
|
||||
{
|
||||
node.nick = "Scarlett 2i2 USB"
|
||||
node.name = "~alsa_input.pci.*"
|
||||
cpu.vm.name = "~.*"
|
||||
}
|
||||
{
|
||||
node.name = "~alsa_output.pci.*"
|
||||
cpu.vm.name = "~.*"
|
||||
}
|
||||
]
|
||||
actions = {
|
||||
update-props = {
|
||||
audio.rate = 44100
|
||||
api.acp.probe-rate = 44100
|
||||
api.alsa.period-size = 2048
|
||||
api.alsa.headroom = 2048
|
||||
session.suspend-timeout-seconds = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
# {
|
||||
# matches = [
|
||||
# {
|
||||
# node.nick = "Scarlett 2i2 USB"
|
||||
# }
|
||||
# ]
|
||||
# actions = {
|
||||
# update-props = {
|
||||
# audio.rate = 48000
|
||||
# api.acp.probe-rate = 48000
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
]
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ in
|
|||
libsForQt5.kdeconnect-kde # sync phone and pc
|
||||
system-config-printer # printer manager
|
||||
gnome3.adwaita-icon-theme
|
||||
maim
|
||||
];
|
||||
|
||||
xsession.windowManager.i3 = {
|
||||
|
|
@ -226,6 +227,9 @@ in
|
|||
"XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||
"XF86AudioPause" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||
|
||||
# Screenshot
|
||||
"Print" = "exec ${pkgs.maim}/bin/maim --select | xclip -selection clipboard -t image/png";
|
||||
|
||||
# Programs
|
||||
"${cfg.modifier}+Shift+v" = "exec ${pkgs.pavucontrol}/bin/pavucontrol";
|
||||
"${cfg.modifier}+Shift+b" = "exec ${pkgs.blueman}/bin/blueman-manager";
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@
|
|||
|
||||
home.packages = with pkgs; [
|
||||
tree-sitter # parser generator tool and an incremental parsing library
|
||||
lua-language-server
|
||||
clang-tools
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
gopls
|
||||
nixd
|
||||
lua-language-server # language server that offers lua language support
|
||||
clang-tools # standalone command line tools for c++ development
|
||||
rust-analyzer # modular compiler frontend for the rust language
|
||||
rustfmt # tool for formatting rust code according to style guidelines
|
||||
gopls # official language server for the go language
|
||||
nixd # nix language server
|
||||
nodePackages.pyright # type checker for the python language
|
||||
ruff # an extremely fast python linter
|
||||
black # uncompromising python code formatter
|
||||
|
|
@ -27,6 +27,9 @@
|
|||
texlab # implementation of the language server protocol for latex
|
||||
yamlfmt # extensible command line tool or library to format yaml files
|
||||
yamlfix # python yaml formatter that keeps your comments
|
||||
marksman # language server for markdown
|
||||
markdownlint-cli2 # fast, flexible, configuration-based command-line interface for linting markdown/commonmark files with the markdownlint library
|
||||
mdformat # commonmark compliant markdown formatter
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
home.packages = [
|
||||
(import ./git-clone-list.nix { inherit pkgs; })
|
||||
(import ./nix-update.nix { inherit pkgs nixosConfig; })
|
||||
];
|
||||
] ++ (import ./pomodoro.nix { inherit pkgs; });
|
||||
}
|
||||
|
|
|
|||
20
users/gandalf/modules/scripts/pomodoro.nix
Normal file
20
users/gandalf/modules/scripts/pomodoro.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ pkgs }:
|
||||
let
|
||||
pootis = ./pootis.m4a;
|
||||
in
|
||||
[
|
||||
(pkgs.writeShellScriptBin
|
||||
"pomostart"
|
||||
''
|
||||
clear
|
||||
${pkgs.openpomodoro-cli}/bin/openpomodoro-cli start --wait $@
|
||||
while ${pkgs.mpv}/bin/mpv ${pootis} > /dev/null 2>&1; do :; done
|
||||
'')
|
||||
(pkgs.writeShellScriptBin
|
||||
"pomobreak"
|
||||
''
|
||||
clear
|
||||
${pkgs.openpomodoro-cli}/bin/openpomodoro-cli break --wait $@
|
||||
while ${pkgs.mpv}/bin/mpv ${pootis} > /dev/null 2>&1; do :; done
|
||||
'')
|
||||
]
|
||||
BIN
users/gandalf/modules/scripts/pootis.m4a
Normal file
BIN
users/gandalf/modules/scripts/pootis.m4a
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue