From 6775ea533c9ad8e7aef7e809f989e86e47dc09cd Mon Sep 17 00:00:00 2001 From: CDaut Date: Wed, 24 Sep 2025 00:03:11 +0200 Subject: [PATCH 1/2] switch to systemd-boot --- configuration.nix | 16 +++++++++++----- hardware_configuration.nix | 2 +- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index 5344ca8..77610e1 100644 --- a/configuration.nix +++ b/configuration.nix @@ -11,12 +11,18 @@ # Bootloader. boot.loader = { efi.canTouchEfiVariables = true; - grub = { + systemd-boot = { enable = true; - devices = [ "nodev" ]; - efiSupport = true; - useOSProber = true; - fontSize = 30; + consoleMode = "auto"; + extraEntries = { + "Arch.conf" = '' + title Arch Linux (gaming) + sort-key arch + linux /vmlinuz-linux + initrd /initramfs-linux.img + options cryptdevice=PARTUUID=6fa1b92d-1667-420a-a0e6-8f3116759115:root root=/dev/mapper/root zswap.enabled=0 rw rootfstype=btrfs amdgpu module_blacklist=nvidia + ''; + }; }; }; diff --git a/hardware_configuration.nix b/hardware_configuration.nix index aa7616b..76a8ffb 100644 --- a/hardware_configuration.nix +++ b/hardware_configuration.nix @@ -29,7 +29,7 @@ { device = "/dev/disk/by-uuid/C8F1-789F"; fsType = "vfat"; - options = [ "fmask=0022" "dmask=0022" ]; + options = [ "fmask=0077" "dmask=0077" ]; }; swapDevices = [ From 022aef7a7d19cd046bda27f9ba34cd2338fd79e3 Mon Sep 17 00:00:00 2001 From: CDaut Date: Wed, 24 Sep 2025 00:05:48 +0200 Subject: [PATCH 2/2] rename depracated vars --- configuration.nix | 2 +- programm_configs/vscode.nix | 2 +- programm_configs/zsh.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index 77610e1..b4d51d3 100644 --- a/configuration.nix +++ b/configuration.nix @@ -179,7 +179,7 @@ wget cifs-utils saleae-logic-2 - ] ++ (if !inputs.x11mode then [ greetd.regreet ] else [ ]); + ] ++ (if !inputs.x11mode then [ regreet ] else [ ]); programs.dconf.enable = true; diff --git a/programm_configs/vscode.nix b/programm_configs/vscode.nix index 09c3c21..4f1b5bf 100644 --- a/programm_configs/vscode.nix +++ b/programm_configs/vscode.nix @@ -3,7 +3,7 @@ programs.vscode = { enable = true; package = pkgs.vscodium; - extensions = with pkgs.vscode-extensions; [ + profiles.default.extensions = with pkgs.vscode-extensions; [ bbenoist.nix james-yu.latex-workshop jnoortheen.nix-ide diff --git a/programm_configs/zsh.nix b/programm_configs/zsh.nix index b417ce5..3d7bab4 100644 --- a/programm_configs/zsh.nix +++ b/programm_configs/zsh.nix @@ -9,7 +9,7 @@ ssh = "TERM=xterm-256color $(which -p ssh)"; }; - initExtra = "eval \"$(direnv hook zsh)\""; + initContent = "eval \"$(direnv hook zsh)\""; oh-my-zsh = { enable = true;