Skip to content

Commit

Permalink
general update
Browse files Browse the repository at this point in the history
  • Loading branch information
ericdallo committed Dec 26, 2024
1 parent 22c2909 commit c5bbfac
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .config/doom/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@
(setq lsp-headerline-breadcrumb-enable nil
lsp-signature-render-documentation nil
lsp-signature-function 'lsp-signature-posframe
lsp-signature-auto-activate nil
lsp-semantic-tokens-enable t
lsp-enable-indentation nil
lsp-idle-delay 0.05 ;; Smoother LSP features response in cost of performance (Most servers I use have good performance)
lsp-use-plists nil)
(add-hook 'lsp-after-apply-edits-hook (lambda (&rest _) (save-buffer)))
Expand Down
4 changes: 4 additions & 0 deletions .config/hypr/hyprland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,9 @@ windowrulev2 = workspace 5 silent, class:^(org.gnome.Nautilus)$
windowrulev2 = workspace 5 silent, class:^(zoom)$
windowrulev2 = workspace 5 silent, class:^(Discord|discord)$
windowrulev2 = workspace 5 silent, class:^(lutris)$
windowrulev2 = workspace 5 silent , title:^(Godot|godot)$
windowrulev2 = workspace 6 silent, class:^(Gimp|gimp)$
windowrulev2 = stayfocused, class:^(pinentry-) # fix pinentry losing focus

# Godot
windowrulev2 = minsize 800 600, class:^(Godot|godot)$
2 changes: 1 addition & 1 deletion .config/waybar/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ window#waybar {
#backlight { border-top-color: @green; }
#pulseaudio { border-top-color: @purple; }
#pulseaudio.muted { border-top-color: @red; }
#pulseaudio.bluetooth { color: @purple; }
#pulseaudio.bluetooth { color: @cyan; }
#bluetooth { border-top-color: @cyan; }
#bluetooth.connected { color: @cyan; }
#battery { border-top-color: @red; }
Expand Down
2 changes: 2 additions & 0 deletions nix/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ in
./configurations/hardware.nix
./configurations/desktop.nix
./configurations/cli.nix
./configurations/samba.nix
./configurations/misc.nix
];

Expand All @@ -31,6 +32,7 @@ in
extraGroups = [
"wheel"
"docker"
"gamemode"
"networkmanager"
"vboxusers"
"video"
Expand Down
2 changes: 0 additions & 2 deletions nix/configurations/overlays.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ in {
inherit system;
config = prev.config;
};

vpn = import inputs.vpn {
inherit system;
config = prev.config;
};

})
];
}
41 changes: 41 additions & 0 deletions nix/configurations/samba.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{ config, lib, pkgs, ... }:

{
services.samba = {
enable = true;
openFirewall = true;
extraConfig = ''
workgroup = SAMBA
server string = %h server (Samba %v)
netbios name = smbnix
security = user
#use sendfile = yes
#max protocol = smb2
# note: localhost is the ipv6 localhost ::1
hosts allow = 192.168.15. 127.0.0.1 localhost
hosts deny = 0.0.0.0/0
guest account = nobody
map to guest = bad user
'';
shares = {
public = {
path = "/mnt/samba/Public";
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
"create mask" = "0644";
"directory mask" = "0755";
"force user" = "greg";
};
};
};

services.samba-wsdd = {
enable = true;
openFirewall = true;
};

networking.firewall.enable = true;
networking.firewall.allowPing = true;
}
4 changes: 3 additions & 1 deletion nix/home-manager/programs/games.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
# dolphin-emu-beta
lutris
wineWowPackages.staging
godot_4
master.godot_4
steam-run
cemu
winetricks
gamemode
];
}
29 changes: 26 additions & 3 deletions nix/hosts/asus-zenbook-oled/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
networking.hostName = "gregnix-personal";

boot = {
kernelParams = [ "i915.force_probe=7d55" ];
kernelParams = [ "i915.force_probe=7d55" "intel_pstate=disable" ];
extraModprobeConfig = ''
options bluetooth disable_ertm=1
options snd-hda-intel model=asus-zenbook
Expand All @@ -49,7 +49,30 @@
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ {device = "/dev/disk/by-uuid/5481837c-82f0-4231-880a-88df2c154d56";} ];
swapDevices = [ {device = "/dev/disk/by-uuid/54eb3f94-cafd-4afa-beb3-0e126a346252";} ];

powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
# powerManagement.cpuFreqGovernor = "performance";

powerManagement.enable = false;
services.thermald.enable = false;
services.tlp.enable = false;

services.auto-cpufreq = {
enable = true;
settings = {
battery = {
# governor = "powersave";
# energy_performance_preference = "power";
# turbo = "never";
governor = "performance";
energy_performance_preference = "performance";
turbo = "auto";
};
charger = {
governor = "performance";
energy_performance_preference = "performance";
turbo = "auto";
};
};
};
}

0 comments on commit c5bbfac

Please sign in to comment.