Make home-manager config for ll-latitude-e5591 build again
This commit is contained in:
parent
478d31081a
commit
83a6b1c73c
78 changed files with 236 additions and 426 deletions
3
nixos/tweaks/aarch64-crosscompile.nix
Normal file
3
nixos/tweaks/aarch64-crosscompile.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ ... }: {
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
}
|
25
nixos/tweaks/bluetooth.nix
Normal file
25
nixos/tweaks/bluetooth.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
services.blueman.enable = true;
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
settings.General = {
|
||||
Enable = "Source,Sink,Media,Socket";
|
||||
Experimental = true;
|
||||
};
|
||||
};
|
||||
|
||||
# PipeWire appears to have marginally less shitty bluetooth support
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
audio.enable = true;
|
||||
pulse.enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
jack.enable = true;
|
||||
};
|
||||
}
|
3
nixos/tweaks/disable_firewall.nix
Normal file
3
nixos/tweaks/disable_firewall.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ ... }: {
|
||||
networking.firewall.enable = false;
|
||||
}
|
12
nixos/tweaks/disable_nixos_user.nix
Normal file
12
nixos/tweaks/disable_nixos_user.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, lib, pkgs, ... }: {
|
||||
services.getty.autologinUser = lib.mkForce null;
|
||||
|
||||
users.groups.nixos = {};
|
||||
users.users.nixos.group = "nixos";
|
||||
users.users.nixos.isSystemUser = lib.mkForce true;
|
||||
users.users.nixos.isNormalUser = lib.mkForce false;
|
||||
users.users.nixos.initialHashedPassword = lib.mkForce "!";
|
||||
|
||||
# Disable root as well
|
||||
users.users.root.initialHashedPassword = lib.mkForce "!";
|
||||
}
|
4
nixos/tweaks/enable_flakes.nix
Normal file
4
nixos/tweaks/enable_flakes.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ ... }: {
|
||||
nix.channel.enable = false;
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
}
|
6
nixos/tweaks/intel_igpu_screen_tearing.nix
Normal file
6
nixos/tweaks/intel_igpu_screen_tearing.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }: {
|
||||
# Fix screen tearing on Intel iGPU
|
||||
# TODO: I think this is still broken
|
||||
services.picom.enable = true;
|
||||
services.picom.vSync = true;
|
||||
}
|
3
nixos/tweaks/powersave.nix
Normal file
3
nixos/tweaks/powersave.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ ... }: {
|
||||
powerManagement.cpuFreqGovernor = "powersave";
|
||||
}
|
4
nixos/tweaks/systemd-resolved_nonsense.nix
Normal file
4
nixos/tweaks/systemd-resolved_nonsense.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
{ ... }: {
|
||||
# I...this is dumb...
|
||||
services.resolved.extraConfig = "ResolveUnicastSingleLabel=yes";
|
||||
}
|
16
nixos/tweaks/zfs.nix
Normal file
16
nixos/tweaks/zfs.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, ... }: {
|
||||
boot.supportedFilesystems = [ "zfs" ];
|
||||
boot.zfs.devNodes = "/dev/disk/by-id/";
|
||||
|
||||
services.zfs.autoScrub.enable = true;
|
||||
services.zfs.autoScrub.interval = "weekly";
|
||||
|
||||
boot.extraModprobeConfig = ''
|
||||
# Under low-write conditions, wait up to 30 seconds before committing data to disk
|
||||
options zfs zfs_txg_timeout=30
|
||||
|
||||
# Stupid silent data corruption bug (https://github.com/openzfs/zfs/issues/15933)
|
||||
options zfs zfs_bclone_enabled=0
|
||||
options zfs zfs_dmu_offset_next_sync=0
|
||||
'';
|
||||
}
|
7
nixos/tweaks/zram.nix
Normal file
7
nixos/tweaks/zram.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
algorithm = "zstd";
|
||||
memoryPercent = 200;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue