mirror of
https://github.com/thilobillerbeck/dotfiles.git
synced 2025-05-18 22:47:04 +02:00
update laptop config
This commit is contained in:
parent
00b51d4644
commit
780a27a95c
6 changed files with 210 additions and 102 deletions
|
@ -1,39 +1,27 @@
|
||||||
{
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
boot = {
|
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
|
||||||
initrd = {
|
boot.initrd.kernelModules = [ ];
|
||||||
availableKernelModules = [
|
boot.kernelModules = [ ];
|
||||||
"nvme"
|
boot.extraModulePackages = [ ];
|
||||||
"xhci_pci"
|
|
||||||
"usb_storage"
|
fileSystems."/" =
|
||||||
"sd_mod"
|
{ device = "/dev/disk/by-uuid/7e935fd6-a68d-4d1a-8572-24471babd317";
|
||||||
];
|
fsType = "ext4";
|
||||||
kernelModules = [ ];
|
|
||||||
};
|
};
|
||||||
kernelModules = [ "kvm-amd" ];
|
|
||||||
extraModulePackages = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
fileSystems."/" = {
|
boot.initrd.luks.devices."luks-6d235013-6562-4a8e-8793-9a32b91cd8c1".device = "/dev/disk/by-uuid/6d235013-6562-4a8e-8793-9a32b91cd8c1";
|
||||||
device = "/dev/disk/by-uuid/2e1227f6-8725-43a3-aeb6-961df4ed9b25";
|
|
||||||
fsType = "ext4";
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.initrd.luks.devices."luks-6f077715-c436-4254-acb2-66d8be0a0c55".device =
|
fileSystems."/boot" =
|
||||||
"/dev/disk/by-uuid/6f077715-c436-4254-acb2-66d8be0a0c55";
|
{ device = "/dev/disk/by-uuid/114C-13A0";
|
||||||
|
fsType = "vfat";
|
||||||
fileSystems."/boot" = {
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
device = "/dev/disk/by-uuid/877C-C918";
|
};
|
||||||
fsType = "vfat";
|
|
||||||
};
|
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
@ -48,3 +36,4 @@
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
{ inputs, pkgs, ... }:
|
{
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
@ -7,6 +13,8 @@
|
||||||
extraSpecialArgs = {
|
extraSpecialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
|
backupFileExtension = ".bak";
|
||||||
|
|
||||||
users.thilo = {
|
users.thilo = {
|
||||||
imports = [ ./../../home-manager/modules/machine.nix ];
|
imports = [ ./../../home-manager/modules/machine.nix ];
|
||||||
|
|
||||||
|
@ -16,17 +24,45 @@
|
||||||
isGnome = false;
|
isGnome = false;
|
||||||
noiseSuppression.enable = true;
|
noiseSuppression.enable = true;
|
||||||
isGraphical = true;
|
isGraphical = true;
|
||||||
|
nixVersion = pkgs.lix;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
/*
|
||||||
LD_LIBRARY_PATH = "${pkgs.libGL}/lib";
|
xsession.pointerCursor = {
|
||||||
};
|
name = "Bibata-Modern-Classic";
|
||||||
|
package = pkgs.bibata-cursors;
|
||||||
|
size = 128;
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
nix = {
|
nix = {
|
||||||
package = pkgs.nixVersions.latest;
|
package = lib.mkDefault pkgs.lix;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [ pkgs.nixVersions.latest ];
|
home.packages = with pkgs; [
|
||||||
|
lix
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.distrobox = {
|
||||||
|
enable = true;
|
||||||
|
containers = {
|
||||||
|
arch = {
|
||||||
|
image = "quay.io/toolbx/arch-toolbox";
|
||||||
|
additional_packages = "python python-pip nodejs";
|
||||||
|
volume = "/etc/static/profiles/per-user:/etc/profiles/per-user:ro";
|
||||||
|
replace = true;
|
||||||
|
};
|
||||||
|
fedora = {
|
||||||
|
image = "quay.io/fedora/fedora-toolbox:41";
|
||||||
|
additional_packages = "python python-pip code";
|
||||||
|
home = "/home/thilo/.distrobox/fedora";
|
||||||
|
pre_init_hooks = ''rpm --import https://packages.microsoft.com/keys/microsoft.asc && echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\nautorefresh=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null'';
|
||||||
|
replace = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,81 +8,163 @@
|
||||||
./../../nixos/builders.nix
|
./../../nixos/builders.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Bootloader.
|
boot = {
|
||||||
boot.loader = {
|
loader = {
|
||||||
systemd-boot.enable = true;
|
grub = {
|
||||||
efi.canTouchEfiVariables = true;
|
efiSupport = true;
|
||||||
};
|
device = "nodev";
|
||||||
boot.plymouth.enable = true;
|
useOSProber = true;
|
||||||
|
|
||||||
# Setup keyfile
|
|
||||||
boot.initrd.secrets = {
|
|
||||||
"/crypto_keyfile.bin" = null;
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostName = "thilo-laptop"; # Define your hostname.
|
|
||||||
|
|
||||||
# Configure console keymap
|
|
||||||
console.keyMap = "de";
|
|
||||||
|
|
||||||
environment.gnome.excludePackages = with pkgs; [
|
|
||||||
tracker
|
|
||||||
tracker-miners
|
|
||||||
];
|
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
|
||||||
|
|
||||||
services = {
|
|
||||||
xserver = {
|
|
||||||
enable = true;
|
|
||||||
displayManager.sddm.enable = true;
|
|
||||||
xkb = {
|
|
||||||
variant = "";
|
|
||||||
layout = "us";
|
|
||||||
};
|
};
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
gnome = {
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
tracker-miners.enable = false;
|
binfmt.registrations.appimage = {
|
||||||
tracker.enable = false;
|
wrapInterpreterInShell = false;
|
||||||
|
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
||||||
|
recognitionType = "magic";
|
||||||
|
offset = 0;
|
||||||
|
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
|
||||||
|
magicOrExtension = ''\x7fELF....AI\x02'';
|
||||||
};
|
};
|
||||||
blueman.enable = true;
|
plymouth.enable = true;
|
||||||
fwupd.enable = true;
|
};
|
||||||
|
|
||||||
|
networking.hostName = "thilo-laptop";
|
||||||
|
|
||||||
|
# Enable the X11 windowing system.
|
||||||
|
services = {
|
||||||
|
xserver.enable = true;
|
||||||
|
displayManager.sddm.enable = true;
|
||||||
desktopManager.plasma6.enable = true;
|
desktopManager.plasma6.enable = true;
|
||||||
|
xserver.xkb = {
|
||||||
|
layout = "de";
|
||||||
|
variant = "";
|
||||||
|
};
|
||||||
|
envfs.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
|
programs.nix-ld = {
|
||||||
programs.gamescope = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
capSysNice = true;
|
libraries =
|
||||||
|
(pkgs.steam-run.args.multiPkgs pkgs)
|
||||||
|
++ (with pkgs; [
|
||||||
|
nss
|
||||||
|
sane-backends
|
||||||
|
nspr
|
||||||
|
zlib
|
||||||
|
libglvnd
|
||||||
|
qt5.qtbase
|
||||||
|
qt5.qtsvg
|
||||||
|
qt5.qtdeclarative
|
||||||
|
qt5.qtwayland
|
||||||
|
pkcs11helper
|
||||||
|
stdenv.cc.cc
|
||||||
|
freetype
|
||||||
|
|
||||||
|
stdenv.cc.cc
|
||||||
|
openssl
|
||||||
|
xorg.libXcomposite
|
||||||
|
xorg.libXtst
|
||||||
|
xorg.libXrandr
|
||||||
|
xorg.libXext
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libXfixes
|
||||||
|
libGL
|
||||||
|
libva
|
||||||
|
xorg.libxcb
|
||||||
|
xorg.libXdamage
|
||||||
|
xorg.libxshmfence
|
||||||
|
xorg.libXxf86vm
|
||||||
|
libelf
|
||||||
|
glib
|
||||||
|
gtk3
|
||||||
|
bzip2
|
||||||
|
xorg.libXinerama
|
||||||
|
xorg.libXcursor
|
||||||
|
xorg.libXrender
|
||||||
|
xorg.libXScrnSaver
|
||||||
|
xorg.libXi
|
||||||
|
xorg.libSM
|
||||||
|
xorg.libICE
|
||||||
|
gnome2.GConf
|
||||||
|
nspr
|
||||||
|
nss
|
||||||
|
cups
|
||||||
|
libcap
|
||||||
|
SDL2
|
||||||
|
libusb1
|
||||||
|
dbus-glib
|
||||||
|
ffmpeg
|
||||||
|
libudev0-shim
|
||||||
|
xorg.libXt
|
||||||
|
xorg.libXmu
|
||||||
|
libogg
|
||||||
|
libvorbis
|
||||||
|
SDL
|
||||||
|
SDL2_image
|
||||||
|
glew110
|
||||||
|
libidn
|
||||||
|
tbb
|
||||||
|
flac
|
||||||
|
freeglut
|
||||||
|
libjpeg
|
||||||
|
libpng
|
||||||
|
libpng12
|
||||||
|
libsamplerate
|
||||||
|
libmikmod
|
||||||
|
libtheora
|
||||||
|
libtiff
|
||||||
|
pixman
|
||||||
|
speex
|
||||||
|
SDL_image
|
||||||
|
# SDL_ttf
|
||||||
|
SDL_mixer
|
||||||
|
# SDL2_ttf
|
||||||
|
SDL2_mixer
|
||||||
|
libappindicator-gtk2
|
||||||
|
libdbusmenu-gtk2
|
||||||
|
libindicator-gtk2
|
||||||
|
libcaca
|
||||||
|
libcanberra
|
||||||
|
libgcrypt
|
||||||
|
libvpx
|
||||||
|
librsvg
|
||||||
|
xorg.libXft
|
||||||
|
libvdpau
|
||||||
|
pango
|
||||||
|
cairo
|
||||||
|
atk
|
||||||
|
gdk-pixbuf
|
||||||
|
fontconfig
|
||||||
|
freetype
|
||||||
|
dbus
|
||||||
|
alsa-lib
|
||||||
|
expat
|
||||||
|
libdrm
|
||||||
|
mesa
|
||||||
|
libxkbcommon
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.steam.gamescopeSession = {
|
hardware.graphics = {
|
||||||
enable = true;
|
extraPackages = with pkgs; [
|
||||||
env = {
|
vaapiVdpau
|
||||||
STEAM_GAMESCOPE_VRR_SUPPORTED = "1";
|
libvdpau-va-gl
|
||||||
SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS = "0";
|
|
||||||
};
|
|
||||||
args = [
|
|
||||||
"-f"
|
|
||||||
"-F fsr"
|
|
||||||
"--rt"
|
|
||||||
"--adaptive-sync"
|
|
||||||
"-O HDMI-A-1"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
|
|
||||||
|
system.stateVersion = "25.05";
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
brlaser
|
kdePackages.skanpage
|
||||||
brgenml1lpr
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.permittedInsecurePackages = [ "nix-2.16.2" ];
|
services.resolved = {
|
||||||
|
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ];
|
domains = [ "~." ];
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.05";
|
|
||||||
}
|
}
|
||||||
|
|
6
flake.lock
generated
6
flake.lock
generated
|
@ -37,11 +37,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1743648554,
|
"lastModified": 1743781299,
|
||||||
"narHash": "sha256-23JFd+zd2GamTTdnGuFVeIg8x8C3hLpQJRh/PGTORzo=",
|
"narHash": "sha256-wLz6pjEVMXAb8EGDbXtyW98GQ8vm9cEyKhZTf/TTu24=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "107352dde4ff3c01cb5a0b3fe17f5beef37215bc",
|
"rev": "a802defb16dcdcc7fd0ff5a2d7be913ce2fe79e7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -105,8 +105,8 @@ in
|
||||||
++ (
|
++ (
|
||||||
if (config.machine.isGraphical && !config.machine.isGeneric) then
|
if (config.machine.isGraphical && !config.machine.isGeneric) then
|
||||||
[
|
[
|
||||||
jetbrains.pycharm-professional
|
# jetbrains.pycharm-professional
|
||||||
# jetbrains.webstorm
|
jetbrains.webstorm
|
||||||
# jetbrains.phpstorm
|
# jetbrains.phpstorm
|
||||||
# jetbrains.rust-rover
|
# jetbrains.rust-rover
|
||||||
# jetbrains.goland
|
# jetbrains.goland
|
||||||
|
|
|
@ -115,8 +115,9 @@ in
|
||||||
};
|
};
|
||||||
flatpak.enable = true;
|
flatpak.enable = true;
|
||||||
avahi = {
|
avahi = {
|
||||||
# enable = true;
|
enable = true;
|
||||||
# nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
mullvad-vpn = {
|
mullvad-vpn = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue