Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Ran script and it removed all my existing apps #49

Open
1 task done
TuxManxD opened this issue Feb 4, 2025 · 1 comment
Open
1 task done

[Bug]: Ran script and it removed all my existing apps #49

TuxManxD opened this issue Feb 4, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@TuxManxD
Copy link

TuxManxD commented Feb 4, 2025

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Yes

System Info and Version

System/Version info
<Paste the output of the command here, without removing any formatting around this>

System:
Host: hp-victus Kernel: 6.6.74 arch: x86_64 bits: 64
Desktop: GNOME v: N/A Distro: NixOS 24.11 (Vicuna)
Machine:
Type: Laptop System: HP product: Victus by HP Gaming Laptop 15-fb0xxx v: N/A
serial:
Mobo: HP model: 8A3D v: 35.46 serial: UEFI: AMI
v: F.21 date: 05/23/2024
Battery:
ID-1: BAT0 charge: 55.6 Wh (85.1%) condition: 65.3/65.3 Wh (100.0%)
CPU:
Info: 6-core model: AMD Ryzen 5 5600H with Radeon Graphics bits: 64
type: MT MCP cache: L2: 3 MiB
Speed (MHz): avg: 1623 min/max: 400/4280 cores: 1: 2578 2: 400 3: 1650
4: 1668 5: 1877 6: 400 7: 2795 8: 2234 9: 1684 10: 400 11: 1914 12: 1885
Graphics:
Device-1: NVIDIA GA107M [GeForce RTX 3050 Mobile] driver: nvidia v: 565.77
Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
driver: amdgpu v: kernel
Device-3: Quanta HP Wide Vision HD Camera driver: uvcvideo type: USB
Display: wayland server: Xwayland v: 24.1.4 compositor: gnome-shell
driver: X: loaded: modesetting,nvidia unloaded: vesa dri: radeonsi
gpu: amdgpu resolution: no compositor data resolution: 1920x1080
API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
Device-1: NVIDIA GA107 High Definition Audio driver: snd_hda_intel
Device-2: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: snd_rn_pci_acp3x
Device-4: AMD Family 17h/19h/1ah HD Audio driver: snd_hda_intel
API: ALSA v: k6.6.74 status: kernel-api
Server-1: PipeWire v: 1.2.7 status: active
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: eno1 state: down mac: d0:ad:08:18:c8:52
Device-2: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
driver: mt7921e
IF: wlo1 state: up mac: 20:0b:74:0d:62:71
Bluetooth:
Device-1: MediaTek Wireless_Device driver: btusb type: USB
Report: hciconfig ID: hci0 state: up address: 20:0B:74:0D:62:70 bt-v: 5.2
Drives:
Local Storage: total: 476.94 GiB used: 291.48 GiB (61.1%)
ID-1: /dev/nvme0n1 vendor: KIOXIA model: N/A size: 476.94 GiB
Partition:
ID-1: / size: 60.81 GiB used: 54.76 GiB (90.1%) fs: ext4 dev: /dev/nvme0n1p2
ID-2: /boot size: 512 MiB used: 131.4 MiB (25.7%) fs: vfat
dev: /dev/nvme0n1p1
ID-3: /home size: 406.78 GiB used: 236.59 GiB (58.2%) fs: ext4
dev: /dev/nvme0n1p3
Swap:
ID-1: swap-1 type: zram size: 4.49 GiB used: 0 KiB (0.0%) dev: /dev/zram0
Sensors:
Src: /sys System Temperatures: cpu: 60.5 C mobo: 46.0 C gpu: amdgpu
temp: 52.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 16 GiB note: est. available: 14.96 GiB used: 5.42 GiB (36.2%)
Processes: 352 Uptime: 0h 57m Shell: Bash inxi: 3.3.35

KooL's Dots version

v2.3.10

Description

basically I ran the script and it removed all my apps that I have set in /etc/nixos/configuration.nix any way to prevent this from happening again or a manual way ? thanks in advance

How to reproduce

have this as your config in /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 = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot/efi"; # ← use the same mount point here.
};
grub = {
efiSupport = true;
#efiInstallAsRemovable = true; # in case canTouchEfiVariables doesn't work for your system
device = "nodev";
};
};

Enable flakes

nix.settings.experimental-features = [ "nix-command" "flakes" ];

networking.hostName = "hp-victus"; # 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 = "Africa/Tunis";

Select internationalisation properties.

i18n.defaultLocale = "en_US.UTF-8";

i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.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 = "us";
variant = "";
};

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.zakariya = {
isNormalUser = true;
description = "zakariya";
extraGroups = [ "networkmanager" "wheel" ];
packages = with pkgs; [
# thunderbird
];
};

Install firefox.

programs.firefox.enable = true;

Allow unfree packages

nixpkgs.config.allowUnfree = true;

List packages installed in system profile. To search, run:

$ nix search wget

environment.systemPackages = with pkgs; [
fastfetch bibata-cursors discord mangohud mangojuice adw-gtk3
gradience python3 python312Packages.pip rubik
];

Enable flatpak

services.flatpak.enable = true;

Install steam

programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};

Enable gamemode

programs.gamemode.enable = true;

Enable hyprland

programs.hyprland.enable = true;

Enable waydroid

virtualisation.waydroid.enable = true;

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;

Enable OpenGL

hardware.graphics = {
enable = true;
};

Load nvidia driver for Xorg and Wayland

services.xserver.videoDrivers = ["nvidia"];

hardware.nvidia = {

# Modesetting is required.
modesetting.enable = true;

# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead 
# of just the bare essentials.
powerManagement.enable = false;

# Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
powerManagement.finegrained = false;

# Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of 
# supported GPUs is at: 
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus 
# Only available from driver 515.43.04+
open = true;

# Enable the Nvidia settings menu,
# accessible via `nvidia-settings`.
nvidiaSettings = true;

# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.beta;

};
hardware.nvidia.prime = {
offload = {
enable = true;
enableOffloadCmd = true;
};
# Make sure to use the correct Bus ID values for your system!
amdgpuBusId = "PCI:06:00:0";
nvidiaBusId = "PCI:01:00:0";

};

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 https://nixos.org/nixos/options.html).

system.stateVersion = "24.11"; # Did you read the comment?

}

install logs, images or videos

Image
gnome desktop nuked xD

@TuxManxD TuxManxD added the bug Something isn't working label Feb 4, 2025
@TuxManxD
Copy link
Author

TuxManxD commented Feb 4, 2025

note that I'm a newbie for nixos I recently switched from arch :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants