mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-28 19:23:48 +01:00
chore: Formatting
Also removes redundant comments.
This commit is contained in:
parent
9892ae3fce
commit
62207c05fa
@ -4,6 +4,7 @@
|
|||||||
programs.htop = {
|
programs.htop = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs."htop-vim";
|
package = pkgs."htop-vim";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
tree_view = 1;
|
tree_view = 1;
|
||||||
hide_userland_threads = 1;
|
hide_userland_threads = 1;
|
||||||
|
@ -3,6 +3,7 @@ let
|
|||||||
vim-nix-rummik = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
vim-nix-rummik = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
||||||
pname = "vim-nix";
|
pname = "vim-nix";
|
||||||
version = "0def8020f152a51c011a707680780dac61a8989a";
|
version = "0def8020f152a51c011a707680780dac61a8989a";
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "rummik";
|
owner = "rummik";
|
||||||
repo = "vim-nix";
|
repo = "vim-nix";
|
||||||
@ -152,6 +153,7 @@ in
|
|||||||
|
|
||||||
tnoremap <C-space> <C-\><C-n>
|
tnoremap <C-space> <C-\><C-n>
|
||||||
'';
|
'';
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
{
|
{
|
||||||
plugin = nvim-tree-lua;
|
plugin = nvim-tree-lua;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
package = pkgs."swaylock-effects";
|
package = pkgs."swaylock-effects";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
show-keyboard-layout = true;
|
show-keyboard-layout = true;
|
||||||
daemonize = true;
|
daemonize = true;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
{
|
{
|
||||||
programs.gamemode = {
|
programs.gamemode = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
general = {
|
general = {
|
||||||
renice = 10;
|
renice = 10;
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
ibus.engines = with pkgs.ibus-engines; [ mozc ];
|
ibus.engines = with pkgs.ibus-engines; [ mozc ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.gnome.core-utilities.enable = false;
|
|
||||||
environment.gnome.excludePackages = [ pkgs.gnome-tour ];
|
environment.gnome.excludePackages = [ pkgs.gnome-tour ];
|
||||||
|
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
|
@ -4,11 +4,13 @@
|
|||||||
services.greetd = {
|
services.greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
restart = false;
|
restart = false;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland";
|
||||||
user = "greeter";
|
user = "greeter";
|
||||||
};
|
};
|
||||||
|
|
||||||
initial_session = {
|
initial_session = {
|
||||||
command = "${pkgs.hyprland}/bin/Hyprland";
|
command = "${pkgs.hyprland}/bin/Hyprland";
|
||||||
user = "user";
|
user = "user";
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
{
|
{
|
||||||
services.logind = {
|
services.logind = {
|
||||||
# Don't suspend on lid close
|
|
||||||
lidSwitch = "ignore";
|
lidSwitch = "ignore";
|
||||||
|
|
||||||
# Don't shutdown when power button is short-pressed
|
|
||||||
extraConfig = "HandlePowerKey=ignore";
|
extraConfig = "HandlePowerKey=ignore";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
# Don't use link-local multicast name resolution
|
|
||||||
services.resolved.llmnr = "false";
|
services.resolved.llmnr = "false";
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
{
|
{
|
||||||
systemd = {
|
systemd = {
|
||||||
# Limit shutdown wait time to 10 seconds
|
|
||||||
extraConfig = "DefaultTimeoutStopSec=10s";
|
extraConfig = "DefaultTimeoutStopSec=10s";
|
||||||
|
|
||||||
# Don't wait for an internet connection before obtaining a graphical interface
|
|
||||||
services.NetworkManager-wait-online.enable = false;
|
services.NetworkManager-wait-online.enable = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
# Use zram for swap
|
zramSwap.enable = true;
|
||||||
zramSwap.enable = true; # Swap
|
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
(final: prev: {
|
(final: prev: {
|
||||||
joshuto = prev.joshuto.overrideAttrs (oldAttrs: rec {
|
joshuto = prev.joshuto.overrideAttrs (oldAttrs: rec {
|
||||||
version = "1d7f9067189fbf730605f373d591654651e01689";
|
version = "1d7f9067189fbf730605f373d591654651e01689";
|
||||||
|
|
||||||
src = final.fetchFromGitHub {
|
src = final.fetchFromGitHub {
|
||||||
owner = "kamiyaa";
|
owner = "kamiyaa";
|
||||||
repo = "joshuto";
|
repo = "joshuto";
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
postPatch = /* bash */ ''
|
postPatch = /* bash */ ''
|
||||||
# use hyprctl to switch workspaces
|
|
||||||
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
|
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user