Zaer1n’in Nix Dotfiles deposu nasıl kurulur?

855250

Picopat
Katılım
9 Kasım 2024
Mesajlar
294
Çözümler
4
NixOS ile Hyprland kullanıyorum ve şu an Zaer1n’in Nix Dotfiles deposunu sistemime kurmak istiyorum. Ancak nasıl yapacağımı tam olarak çözemedim. Aşağıdaki "Installation" kısmına bakarak kurulum yapmaya çalıştım, ancak birkaç hata aldım. Yardımcı olursanız çok sevinirim. @kaan.w

Link:

building the system configuration...
updating systemd-boot from 256.10 to 256.8
Skipping "/boot/EFI/systemd/systemd-bootx64.efi", newer boot loader version in place already.
Skipping "/boot/EFI/BOOT/BOOTX64.EFI", it's owned by another boot loader (no version info found).
Traceback (most recent call last):
File "/nix/store/5zkidlhap2js788qbbl0nywp4821j86f-systemd-boot/bin/systemd-boot", line 435, in <module>
main()
File "/nix/store/5zkidlhap2js788qbbl0nywp4821j86f-systemd-boot/bin/systemd-boot", line 418, in main
install_bootloader(args)
File "/nix/store/5zkidlhap2js788qbbl0nywp4821j86f-systemd-boot/bin/systemd-boot", line 352, in install_bootloader
run(
File "/nix/store/5zkidlhap2js788qbbl0nywp4821j86f-systemd-boot/bin/systemd-boot", line 58, in run
return subprocess.run(cmd, check=True, text=True, stdout=stdout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/c9m6yd8fg1flz2j5r4bif1ib5j20a0cy-python3-3.12.8
/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/nix/store/lji0hh2w2rv6q9mal3vpxbg413d57vfd-systemd-256.8/bin/bootctl', '--esp-path=/boot', 'update']' returned non-zero exit status 1.
Failed to install bootloader
verdiği hata bu @kaan.w

@Maomao siz yardımcı olabilir misiniz?
 
Son düzenleme:
@Maomao peki, nixos için kullanışlı olduğunu düşündüğünüz başka dotfiles önerileriniz var mı?

Ne yalan söyleyeyim hiçbir dotfilesi kendi bilgisayarımda çalıştırıp kullanamadım, bu yüzden kendim yazmaya karar verdim.

configuration.nix dosyanızı yeniden paylaşır mısınız? Belki sadece Home-Manager kurulumu ile işi çözebiliriz.

Bash:
cat /etc/nixos/configuration.nix
 
Ne yalan söyleyeyim hiçbir dotfilesi kendi bilgisayarımda çalıştırıp kullanamadım, bu yüzden kendim yazmaya karar verdim.

configuration.nix dosyanızı yeniden paylaşır mısınız? Belki sadece Home-Manager kurulumu ile işi çözebiliriz.

Bash:
cat /etc/nixos/configuration.nix

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).

{ config, pkgs, ... }:

{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];

# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;

networking.hostName = "nixos"; # Define your hostname.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.

# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";

# Enable networking
networking.networkmanager.enable = true;

# Set your time zone.
time.timeZone = "Europe/Istanbul";

# Select internationalisation properties.
i18n.defaultLocale = "tr_TR.UTF-8";

i18n.extraLocaleSettings = {
LC_ADDRESS = "tr_TR.UTF-8";
LC_IDENTIFICATION = "tr_TR.UTF-8";
LC_MEASUREMENT = "tr_TR.UTF-8";
LC_MONETARY = "tr_TR.UTF-8";
LC_NAME = "tr_TR.UTF-8";
LC_NUMERIC = "tr_TR.UTF-8";
LC_PAPER = "tr_TR.UTF-8";
LC_TELEPHONE = "tr_TR.UTF-8";
LC_TIME = "tr_TR.UTF-8";
};

# Enable the X11 windowing system.
services.xserver.enable = true;

# Enable the GNOME Desktop Environment.
services.xserver.displayManager.gdm.enable = true;
services.xserver.desktopManager.gnome.enable = true;

# Configure keymap in X11
services.xserver.xkb = {
layout = "tr";
variant = "";
};

# Configure console keymap
console.keyMap = "trq";

# Enable CUPS to print documents.
services.printing.enable = true;

# Enable sound with pipewire.
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;

# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
};

# Enable touchpad support (enabled default in most desktopManager).
# services.xserver.libinput.enable = true;

# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.teccuru = {
isNormalUser = true;
description = "Teccuru!";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
# thunderbird
];
};

# Install firefox.
programs.firefox.enable = true;

# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
# vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
# wget
git
kitty
dolphin
wofi
];

# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;
# programs.gnupg.agent = {
# enable = true;
# enableSSHSupport = true;
# };

# List services that you want to enable:

# Enable the OpenSSH daemon.
# services.openssh.enable = true;

# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;

# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on NixOS Search).
system.stateVersion = "24.11"; # Did you read the comment?
programs.hyprland.enable = true;

services.flatpak.enable = true;
}
 
"environment.system packages" kısmını şu şekilde yeniden düzenleyin:

Bash:
environment.systemPackages = with pkgs; [
 vim.
 git.
 kitty.
 dolphin.
 wofi.
 home-manager
 tree.
];

Daha sonra en alta, Flatpak yazan yerin altına şunu ekleyin:

Bash:
programs.zsh.enable = true;

Daha sonra sistemi rebuild edin ve terminalde şu komutu çalıştırın:

Bash:
home-manager switch --flake ./nix-dotfiles

Umarım olur hocam.
 

Bu konuyu görüntüleyen kullanıcılar

Technopat Haberler

Yeni konular

Geri
Yukarı