Compare commits
No commits in common. "3888e1546bec14ddfeb314a5762801ca9f1a5983" and "229d78d0d655fce9b7ccd80b4fb6516a13624a2b" have entirely different histories.
3888e1546b
...
229d78d0d6
9 changed files with 148 additions and 188 deletions
20
flake.lock
generated
20
flake.lock
generated
|
@ -101,11 +101,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1716576411,
|
"lastModified": 1716327911,
|
||||||
"narHash": "sha256-FIN1wMoyePBTtibCbaeJaoKNLuAYIGwLCWAYC1DJanw=",
|
"narHash": "sha256-PI+wygItS/TKzi4gEAROvKTUzTx9GT+PGBttS/IOA/Q=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprcursor",
|
"repo": "hyprcursor",
|
||||||
"rev": "57298fc4f13c807e50ada2c986a3114b7fc2e621",
|
"rev": "27ca640abeef2d425b5dbecf804f5eb622cef56d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -144,11 +144,11 @@
|
||||||
"xdph": "xdph"
|
"xdph": "xdph"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1717447622,
|
"lastModified": 1716417827,
|
||||||
"narHash": "sha256-yT+e+NxXDes75AXaoxr41uStjXQgwK1SR5ZQEl27XlU=",
|
"narHash": "sha256-TYHpA/i9+Ns01+RzknJ5eYskQXL9GTTA7JX9Lo4JKVg=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "d0a224a4915b5a90555818ed3f9e49e1a61b7cdb",
|
"rev": "7ad9116de8d0b7dac27eaf080bd92998a8fb40e5",
|
||||||
"revCount": 4761,
|
"revCount": 4728,
|
||||||
"submodules": true,
|
"submodules": true,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/hyprwm/Hyprland"
|
"url": "https://github.com/hyprwm/Hyprland"
|
||||||
|
@ -236,11 +236,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1716473782,
|
"lastModified": 1715791527,
|
||||||
"narHash": "sha256-+qLn4lsHU6iL3+HTo1gTQ1tWzet8K9h+IfVemzEQZj8=",
|
"narHash": "sha256-HhQ4zvGHrRjR63ltySSeg+x+0jb0lepiutWdnFhLRoo=",
|
||||||
"owner": "hyprwm",
|
"owner": "hyprwm",
|
||||||
"repo": "hyprlang",
|
"repo": "hyprlang",
|
||||||
"rev": "87d5d984109c839482b88b4795db073eb9ed446f",
|
"rev": "969cb076e5b76f2e823aeca1937a3e1f159812ee",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,66 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
# support power features such as suspend to ram
|
|
||||||
powerManagement.enable = true;
|
|
||||||
# tune power saving options on boot
|
|
||||||
powerManagement.powertop.enable = true;
|
|
||||||
# thermald proactively prevents overheating on intel CPUs and works well with other tools
|
|
||||||
services.thermald.enable = true;
|
|
||||||
# power-profile-daemon for power management
|
|
||||||
services.power-profiles-daemon.enable = true;
|
|
||||||
# manage fans for macbook devices
|
|
||||||
services.mbpfan.enable = true;
|
|
||||||
|
|
||||||
# better performance than the actual intel driver
|
|
||||||
services.xserver.videoDrivers = [ "modesetting" ];
|
|
||||||
|
|
||||||
# needed for our broadcom/brcm 4377b chip to work
|
|
||||||
hardware.firmware = with pkgs; [
|
|
||||||
my.apple-firmware
|
|
||||||
];
|
|
||||||
|
|
||||||
# handle suspend issues (fuck you broadcom!)
|
|
||||||
powerManagement.powerDownCommands = ''
|
|
||||||
${pkgs.kmod}/bin/modprobe -r brcmfmac_wcc
|
|
||||||
${pkgs.kmod}/bin/modprobe -r brcmfmac
|
|
||||||
${pkgs.kmod}/bin/modprobe -r hci_bcm4377
|
|
||||||
'';
|
|
||||||
powerManagement.resumeCommands = ''
|
|
||||||
${pkgs.kmod}/bin/modprobe hci_bcm4377
|
|
||||||
${pkgs.kmod}/bin/modprobe brcmfmac
|
|
||||||
${pkgs.kmod}/bin/modprobe brcmfmac_wcc
|
|
||||||
'';
|
|
||||||
|
|
||||||
# VA-API
|
|
||||||
hardware.opengl = {
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
intel-media-driver
|
|
||||||
intel-vaapi-driver
|
|
||||||
libvdpau-va-gl
|
|
||||||
];
|
|
||||||
|
|
||||||
extraPackages32 = with pkgs.pkgsi686Linux; [
|
|
||||||
intel-media-driver
|
|
||||||
intel-vaapi-driver
|
|
||||||
libvdpau-va-gl
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.variables = {
|
|
||||||
LIBVA_DRIVER_NAME= "iHD";
|
|
||||||
VDPAU_DRIVER = "va_gl";
|
|
||||||
# VA-API on firefox
|
|
||||||
MOZ_DISABLE_RDD_SANDBOX = "1";
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ intel-gpu-tools ];
|
|
||||||
|
|
||||||
boot.kernelParams = [
|
|
||||||
# enable the i915 sandybridge framebuffer compression (475mw savings)
|
|
||||||
"i915.i915_enable_fbc=1"
|
|
||||||
"i915.fastboot=1"
|
|
||||||
"i915.enable_gvt=1"
|
|
||||||
# makes waking up from suspend much more bareable
|
|
||||||
"mem_sleep_default=s2idle"
|
|
||||||
];
|
|
||||||
}
|
|
|
@ -21,7 +21,7 @@
|
||||||
# compatibility
|
# compatibility
|
||||||
wineWowPackages.waylandFull winetricks
|
wineWowPackages.waylandFull winetricks
|
||||||
# misc
|
# misc
|
||||||
bat file which prismlauncher yt-dlp wl-screenrec
|
bat file which tree prismlauncher yt-dlp wl-screenrec
|
||||||
] ++ (with pkgs.my; [
|
] ++ (with pkgs.my; [
|
||||||
# none yet
|
# none yet
|
||||||
]) ++ (with pkgs.gnome; [
|
]) ++ (with pkgs.gnome; [
|
||||||
|
@ -75,12 +75,10 @@
|
||||||
distractions.discord.vesktop = true;
|
distractions.discord.vesktop = true;
|
||||||
distractions.steam.enable = true;
|
distractions.steam.enable = true;
|
||||||
# tools
|
# tools
|
||||||
tools.eza.enable = true;
|
|
||||||
tools.gpg.enable = true;
|
|
||||||
tools.mpv.enable = true;
|
tools.mpv.enable = true;
|
||||||
|
tools.gpg.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
systemd.services.NetworkManager-wait-online.enable = false;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
inputs.hardware.nixosModules.apple-t2
|
inputs.hardware.nixosModules.apple-t2
|
||||||
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
|
||||||
./apple-macbook-air-9-1.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
@ -28,6 +26,54 @@
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# support power features such as suspend to ram
|
||||||
|
powerManagement.enable = true;
|
||||||
|
# tune power saving options on boot
|
||||||
|
powerManagement.powertop.enable = true;
|
||||||
|
# thermald proactively prevents overheating on intel CPUs and works well with other tools
|
||||||
|
services.thermald.enable = true;
|
||||||
|
# power-profile-daemon for power management
|
||||||
|
services.power-profiles-daemon.enable = true;
|
||||||
|
# manage fans for macbook devices
|
||||||
|
services.mbpfan.enable = true;
|
||||||
|
|
||||||
|
# better performance than the actual intel driver
|
||||||
|
services.xserver.videoDrivers = [ "modesetting" ];
|
||||||
|
|
||||||
|
# needed for our broadcom/brcm 4377b chip to work
|
||||||
|
hardware.firmware = with pkgs; [
|
||||||
|
my.apple-firmware
|
||||||
|
];
|
||||||
|
|
||||||
|
# VA-API
|
||||||
|
hardware.opengl = {
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
intel-media-driver
|
||||||
|
intel-vaapi-driver
|
||||||
|
libvdpau-va-gl
|
||||||
|
];
|
||||||
|
|
||||||
|
extraPackages32 = with pkgs.pkgsi686Linux; [
|
||||||
|
intel-media-driver
|
||||||
|
intel-vaapi-driver
|
||||||
|
libvdpau-va-gl
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.variables = {
|
||||||
|
LIBVA_DRIVER_NAME= "iHD";
|
||||||
|
VDPAU_DRIVER = "va_gl";
|
||||||
|
# VA-API on firefox
|
||||||
|
MOZ_DISABLE_RDD_SANDBOX = "1";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.kernelParams = [
|
||||||
|
# enable the i915 sandybridge framebuffer compression (475mw savings)
|
||||||
|
"i915.i915_enable_fbc=1"
|
||||||
|
"i915.fastboot=1"
|
||||||
|
"enable_gvt=1"
|
||||||
|
];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" =
|
||||||
{ device = "/dev/disk/by-uuid/0f09afdc-88e4-4764-818b-77828931278f";
|
{ device = "/dev/disk/by-uuid/0f09afdc-88e4-4764-818b-77828931278f";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
|
|
|
@ -21,7 +21,6 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.displayManager.sessionPackages = [ cfg.package ];
|
services.displayManager.sessionPackages = [ cfg.package ];
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPortals = [ pkgs.xdg-desktop-portal-gtk cfg.portalPackage ];
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk cfg.portalPackage ];
|
||||||
|
@ -31,15 +30,6 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# fixes a few things, most notibly, xwayland
|
|
||||||
programs.hyprland = {
|
|
||||||
enable = true;
|
|
||||||
xwayland.enable = true;
|
|
||||||
package = cfg.package;
|
|
||||||
portalPackage = cfg.portalPackage;
|
|
||||||
};
|
|
||||||
|
|
||||||
hm.wayland.windowManager.hyprland = {
|
hm.wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
|
@ -94,9 +84,6 @@ in {
|
||||||
# scroll through workspaces with mod + scroll
|
# scroll through workspaces with mod + scroll
|
||||||
"$mod, mouse_down, workspace, e+1"
|
"$mod, mouse_down, workspace, e+1"
|
||||||
"$mod, mouse_up, workspace, e-1"
|
"$mod, mouse_up, workspace, e-1"
|
||||||
# alternatively, scroll through workspaces with mod + brackets
|
|
||||||
"$mod, bracketleft, workspace, e-1"
|
|
||||||
"$mod, bracketright, workspace, e+1"
|
|
||||||
] ++ (
|
] ++ (
|
||||||
# workspaces
|
# workspaces
|
||||||
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
||||||
|
@ -150,21 +137,33 @@ in {
|
||||||
windowrulev2 = [
|
windowrulev2 = [
|
||||||
# common popups
|
# common popups
|
||||||
"float, class:org.gnome.FileRoller"
|
"float, class:org.gnome.FileRoller"
|
||||||
|
"center, class:org.gnome.FileRoller"
|
||||||
"size 1100 650, class:org.gnome.FileRoller"
|
"size 1100 650, class:org.gnome.FileRoller"
|
||||||
"float, class:org.gnome.Loupe"
|
"float, class:org.gnome.Loupe"
|
||||||
|
"center, class:org.gnome.Loupe"
|
||||||
"size 1100 650, class:org.gnome.Loupe"
|
"size 1100 650, class:org.gnome.Loupe"
|
||||||
"float, initialTitle:^Open Folder$"
|
"float, initialTitle:^Open Folder$"
|
||||||
|
"center, initialTitle:^Open Folder$"
|
||||||
"size 1100 650, initialTitle:^Open Folder$"
|
"size 1100 650, initialTitle:^Open Folder$"
|
||||||
"float, initialTitle:^Open File$"
|
"float, initialTitle:^Open File$"
|
||||||
|
"center, initialTitle:^Open File$"
|
||||||
"size 1100 650, initialTitle:^Open File$"
|
"size 1100 650, initialTitle:^Open File$"
|
||||||
"float, initialTitle:^Open Files$"
|
"float, initialTitle:^Open Files$"
|
||||||
|
"center, initialTitle:^Open Files$"
|
||||||
"size 1100 650, initialTitle:^Open Files$"
|
"size 1100 650, initialTitle:^Open Files$"
|
||||||
"float, initialTitle:^Save As$"
|
"float, initialTitle:^Save As$"
|
||||||
|
"center, initialTitle:^Save As$"
|
||||||
"size 1100 650, initialTitle:^Save As$"
|
"size 1100 650, initialTitle:^Save As$"
|
||||||
"float, initialTitle:^Select a file to open$"
|
"float, initialTitle:^Select a file to open$"
|
||||||
|
"center, initialTitle:^Select a file to open$"
|
||||||
"size 1100 650, initialTitle:^Select a file to open$"
|
"size 1100 650, initialTitle:^Select a file to open$"
|
||||||
"float, initialTitle:^File Upload$"
|
"float, initialTitle:^File Upload$"
|
||||||
|
"center, initialTitle:^File Upload$"
|
||||||
"size 1100 650, initialTitle:^File Upload$"
|
"size 1100 650, initialTitle:^File Upload$"
|
||||||
|
# https://github.com/hyprwm/Hyprland/issues/6154
|
||||||
|
"center, class:^gcr-prompter"
|
||||||
|
"center, class:^pinentry-"
|
||||||
|
"center, class:^polkit-"
|
||||||
|
|
||||||
"float, class:\.exe$"
|
"float, class:\.exe$"
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@ in {
|
||||||
hide_cursor = false;
|
hide_cursor = false;
|
||||||
no_fade_in = true;
|
no_fade_in = true;
|
||||||
no_fade_out = true;
|
no_fade_out = true;
|
||||||
text_trim = false;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
background = [
|
background = [
|
||||||
|
|
|
@ -17,7 +17,6 @@ in {
|
||||||
usernamehw.errorlens
|
usernamehw.errorlens
|
||||||
editorconfig.editorconfig
|
editorconfig.editorconfig
|
||||||
ms-vsliveshare.vsliveshare
|
ms-vsliveshare.vsliveshare
|
||||||
ms-vscode-remote.remote-ssh
|
|
||||||
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
{
|
{
|
||||||
name = "discord-vscode";
|
name = "discord-vscode";
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
|
||||||
cfg = config.modules.software.tools.eza;
|
|
||||||
in {
|
|
||||||
options.modules.software.tools.eza = {
|
|
||||||
enable = mkEnableOption "Enable eza, a modern replacement for ls";
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
hm.programs.eza.enable = true;
|
|
||||||
hm.programs.eza.git = true;
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue