From 27d757d81dae682e3d9510c9d951e5a3f98a74de Mon Sep 17 00:00:00 2001 From: martin Date: Fri, 12 Jun 2026 09:45:16 +0200 Subject: [PATCH] Plymouth Bootscreen aktiviert --- configuration.nix | 506 ++++++++++++++++++++++++---------------------- 1 file changed, 264 insertions(+), 242 deletions(-) diff --git a/configuration.nix b/configuration.nix index b3ef715..b5b7d79 100755 --- a/configuration.nix +++ b/configuration.nix @@ -1,242 +1,264 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page, on -# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). - -{ config, lib, pkgs, ... }: - -{ - imports = - [ - ./hardware-configuration.nix - ./modules/desktop/gnome.nix -# ./modules/desktop/kde.nix -# ./modules/desktop/hyprland.nix -# ./modules/desktop/niri.nix - ]; - -# Use the systemd-boot EFI boot loader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - boot.initrd.enable = true; - - # LUKS Partition - boot.initrd.luks.devices = { - dukebook0 = { - device = "/dev/disk/by-uuid/5533dddd-216c-453b-aad5-657d8e889f4c"; -preLVM = true; - }; - }; - -# # LVM Volume Mounts -# fileSystems."/home/martin/Nextcloud" = { -# device = "dev/disk/by-uuid/5142d945-7948-4bc9-85ca-7f6dc760d17a"; -# fsType = "ext4"; -# }; - - networking.hostName = "dukebook"; # Define your hostname. - # Pick only one of the below networking options. - networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. - networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. - #networking.wireless.iwd.enable = true; - # Set your time zone. - time.timeZone = "Europe/Berlin"; - - # xdg.portal = { - # enable = true; - # extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ]; - # config.common.default = [ "kde" "gtk" ]; - # }; - programs.dconf.enable = true; - # Configure network proxy if necessary - # networking.proxy.default = "http://user:password@proxy:port/"; - # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - - # Select internationalisation properties. - i18n.defaultLocale = "de_DE.UTF-8"; - console = { - font = "Lat2-Terminus16"; - keyMap = "de"; - # useXkbConfig = true; # use xkb.options in tty. - }; - - # Enable Gnome3 Keyring - #services.gnome.gnome-keyring.enable = true; - - # Enable CUPS to print documents.2 - services.printing.enable = true; - services.avahi = { - enable = true; - nssmdns4 = true; - openFirewall = true; - }; - - # Enable sound. - # sound.enable = true; - services.pulseaudio.enable = false; - - services.pipewire = { - enable = true; - alsa.enable = true; - pulse.enable = true; - }; - - # Bluetooth Support - hardware.bluetooth.enable = true; - hardware.bluetooth.powerOnBoot = true; - services.blueman.enable = true; - - # Enable touchpad support (enabled default in most desktopManager). - # services.xserver.libinput.enable = true; - - users.groups.martin.gid = 1001; - - # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.martin = { - isNormalUser = true; - group = "martin"; - extraGroups = [ "libvirtd" "networkmanager" "wheel" ]; # Enable ‘sudo’ for the user. - uid = 1001; - packages = with pkgs; []; -}; - -# users.extraUsers.martin = { -# openssh.authorizedKeys.keys = [ -# " - - # Flatpaks - services.flatpak.enable = true; - - # List packages installed in system profile. To search, run: - # $ nix search wget - environment.systemPackages = with pkgs; [ - firefox - tree - nextcloud-client - keepassxc - fastfetch - wget - git - kitty - font-awesome - symbola - noto-fonts-color-emoji - material-icons - system-config-printer - ubuntu-classic - cascadia-code - virt-manager - starship - pfetch - neovim - gnome-software - xwayland-satellite - parted - vscodium - libreoffice-fresh - hunspell - signal-desktop - ]; - - programs.niri.enable = true; - - programs.neovim = { - enable = true; - configure = { - customRC = '' - set number - set cc=80 - set list - set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:» - if &diff - colorscheme blue - endif - ''; - packages.myVimPackage = with pkgs.vimPlugins; { - start = [ ctrlp-vim ]; - }; - }; - }; - programs.neovim = { - defaultEditor = true; - viAlias = true; - vimAlias = true; - }; - - # Virtualisation - virtualisation.libvirtd.enable = true; - programs.virt-manager.enable = true; - - #fonts.packages = with pkgs; [ - # (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) - #]; - - nix = { - settings.auto-optimise-store = true; - gc = { - automatic = true; - dates = "weekly"; - options = "--delete-older-than 7d"; - }; - }; - - nix.settings.experimental-features = [ - "nix-command" "flakes" - ]; - # Automatic Updates - #system.autoUpgrade = { - # enable = true; - # channel = "https://nixos.org/channels/nixos-24.11"; - #}; - - nixpkgs.config.allowUnfree = 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; - # }; - - - # nix.nixPath = [ "nixpkgs=/home/martin/Nextcloud/IT/mydotfiles/nixos" ]; - - # Enable Gnome dash-to-dock - nixpkgs.config.firefox.enableGnomeExtensions = true; -# services.gnome.chrome-gnome-shell.enable = true; - services.gnome.gnome-browser-connector.enable = 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; - - # Copy the NixOS configuration file and link it from the resulting system - # (/run/current-system/configuration.nix). This is useful in case you - # accidentally delete configuration.nix. - # system.copySystemConfiguration = true; - - # This option defines the first version of NixOS you have installed on this particular machine, - # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. - # - # Most users should NEVER change this value after the initial install, for any reason, - # even if you've upgraded your system to a new NixOS release. - # - # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, - # so changing it will NOT upgrade your system. - # - # This value being lower than the current NixOS release does NOT mean your system is - # out of date, out of support, or vulnerable. - # - # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, - # and migrated your data accordingly. - # - # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . - system.stateVersion = "25.11"; # Did you read the comment? - -} - +# Edit this configuration file to define what should be installed on +# your system. Help is available in the configuration.nix(5) man page, on +# https://search.nixos.org/options and in the NixOS manual (`nixos-help`). + +{ config, lib, pkgs, ... }: + +{ + imports = + [ + ./hardware-configuration.nix + ./modules/desktop/gnome.nix +# ./modules/desktop/kde.nix +# ./modules/desktop/hyprland.nix +# ./modules/desktop/niri.nix + ]; + +boot = { + # Enable Plymouth boot splash + plymouth = { + enable = true; + # Optional: Choose a theme. "breeze" is standard, or use "spinner", "fade-in", etc. + theme = "breeze"; + }; + + # Enable Plymouth in initrd for a graphical LUKS password prompt + initrd.systemd.enable = true; + + # Optional: Suppress kernel messages to make the boot look cleaner + kernelParams = [ + "quiet" + "splash" + "boot.shell_on_fail" + "loglevel=3" + "rd.systemd.show_status=false" + "rd.udev.log_level=3" + "udev.log_priority=3" + ]; + }; +# Use the systemd-boot EFI boot loader. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + boot.initrd.enable = true; + + # LUKS Partition + boot.initrd.luks.devices = { + dukebook0 = { + device = "/dev/disk/by-uuid/5533dddd-216c-453b-aad5-657d8e889f4c"; +preLVM = true; + }; + }; + +# # LVM Volume Mounts +# fileSystems."/home/martin/Nextcloud" = { +# device = "dev/disk/by-uuid/5142d945-7948-4bc9-85ca-7f6dc760d17a"; +# fsType = "ext4"; +# }; + + networking.hostName = "dukebook"; # Define your hostname. + # Pick only one of the below networking options. + networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + networking.networkmanager.enable = true; # Easiest to use and most distros use this by default. + #networking.wireless.iwd.enable = true; + # Set your time zone. + time.timeZone = "Europe/Berlin"; + + # xdg.portal = { + # enable = true; + # extraPortals = [ pkgs.kdePackages.xdg-desktop-portal-kde ]; + # config.common.default = [ "kde" "gtk" ]; + # }; + programs.dconf.enable = true; + # Configure network proxy if necessary + # networking.proxy.default = "http://user:password@proxy:port/"; + # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; + + # Select internationalisation properties. + i18n.defaultLocale = "de_DE.UTF-8"; + console = { + font = "Lat2-Terminus16"; + keyMap = "de"; + # useXkbConfig = true; # use xkb.options in tty. + }; + + # Enable Gnome3 Keyring + #services.gnome.gnome-keyring.enable = true; + + # Enable CUPS to print documents.2 + services.printing.enable = true; + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; + + # Enable sound. + # sound.enable = true; + services.pulseaudio.enable = false; + + services.pipewire = { + enable = true; + alsa.enable = true; + pulse.enable = true; + }; + + # Bluetooth Support + hardware.bluetooth.enable = true; + hardware.bluetooth.powerOnBoot = true; + services.blueman.enable = true; + + # Enable touchpad support (enabled default in most desktopManager). + # services.xserver.libinput.enable = true; + + users.groups.martin.gid = 1001; + + # Define a user account. Don't forget to set a password with ‘passwd’. + users.users.martin = { + isNormalUser = true; + group = "martin"; + extraGroups = [ "libvirtd" "networkmanager" "wheel" ]; # Enable ‘sudo’ for the user. + uid = 1001; + packages = with pkgs; []; +}; + +# users.extraUsers.martin = { +# openssh.authorizedKeys.keys = [ +# " + + # Flatpaks + services.flatpak.enable = true; + + # List packages installed in system profile. To search, run: + # $ nix search wget + environment.systemPackages = with pkgs; [ + firefox + tree + nextcloud-client + keepassxc + fastfetch + wget + git + kitty + font-awesome + symbola + noto-fonts-color-emoji + material-icons + system-config-printer + ubuntu-classic + cascadia-code + virt-manager + starship + pfetch + neovim + gnome-software + xwayland-satellite + parted + vscodium + libreoffice-fresh + hunspell + signal-desktop + ]; + + programs.niri.enable = true; + + programs.neovim = { + enable = true; + configure = { + customRC = '' + set number + set cc=80 + set list + set listchars=tab:→\ ,space:·,nbsp:␣,trail:•,eol:¶,precedes:«,extends:» + if &diff + colorscheme blue + endif + ''; + packages.myVimPackage = with pkgs.vimPlugins; { + start = [ ctrlp-vim ]; + }; + }; + }; + programs.neovim = { + defaultEditor = true; + viAlias = true; + vimAlias = true; + }; + + # Virtualisation + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = true; + + #fonts.packages = with pkgs; [ + # (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) + #]; + + nix = { + settings.auto-optimise-store = true; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + }; + + nix.settings.experimental-features = [ + "nix-command" "flakes" + ]; + # Automatic Updates + #system.autoUpgrade = { + # enable = true; + # channel = "https://nixos.org/channels/nixos-24.11"; + #}; + + nixpkgs.config.allowUnfree = 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; + # }; + + + # nix.nixPath = [ "nixpkgs=/home/martin/Nextcloud/IT/mydotfiles/nixos" ]; + + # Enable Gnome dash-to-dock + nixpkgs.config.firefox.enableGnomeExtensions = true; +# services.gnome.chrome-gnome-shell.enable = true; + services.gnome.gnome-browser-connector.enable = 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; + + # Copy the NixOS configuration file and link it from the resulting system + # (/run/current-system/configuration.nix). This is useful in case you + # accidentally delete configuration.nix. + # system.copySystemConfiguration = true; + + # This option defines the first version of NixOS you have installed on this particular machine, + # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. + # + # Most users should NEVER change this value after the initial install, for any reason, + # even if you've upgraded your system to a new NixOS release. + # + # This value does NOT affect the Nixpkgs version your packages and OS are pulled from, + # so changing it will NOT upgrade your system. + # + # This value being lower than the current NixOS release does NOT mean your system is + # out of date, out of support, or vulnerable. + # + # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, + # and migrated your data accordingly. + # + # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . + system.stateVersion = "25.11"; # Did you read the comment? + +} +