Fix laptop issues

This commit is contained in:
Paul-Henri Froidmont 2024-06-23 05:34:29 +02:00
parent 64e94d4ff8
commit 529dea61f8
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
10 changed files with 44 additions and 52 deletions

22
flake.lock generated
View file

@ -40,11 +40,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1719076240, "lastModified": 1719106959,
"narHash": "sha256-yI1e5MZTqWyrbG9JnnOCFiFNJol5ZJ/LjWD7qjrn4Xs=", "narHash": "sha256-dxrEcXldbG9pw2f+BCgu5lv7nUeHphQHhGZupaaDmGg=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "5e8f95ab8a282758813e3d8922fdaa0783ee5b41", "rev": "b5e4ae0a33bb011e9515181ff1634471a975539f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -290,16 +290,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1717476296, "lastModified": 1718530513,
"narHash": "sha256-ScHe38Tr+TxGURC17kby4mIIxOG3aJvZWXzPM79UnEk=", "narHash": "sha256-BmO8d0r+BVlwWtMLQEYnwmngqdXIuyFzMwvmTcLMee8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "095ef64aa3b2ab4a4f1bf07f29997e21e3a5576a", "rev": "a1fddf0967c33754271761d91a3d921772b30d0e",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "release-23.11", "ref": "release-24.05",
"repo": "home-manager", "repo": "home-manager",
"type": "github" "type": "github"
} }
@ -427,16 +427,16 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1718811006, "lastModified": 1718835956,
"narHash": "sha256-0Y8IrGhRmBmT7HHXlxxepg2t8j1X90++qRN3lukGaIk=", "narHash": "sha256-wM9v2yIxClRYsGHut5vHICZTK7xdrUGfrLkXvSuv6s4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "03d771e513ce90147b65fe922d87d3a0356fc125", "rev": "dd457de7e08c6d06789b1f5b88fc9327f4d96309",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-23.11", "ref": "nixos-24.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }

View file

@ -1,10 +1,10 @@
{ {
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-23.11"; url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
emacs-overlay.url = "github:nix-community/emacs-overlay"; emacs-overlay.url = "github:nix-community/emacs-overlay";

View file

@ -29,7 +29,18 @@
home-manager.users.${config.user.name} = { pkgs, config, ... }: { home-manager.users.${config.user.name} = { pkgs, config, ... }: {
services.network-manager-applet.enable = true; services.network-manager-applet.enable = true;
services.blueman-applet.enable = true; services.blueman-applet.enable = true;
wayland.windowManager.hyprland.settings = {
dwindle.no_gaps_when_only = 1;
};
}; };
services.pipewire.wireplumber.extraConfig = {
"monitor.bluez.properties" = {
"bluez5.enable-sbc-xq" = true;
"bluez5.enable-msbc" = true;
"bluez5.enable-hw-volume" = true;
"bluez5.roles" = [ "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" ];
};
};
system.stateVersion = "21.05"; system.stateVersion = "21.05";
} }

View file

@ -1,10 +1,7 @@
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
[
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = { boot = {
initrd.availableKernelModules = [ "nvme" "xhci_pci" "sdhci_pci" ]; initrd.availableKernelModules = [ "nvme" "xhci_pci" "sdhci_pci" ];
@ -15,20 +12,18 @@
extraModulePackages = [ ]; extraModulePackages = [ ];
loader.systemd-boot.enable = true; loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true; loader.efi.canTouchEfiVariables = true;
initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/1e900b2e-daea-4558-b18f-3d3a5843de61"; initrd.luks.devices."crypted".device =
"/dev/disk/by-uuid/1e900b2e-daea-4558-b18f-3d3a5843de61";
}; };
hardware.cpu.amd.updateMicrocode = true; hardware.cpu.amd.updateMicrocode = true;
fileSystems."/" = fileSystems."/" = {
{
device = "/dev/disk/by-uuid/a8abad9b-5615-4887-8431-3d80b78d073e"; device = "/dev/disk/by-uuid/a8abad9b-5615-4887-8431-3d80b78d073e";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = {
fileSystems."/boot" =
{
device = "/dev/disk/by-uuid/077C-758A"; device = "/dev/disk/by-uuid/077C-758A";
fsType = "vfat"; fsType = "vfat";
}; };
@ -42,27 +37,12 @@
bluetooth = { bluetooth = {
enable = true; enable = true;
# Enable A2DP Sink # Enable A2DP Sink
settings = { settings = { General = { Enable = "Source,Sink,Media,Socket"; }; };
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
pulseaudio = {
enable = true;
# Use full build to have Bluetooth support
package = pkgs.pulseaudioFull;
}; };
}; };
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
# Enable touchpad support.
services.xserver.libinput.enable = true;
services.xserver.videoDrivers = [ "amdgpu" "modesetting" ];
services.blueman.enable = true; services.blueman.enable = true;
services.logind.lidSwitch = "ignore"; services.logind.lidSwitch = "ignore";

View file

@ -46,7 +46,7 @@ in {
}; };
scrolling.history = 65535; scrolling.history = 65535;
font.size = 8; font.size = 8;
key_bindings = [ keyboard.bindings = [
{ {
key = "Up"; key = "Up";
mods = "Control"; mods = "Control";

View file

@ -42,7 +42,7 @@ in {
gpg-agent = { gpg-agent = {
enable = true; enable = true;
enableSshSupport = false; enableSshSupport = false;
pinentryFlavor = "gtk2"; pinentryPackage = pkgs.pinentry-gtk2;
}; };
unclutter.enable = true; unclutter.enable = true;
}; };
@ -152,7 +152,7 @@ in {
mumble mumble
libreoffice-fresh libreoffice-fresh
onlyoffice-bin onlyoffice-bin
pkgs.thunderbird thunderbird
portfolio portfolio
gnucash gnucash
transmission-remote-gtk transmission-remote-gtk

View file

@ -60,7 +60,7 @@ in {
kb_options = "caps:escape"; kb_options = "caps:escape";
numlock_by_default = "true"; numlock_by_default = "true";
touchpad = { touchpad = {
natural_scroll = true; natural_scroll = false;
disable_while_typing = true; disable_while_typing = true;
tap-to-click = false; tap-to-click = false;
middle_button_emulation = false; middle_button_emulation = false;
@ -375,6 +375,8 @@ in {
]; ];
}; };
hardware.opengl.enable = true;
security.pam.services.swaylock = { }; security.pam.services.swaylock = { };
}; };

View file

@ -18,7 +18,7 @@ in {
qt = { qt = {
enable = true; enable = true;
platformTheme = "gtk"; platformTheme.name = "gtk";
style = { style = {
name = "adwaita-dark"; name = "adwaita-dark";
package = pkgs.unstable.adwaita-qt; package = pkgs.unstable.adwaita-qt;

View file

@ -21,7 +21,7 @@ in {
size = 50000; size = 50000;
}; };
enableCompletion = true; enableCompletion = true;
enableAutosuggestions = true; autosuggestion.enable = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
initExtra = '' initExtra = ''
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search autoload -Uz up-line-or-beginning-search down-line-or-beginning-search

View file

@ -39,7 +39,6 @@ in {
# metals # Scala # metals # Scala
# Nix # Nix
nil nil
nixfmt
phpactor # PHP phpactor # PHP
#OCaml #OCaml
ocaml ocaml