calamares: 3.3.13 -> 3.4.0, qt6-ize, clean up (#430636)

authored by K900 and committed by GitHub 8baeaa3e e7f0683e

+2404 -644
+1 -1
nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-gnome.nix
··· 11 11 # Add Firefox and other tools useful for installation to the launcher 12 12 favoriteAppsOverride = '' 13 13 [org.gnome.shell] 14 - favorite-apps=[ 'firefox.desktop', 'nixos-manual.desktop', 'org.gnome.Console.desktop', 'org.gnome.Nautilus.desktop', 'gparted.desktop', 'io.calamares.calamares.desktop' ] 14 + favorite-apps=[ 'firefox.desktop', 'nixos-manual.desktop', 'org.gnome.Console.desktop', 'org.gnome.Nautilus.desktop', 'gparted.desktop', 'calamares.desktop' ] 15 15 ''; 16 16 17 17 # Override GNOME defaults to disable GNOME tour and disable suspend
+2 -2
nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-plasma5.nix
··· 45 45 ln -sfT ${pkgs.plasma5Packages.konsole}/share/applications/org.kde.konsole.desktop ${ 46 46 desktopDir + "org.kde.konsole.desktop" 47 47 } 48 - ln -sfT ${pkgs.calamares-nixos}/share/applications/io.calamares.calamares.desktop ${ 49 - desktopDir + "io.calamares.calamares.desktop" 48 + ln -sfT ${pkgs.calamares-nixos}/share/applications/calamares.desktop ${ 49 + desktopDir + "calamares.desktop" 50 50 } 51 51 ''; 52 52
+2 -2
nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares-plasma6.nix
··· 50 50 51 51 ln -sfT ${manualDesktopFile} ${desktopDir + "nixos-manual.desktop"} 52 52 ln -sfT ${pkgs.gparted}/share/applications/gparted.desktop ${desktopDir + "gparted.desktop"} 53 - ln -sfT ${pkgs.calamares-nixos}/share/applications/io.calamares.calamares.desktop ${ 54 - desktopDir + "io.calamares.calamares.desktop" 53 + ln -sfT ${pkgs.calamares-nixos}/share/applications/calamares.desktop ${ 54 + desktopDir + "calamares.desktop" 55 55 } 56 56 ''; 57 57
+4 -2
nixos/modules/installer/cd-dvd/installation-cd-graphical-calamares.nix
··· 4 4 { pkgs, ... }: 5 5 let 6 6 calamares-nixos-autostart = pkgs.makeAutostartItem { 7 - name = "io.calamares.calamares"; 7 + name = "calamares"; 8 8 package = pkgs.calamares-nixos; 9 9 }; 10 10 in 11 11 { 12 12 imports = [ ./installation-cd-graphical-base.nix ]; 13 13 14 + # required for kpmcore to work correctly 15 + programs.partition-manager.enable = true; 16 + 14 17 environment.systemPackages = with pkgs; [ 15 18 # Calamares for graphical installation 16 - libsForQt5.kpmcore 17 19 calamares-nixos 18 20 calamares-nixos-autostart 19 21 calamares-nixos-extensions
+1 -1
nixos/modules/programs/partition-manager.nix
··· 15 15 programs.partition-manager = { 16 16 enable = lib.mkEnableOption "KDE Partition Manager"; 17 17 18 - package = lib.mkPackageOption pkgs [ "libsForQt5" "partitionmanager" ] { }; 18 + package = lib.mkPackageOption pkgs [ "kdePackages" "partitionmanager" ] { }; 19 19 }; 20 20 }; 21 21
+10 -12
pkgs/by-name/ca/calamares-nixos-extensions/package.nix
··· 1 1 { 2 2 stdenv, 3 - fetchFromGitHub, 4 3 lib, 4 + glibcLocales, 5 5 }: 6 6 7 7 stdenv.mkDerivation (finalAttrs: { 8 8 pname = "calamares-nixos-extensions"; 9 9 version = "0.3.23"; 10 10 11 - src = fetchFromGitHub { 12 - owner = "NixOS"; 13 - repo = "calamares-nixos-extensions"; 14 - rev = finalAttrs.version; 15 - hash = "sha256-KNRztajU7sTLNDwCwP4WOdR2IRMqfbeapdko58LcrjM="; 16 - }; 11 + src = ./src; 17 12 18 13 installPhase = '' 19 14 runHook preInstall 20 - mkdir -p $out/{lib,share}/calamares 15 + mkdir -p $out/{etc,lib,share}/calamares 21 16 cp -r modules $out/lib/calamares/ 22 - cp -r config/* $out/share/calamares/ 17 + cp -r config/* $out/etc/calamares/ 23 18 cp -r branding $out/share/calamares/ 19 + 20 + substituteInPlace $out/etc/calamares/settings.conf --replace-fail @out@ $out 21 + substituteInPlace $out/etc/calamares/modules/locale.conf --replace-fail @glibcLocales@ ${glibcLocales} 22 + 24 23 runHook postInstall 25 24 ''; 26 25 ··· 28 27 description = "Calamares modules for NixOS"; 29 28 homepage = "https://github.com/NixOS/calamares-nixos-extensions"; 30 29 license = with licenses; [ 31 - gpl3Plus 32 - bsd2 30 + mit 31 + # assets 33 32 cc-by-40 34 33 cc-by-sa-40 35 - cc0 36 34 ]; 37 35 maintainers = with maintainers; [ vlinkz ]; 38 36 platforms = platforms.linux;
+233
pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/branding.desc
··· 1 + # SPDX-FileCopyrightText: no 2 + # SPDX-License-Identifier: CC0-1.0 3 + # 4 + --- 5 + componentName: nixos 6 + 7 + 8 + ### WELCOME / OVERALL WORDING 9 + # 10 + # These settings affect some overall phrasing and looks, 11 + # which are most visible in the welcome page. 12 + 13 + # This selects between different welcome texts. When false, uses 14 + # the traditional "Welcome to the %1 installer.", and when true, 15 + # uses "Welcome to the Calamares installer for %1." This allows 16 + # to distinguish this installer from other installers for the 17 + # same distribution. 18 + welcomeStyleCalamares: false 19 + 20 + # Should the welcome image (productWelcome, below) be scaled 21 + # up beyond its natural size? If false, the image does not grow 22 + # with the window but remains the same size throughout (this 23 + # may have surprising effects on HiDPI monitors). 24 + welcomeExpandingLogo: true 25 + 26 + ### WINDOW CONFIGURATION 27 + # 28 + # The settings here affect the placement of the Calamares 29 + # window through hints to the window manager and initial 30 + # sizing of the Calamares window. 31 + 32 + # Size and expansion policy for Calamares. 33 + # - "normal" or unset, expand as needed, use *windowSize* 34 + # - "fullscreen", start as large as possible, ignore *windowSize* 35 + # - "noexpand", don't expand automatically, use *windowSize* 36 + windowExpanding: normal 37 + 38 + # Size of Calamares window, expressed as w,h. Both w and h 39 + # may be either pixels (suffix px) or font-units (suffix em). 40 + # e.g. "800px,600px" 41 + # "60em,480px" 42 + # This setting is ignored if "fullscreen" is selected for 43 + # *windowExpanding*, above. If not set, use constants defined 44 + # in CalamaresUtilsGui, 800x520. 45 + windowSize: 800px,520px 46 + 47 + # Placement of Calamares window. Either "center" or "free". 48 + # Whether "center" actually works does depend on the window 49 + # manager in use (and only makes sense if you're not using 50 + # *windowExpanding* set to "fullscreen"). 51 + windowPlacement: center 52 + 53 + ### PANELS CONFIGURATION 54 + # 55 + # Calamares has a main content area, and two panels (navigation 56 + # and progress / sidebar). The panels can be controlled individually, 57 + # or switched off. If both panels are switched off, the layout of 58 + # the main content area loses its margins, on the assumption that 59 + # you're doing something special. 60 + 61 + # Kind of sidebar (panel on the left, showing progress). 62 + # - "widget" or unset, use traditional sidebar (logo, items) 63 + # - "none", hide it entirely 64 + # - "qml", use calamares-sidebar.qml from branding folder 65 + # In addition, you **may** specify a side, separated by a comma, 66 + # from the kind. Valid sides are: 67 + # - "left" (if not specified, uses this) 68 + # - "right" 69 + # - "top" 70 + # - "bottom" 71 + # For instance, "widget,right" is valid; so is "qml", which defaults 72 + # to putting the sidebar on the left. Also valid is "qml,top". 73 + # While "widget,top" is valid, the widgets code is **not** flexible 74 + # and results will be terrible. 75 + sidebar: widget 76 + 77 + # Kind of navigation (button panel on the bottom). 78 + # - "widget" or unset, use traditional navigation 79 + # - "none", hide it entirely 80 + # - "qml", use calamares-navigation.qml from branding folder 81 + # In addition, you **may** specify a side, separated by a comma, 82 + # from the kind. The same sides are valid as for *sidebar*, 83 + # except the default is *bottom*. 84 + navigation: widget 85 + 86 + 87 + ### STRINGS, IMAGES AND COLORS 88 + # 89 + # This section contains the "branding proper" of names 90 + # and images, rather than global-look settings. 91 + 92 + # These are strings shown to the user in the user interface. 93 + # There is no provision for translating them -- since they 94 + # are names, the string is included as-is. 95 + # 96 + # The four Url strings are the Urls used by the buttons in 97 + # the welcome screen, and are not shown to the user. Clicking 98 + # on the "Support" button, for instance, opens the link supportUrl. 99 + # If a Url is empty, the corresponding button is not shown. 100 + # 101 + # bootloaderEntryName is how this installation / distro is named 102 + # in the boot loader (e.g. in the GRUB menu). 103 + # 104 + # These strings support substitution from /etc/os-release 105 + # if KDE Frameworks 5.58 are available at build-time. When 106 + # enabled, ${varname} is replaced by the equivalent value 107 + # from os-release. All the supported var-names are in all-caps, 108 + # and are listed on the FreeDesktop.org site, 109 + # https://www.freedesktop.org/software/systemd/man/os-release.html 110 + # Note that ANSI_COLOR and CPE_NAME don't make sense here, and 111 + # are not supported (the rest are). Remember to quote the string 112 + # if it contains substitutions, or you'll get YAML exceptions. 113 + # 114 + # The *Url* entries are used on the welcome page, and they 115 + # are visible as buttons there if the corresponding *show* keys 116 + # are set to "true" (they can also be overridden). 117 + strings: 118 + productName: "${NAME}" 119 + shortProductName: NixOS 120 + version: 121 + shortVersion: 122 + versionedName: NixOS 123 + shortVersionedName: NixOS 124 + bootloaderEntryName: NixOS 125 + productUrl: https://nixos.org/ 126 + supportUrl: https://nixos.org/manual/nixos 127 + knownIssuesUrl: https://github.com/NixOS/nixpkgs/issues 128 + releaseNotesUrl: https://nixos.org/manual/nixos/stable/release-notes.html 129 + donateUrl: https://nixos.org/donate.html 130 + 131 + # These images are loaded from the branding module directory. 132 + # 133 + # productBanner is an optional image, which if present, will be shown 134 + # on the welcome page of the application, above the welcome text. 135 + # It is intended to have a width much greater than height. 136 + # It is displayed at 64px height (also on HiDPI). 137 + # Recommended size is 64px tall, and up to 460px wide. 138 + # productIcon is used as the window icon, and will (usually) be used 139 + # by the window manager to represent the application. This image 140 + # should be square, and may be displayed by the window manager 141 + # as small as 16x16 (but possibly larger). 142 + # productLogo is used as the logo at the top of the left-hand column 143 + # which shows the steps to be taken. The image should be square, 144 + # and is displayed at 80x80 pixels (also on HiDPI). 145 + # productWallpaper is an optional image, which if present, will replace 146 + # the normal solid background on every page of the application. 147 + # It can be any size and proportion, 148 + # and will be tiled to fit the entire window. 149 + # For a non-tiled wallpaper, the size should be the same as 150 + # the overall window, see *windowSize* above (800x520). 151 + # productWelcome is shown on the welcome page of the application in 152 + # the middle of the window, below the welcome text. It can be 153 + # any size and proportion, and will be scaled to fit inside 154 + # the window. Use `welcomeExpandingLogo` to make it non-scaled. 155 + # Recommended size is 320x150. 156 + # 157 + # These filenames can also use substitutions from os-release (see above). 158 + images: 159 + # productBanner: "banner.png" 160 + productIcon: "nix-snowflake.svg" 161 + productLogo: "white.png" 162 + # productWallpaper: "wallpaper.png" 163 + productWelcome: "nix-snowflake.svg" 164 + 165 + # Colors for text and background components. 166 + # 167 + # - SidebarBackground is the background of the sidebar 168 + # - SidebarText is the (foreground) text color 169 + # - SidebarBackgroundCurrent sets the background of the current step. 170 + # Optional, and defaults to the application palette. 171 + # - SidebarTextCurrent is the text color of the current step. 172 + # 173 + # These colors can **also** be set through the stylesheet, if the 174 + # branding component also ships a stylesheet.qss. Then they are 175 + # the corresponding CSS attributes of #sidebarApp. 176 + style: 177 + SidebarBackground: "#5277C3" 178 + SidebarText: "#FFFFFF" 179 + SidebarTextCurrent: "#292F34" 180 + SidebarBackgroundCurrent: "#7EBAE4" 181 + 182 + ### SLIDESHOW 183 + # 184 + # The slideshow is displayed during execution steps (e.g. when the 185 + # installer is actually writing to disk and doing other slow things). 186 + 187 + # The slideshow can be a QML file (recommended) which can display 188 + # arbitrary things -- text, images, animations, or even play a game -- 189 + # during the execution step. The QML **is** abruptly stopped when the 190 + # execution step is done, though, so maybe a game isn't a great idea. 191 + # 192 + # The slideshow can also be a sequence of images (not recommended unless 193 + # you don't want QML at all in your Calamares). The images are displayed 194 + # at a rate of 1 every 2 seconds during the execution step. 195 + # 196 + # To configure a QML file, list a single filename: 197 + # slideshow: "show.qml" 198 + # To configure images, like the filenames (here, as an inline list): 199 + # slideshow: [ "/etc/calamares/slideshow/0.png", "/etc/logo.png" ] 200 + slideshow: "show.qml" 201 + 202 + # There are two available APIs for a QML slideshow: 203 + # - 1 (the default) loads the entire slideshow when the installation- 204 + # slideshow page is shown and starts the QML then. The QML 205 + # is never stopped (after installation is done, times etc. 206 + # continue to fire). 207 + # - 2 loads the slideshow on startup and calls onActivate() and 208 + # onLeave() in the root object. After the installation is done, 209 + # the show is stopped (first by calling onLeave(), then destroying 210 + # the QML components). 211 + # 212 + # An image slideshow does not need to have the API defined. 213 + slideshowAPI: 2 214 + 215 + 216 + # These options are to customize online uploading of logs to pastebins: 217 + # - type : Defines the kind of pastebin service to be used. Currently 218 + # it accepts two values: 219 + # - none : disables the pastebin functionality 220 + # - fiche : use fiche pastebin server 221 + # - url : Defines the address of pastebin service to be used. 222 + # Takes string as input. Important bits are the host and port, 223 + # the scheme is not used. 224 + # - sizeLimit : Defines maximum size limit (in KiB) of log file to be pasted. 225 + # The option must be set, to have the log option work. 226 + # Takes integer as input. If < 0, no limit will be forced, 227 + # else only last (approximately) 'n' KiB of log file will be pasted. 228 + # Please note that upload size may be slightly over the limit (due 229 + # to last minute logging), so provide a suitable value. 230 + uploadServer : 231 + type : "fiche" 232 + url : "http://termbin.com:9999" 233 + sizeLimit : -1
pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/gfx-landing-declarative.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/gfx-landing-reliable.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/gfx-landing-reproducible.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/budgie.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/cinnamon.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/deepin.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/enlightenment.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/gnome.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/lumina.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/lxqt.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/mate.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/nodesktop.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/pantheon.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/plasma6.png

This is a binary file and will not be displayed.

pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/images/xfce.png

This is a binary file and will not be displayed.

+513
pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/nix-snowflake.svg
··· 1 + <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 + <!-- Created with Inkscape (http://www.inkscape.org/) --> 3 + 4 + <svg 5 + xmlns:dc="http://purl.org/dc/elements/1.1/" 6 + xmlns:cc="http://creativecommons.org/ns#" 7 + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 8 + xmlns:svg="http://www.w3.org/2000/svg" 9 + xmlns="http://www.w3.org/2000/svg" 10 + xmlns:xlink="http://www.w3.org/1999/xlink" 11 + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 12 + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" 13 + width="141.5919mm" 14 + height="122.80626mm" 15 + viewBox="0 0 501.70361 435.14028" 16 + id="svg2" 17 + version="1.1" 18 + inkscape:version="0.92.0 r15299" 19 + sodipodi:docname="nix-snowflake.svg"> 20 + <defs 21 + id="defs4"> 22 + <linearGradient 23 + inkscape:collect="always" 24 + id="linearGradient5562"> 25 + <stop 26 + style="stop-color:#699ad7;stop-opacity:1" 27 + offset="0" 28 + id="stop5564" /> 29 + <stop 30 + id="stop5566" 31 + offset="0.24345198" 32 + style="stop-color:#7eb1dd;stop-opacity:1" /> 33 + <stop 34 + style="stop-color:#7ebae4;stop-opacity:1" 35 + offset="1" 36 + id="stop5568" /> 37 + </linearGradient> 38 + <linearGradient 39 + inkscape:collect="always" 40 + id="linearGradient5053"> 41 + <stop 42 + style="stop-color:#415e9a;stop-opacity:1" 43 + offset="0" 44 + id="stop5055" /> 45 + <stop 46 + id="stop5057" 47 + offset="0.23168644" 48 + style="stop-color:#4a6baf;stop-opacity:1" /> 49 + <stop 50 + style="stop-color:#5277c3;stop-opacity:1" 51 + offset="1" 52 + id="stop5059" /> 53 + </linearGradient> 54 + <linearGradient 55 + id="linearGradient5960" 56 + inkscape:collect="always"> 57 + <stop 58 + id="stop5962" 59 + offset="0" 60 + style="stop-color:#637ddf;stop-opacity:1" /> 61 + <stop 62 + style="stop-color:#649afa;stop-opacity:1" 63 + offset="0.23168644" 64 + id="stop5964" /> 65 + <stop 66 + id="stop5966" 67 + offset="1" 68 + style="stop-color:#719efa;stop-opacity:1" /> 69 + </linearGradient> 70 + <linearGradient 71 + inkscape:collect="always" 72 + id="linearGradient5867"> 73 + <stop 74 + style="stop-color:#7363df;stop-opacity:1" 75 + offset="0" 76 + id="stop5869" /> 77 + <stop 78 + id="stop5871" 79 + offset="0.23168644" 80 + style="stop-color:#6478fa;stop-opacity:1" /> 81 + <stop 82 + style="stop-color:#719efa;stop-opacity:1" 83 + offset="1" 84 + id="stop5873" /> 85 + </linearGradient> 86 + <linearGradient 87 + y2="515.97058" 88 + x2="282.26105" 89 + y1="338.62445" 90 + x1="213.95642" 91 + gradientTransform="translate(983.36076,601.38885)" 92 + gradientUnits="userSpaceOnUse" 93 + id="linearGradient5855" 94 + xlink:href="#linearGradient5960" 95 + inkscape:collect="always" /> 96 + <linearGradient 97 + y2="515.97058" 98 + x2="282.26105" 99 + y1="338.62445" 100 + x1="213.95642" 101 + gradientTransform="translate(-197.75174,-337.1451)" 102 + gradientUnits="userSpaceOnUse" 103 + id="linearGradient5855-8" 104 + xlink:href="#linearGradient5867" 105 + inkscape:collect="always" /> 106 + <linearGradient 107 + y2="247.58188" 108 + x2="-702.75317" 109 + y1="102.74675" 110 + x1="-775.20807" 111 + gradientTransform="translate(983.36076,601.38885)" 112 + gradientUnits="userSpaceOnUse" 113 + id="linearGradient4544" 114 + xlink:href="#linearGradient5960" 115 + inkscape:collect="always" /> 116 + <clipPath 117 + id="clipPath4501" 118 + clipPathUnits="userSpaceOnUse"> 119 + <circle 120 + r="241.06563" 121 + cy="686.09473" 122 + cx="335.13995" 123 + id="circle4503" 124 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#adadad;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" /> 125 + </clipPath> 126 + <clipPath 127 + id="clipPath5410" 128 + clipPathUnits="userSpaceOnUse"> 129 + <circle 130 + r="241.13741" 131 + cy="340.98975" 132 + cx="335.98114" 133 + id="circle5412" 134 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" /> 135 + </clipPath> 136 + <linearGradient 137 + inkscape:collect="always" 138 + xlink:href="#linearGradient5053" 139 + id="linearGradient5137" 140 + gradientUnits="userSpaceOnUse" 141 + gradientTransform="translate(864.55062,-2197.497)" 142 + x1="-584.19934" 143 + y1="782.33563" 144 + x2="-496.29703" 145 + y2="937.71399" /> 146 + <linearGradient 147 + inkscape:collect="always" 148 + xlink:href="#linearGradient5053" 149 + id="linearGradient5147" 150 + gradientUnits="userSpaceOnUse" 151 + gradientTransform="translate(864.55062,-2197.497)" 152 + x1="-584.19934" 153 + y1="782.33563" 154 + x2="-496.29703" 155 + y2="937.71399" /> 156 + <linearGradient 157 + inkscape:collect="always" 158 + xlink:href="#linearGradient5562" 159 + id="linearGradient5162" 160 + gradientUnits="userSpaceOnUse" 161 + gradientTransform="translate(70.505061,-1761.3076)" 162 + x1="200.59668" 163 + y1="351.41116" 164 + x2="290.08701" 165 + y2="506.18814" /> 166 + <linearGradient 167 + inkscape:collect="always" 168 + xlink:href="#linearGradient5562" 169 + id="linearGradient5172" 170 + gradientUnits="userSpaceOnUse" 171 + gradientTransform="translate(70.505061,-1761.3076)" 172 + x1="200.59668" 173 + y1="351.41116" 174 + x2="290.08701" 175 + y2="506.18814" /> 176 + <linearGradient 177 + inkscape:collect="always" 178 + xlink:href="#linearGradient5562" 179 + id="linearGradient5182" 180 + gradientUnits="userSpaceOnUse" 181 + gradientTransform="translate(70.505061,-1761.3076)" 182 + x1="200.59668" 183 + y1="351.41116" 184 + x2="290.08701" 185 + y2="506.18814" /> 186 + <linearGradient 187 + y2="506.18814" 188 + x2="290.08701" 189 + y1="351.41116" 190 + x1="200.59668" 191 + gradientTransform="translate(70.505061,-1761.3076)" 192 + gradientUnits="userSpaceOnUse" 193 + id="linearGradient5201" 194 + xlink:href="#linearGradient5562" 195 + inkscape:collect="always" /> 196 + <linearGradient 197 + y2="937.71399" 198 + x2="-496.29703" 199 + y1="782.33563" 200 + x1="-584.19934" 201 + gradientTransform="translate(864.55062,-2197.497)" 202 + gradientUnits="userSpaceOnUse" 203 + id="linearGradient5205" 204 + xlink:href="#linearGradient5053" 205 + inkscape:collect="always" /> 206 + <linearGradient 207 + inkscape:collect="always" 208 + xlink:href="#linearGradient5562" 209 + id="linearGradient4328" 210 + gradientUnits="userSpaceOnUse" 211 + gradientTransform="translate(70.650339,-1055.1511)" 212 + x1="200.59668" 213 + y1="351.41116" 214 + x2="290.08701" 215 + y2="506.18814" /> 216 + <linearGradient 217 + inkscape:collect="always" 218 + xlink:href="#linearGradient5053" 219 + id="linearGradient4330" 220 + gradientUnits="userSpaceOnUse" 221 + gradientTransform="translate(864.69589,-1491.3405)" 222 + x1="-584.19934" 223 + y1="782.33563" 224 + x2="-496.29703" 225 + y2="937.71399" /> 226 + </defs> 227 + <sodipodi:namedview 228 + id="base" 229 + pagecolor="#ffffff" 230 + bordercolor="#666666" 231 + borderopacity="1.0" 232 + inkscape:pageopacity="0.0" 233 + inkscape:pageshadow="2" 234 + inkscape:zoom="0.98318225" 235 + inkscape:cx="113.58176" 236 + inkscape:cy="-45.193301" 237 + inkscape:document-units="px" 238 + inkscape:current-layer="layer3" 239 + showgrid="false" 240 + inkscape:window-width="2560" 241 + inkscape:window-height="1577" 242 + inkscape:window-x="0" 243 + inkscape:window-y="0" 244 + inkscape:window-maximized="1" 245 + inkscape:snap-global="true" 246 + fit-margin-top="0" 247 + fit-margin-left="0" 248 + fit-margin-right="0" 249 + fit-margin-bottom="0" /> 250 + <metadata 251 + id="metadata7"> 252 + <rdf:RDF> 253 + <cc:Work 254 + rdf:about=""> 255 + <dc:format>image/svg+xml</dc:format> 256 + <dc:type 257 + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> 258 + <dc:title /> 259 + </cc:Work> 260 + </rdf:RDF> 261 + </metadata> 262 + <g 263 + inkscape:groupmode="layer" 264 + id="layer7" 265 + inkscape:label="bg" 266 + style="display:none" 267 + transform="translate(-23.75651,-24.84972)"> 268 + <rect 269 + transform="translate(-132.5822,958.04022)" 270 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 271 + id="rect5389" 272 + width="1543.4283" 273 + height="483.7439" 274 + x="132.5822" 275 + y="-957.77832" /> 276 + </g> 277 + <g 278 + inkscape:groupmode="layer" 279 + id="layer6" 280 + inkscape:label="logo-guide" 281 + style="display:none" 282 + transform="translate(-156.33871,933.1905)"> 283 + <rect 284 + y="-958.02759" 285 + x="132.65129" 286 + height="484.30399" 287 + width="550.41602" 288 + id="rect5379" 289 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#5c201e;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 290 + inkscape:export-filename="/home/tim/dev/nix/homepage/logo/nix-wiki.png" 291 + inkscape:export-xdpi="22.07" 292 + inkscape:export-ydpi="22.07" /> 293 + <rect 294 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#c24a46;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 295 + id="rect5372" 296 + width="501.94415" 297 + height="434.30405" 298 + x="156.12303" 299 + y="-933.02759" 300 + inkscape:export-filename="/home/tim/dev/nix/homepage/logo/nixos-logo-only-hires-print.png" 301 + inkscape:export-xdpi="212.2" 302 + inkscape:export-ydpi="212.2" /> 303 + <rect 304 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#d98d8a;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 305 + id="rect5381" 306 + width="24.939611" 307 + height="24.939611" 308 + x="658.02826" 309 + y="-958.04022" /> 310 + </g> 311 + <g 312 + inkscape:label="print-logo" 313 + inkscape:groupmode="layer" 314 + id="layer1" 315 + style="display:inline" 316 + transform="translate(-156.33871,933.1905)" 317 + sodipodi:insensitive="true"> 318 + <path 319 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#5277c3;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 320 + d="m 309.40365,-710.2521 122.19683,211.6751 -56.15706,0.5268 -32.6236,-56.8692 -32.85645,56.5653 -27.90237,-0.011 -14.29086,-24.6896 46.81047,-80.4902 -33.22946,-57.8256 z" 321 + id="path4861" 322 + inkscape:connector-curvature="0" 323 + sodipodi:nodetypes="cccccccccc" /> 324 + <path 325 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#7ebae4;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 326 + d="m 353.50926,-797.4433 -122.21756,211.6631 -28.53477,-48.37 32.93839,-56.6875 -65.41521,-0.1719 -13.9414,-24.1698 14.23637,-24.721 93.11177,0.2939 33.46371,-57.6903 z" 327 + id="use4863" 328 + inkscape:connector-curvature="0" 329 + sodipodi:nodetypes="cccccccccc" /> 330 + <path 331 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#7ebae4;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 332 + d="m 362.88537,-628.243 244.41439,0.012 -27.62229,48.8968 -65.56199,-0.1817 32.55876,56.7371 -13.96098,24.1585 -28.52722,0.032 -46.3013,-80.7841 -66.69317,-0.1353 z" 333 + id="use4865" 334 + inkscape:connector-curvature="0" 335 + sodipodi:nodetypes="cccccccccc" /> 336 + <path 337 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#7ebae4;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 338 + d="m 505.14318,-720.9886 -122.19683,-211.6751 56.15706,-0.5268 32.6236,56.8692 32.85645,-56.5653 27.90237,0.011 14.29086,24.6896 -46.81047,80.4902 33.22946,57.8256 z" 339 + id="use4867" 340 + inkscape:connector-curvature="0" 341 + sodipodi:nodetypes="cccccccccc" /> 342 + <path 343 + sodipodi:nodetypes="cccccccccc" 344 + inkscape:connector-curvature="0" 345 + id="path4873" 346 + d="m 309.40365,-710.2521 122.19683,211.6751 -56.15706,0.5268 -32.6236,-56.8692 -32.85645,56.5653 -27.90237,-0.011 -14.29086,-24.6896 46.81047,-80.4902 -33.22946,-57.8256 z" 347 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#5277c3;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" /> 348 + <path 349 + sodipodi:nodetypes="cccccccccc" 350 + inkscape:connector-curvature="0" 351 + id="use4875" 352 + d="m 451.3364,-803.53264 -244.4144,-0.012 27.62229,-48.89685 65.56199,0.18175 -32.55875,-56.73717 13.96097,-24.15851 28.52722,-0.0315 46.3013,80.78414 66.69317,0.13524 z" 353 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#5277c3;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" /> 354 + <path 355 + sodipodi:nodetypes="cccccccccc" 356 + inkscape:connector-curvature="0" 357 + id="use4877" 358 + d="m 460.87178,-633.8425 122.21757,-211.66304 28.53477,48.37003 -32.93839,56.68751 65.4152,0.1718 13.9414,24.1698 -14.23636,24.7211 -93.11177,-0.294 -33.46371,57.6904 z" 359 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#5277c3;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" /> 360 + <g 361 + id="layer2" 362 + inkscape:label="guides" 363 + style="display:none" 364 + transform="translate(72.039038,-1799.4476)"> 365 + <path 366 + d="M 460.60629,594.72881 209.74183,594.7288 84.309616,377.4738 209.74185,160.21882 l 250.86446,1e-5 125.43222,217.255 z" 367 + inkscape:randomized="0" 368 + inkscape:rounded="0" 369 + inkscape:flatsided="true" 370 + sodipodi:arg2="1.5707963" 371 + sodipodi:arg1="1.0471976" 372 + sodipodi:r2="217.25499" 373 + sodipodi:r1="250.86446" 374 + sodipodi:cy="377.47382" 375 + sodipodi:cx="335.17407" 376 + sodipodi:sides="6" 377 + id="path6032" 378 + style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:0.23600003;fill:#4e4d52;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate" 379 + sodipodi:type="star" /> 380 + <path 381 + transform="translate(0,-308.26772)" 382 + sodipodi:type="star" 383 + style="color:#000000;display:inline;overflow:visible;visibility:visible;opacity:1;fill:#4e4d52;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;enable-background:accumulate" 384 + id="path5875" 385 + sodipodi:sides="6" 386 + sodipodi:cx="335.17407" 387 + sodipodi:cy="685.74158" 388 + sodipodi:r1="100.83495" 389 + sodipodi:r2="87.32563" 390 + sodipodi:arg1="1.0471976" 391 + sodipodi:arg2="1.5707963" 392 + inkscape:flatsided="true" 393 + inkscape:rounded="0" 394 + inkscape:randomized="0" 395 + d="m 385.59154,773.06721 -100.83495,0 -50.41747,-87.32564 50.41748,-87.32563 100.83495,10e-6 50.41748,87.32563 z" /> 396 + <path 397 + transform="translate(0,-308.26772)" 398 + sodipodi:nodetypes="ccccccccc" 399 + inkscape:connector-curvature="0" 400 + id="path5851" 401 + d="m 1216.5591,938.53395 123.0545,228.14035 -42.6807,-1.2616 -43.4823,-79.7725 -39.6506,80.3267 -32.6875,-19.7984 53.4737,-100.2848 -37.1157,-73.88955 z" 402 + style="fill:url(#linearGradient5855);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> 403 + <rect 404 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.41499999;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#c53a3a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 405 + id="rect5884" 406 + width="48.834862" 407 + height="226.22897" 408 + x="-34.74221" 409 + y="446.17056" 410 + transform="rotate(-30)" /> 411 + <path 412 + transform="translate(0,-308.26772)" 413 + sodipodi:type="star" 414 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:0.50899999;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 415 + id="path3428" 416 + sodipodi:sides="6" 417 + sodipodi:cx="223.93674" 418 + sodipodi:cy="878.63831" 419 + sodipodi:r1="28.048939" 420 + sodipodi:r2="24.291094" 421 + sodipodi:arg1="0" 422 + sodipodi:arg2="0.52359878" 423 + inkscape:flatsided="true" 424 + inkscape:rounded="0" 425 + inkscape:randomized="0" 426 + d="m 251.98568,878.63831 -14.02447,24.29109 h -28.04894 l -14.02447,-24.29109 14.02447,-24.2911 h 28.04894 z" /> 427 + <use 428 + x="0" 429 + y="0" 430 + xlink:href="#rect5884" 431 + id="use4252" 432 + transform="rotate(60,268.29786,489.4515)" 433 + width="100%" 434 + height="100%" /> 435 + <rect 436 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:0.6507937;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 437 + id="rect4254" 438 + width="5.3947482" 439 + height="115.12564" 440 + x="545.71014" 441 + y="467.07007" 442 + transform="rotate(30,575.23539,-154.13386)" /> 443 + </g> 444 + </g> 445 + <g 446 + inkscape:groupmode="layer" 447 + id="layer3" 448 + inkscape:label="gradient-logo" 449 + style="display:inline;opacity:1" 450 + sodipodi:insensitive="true" 451 + transform="translate(-156.33871,933.1905)"> 452 + <path 453 + sodipodi:nodetypes="cccccccccc" 454 + inkscape:connector-curvature="0" 455 + id="path3336-6" 456 + d="m 309.54892,-710.38827 122.19683,211.67512 -56.15706,0.5268 -32.6236,-56.8692 -32.85645,56.5653 -27.90237,-0.011 -14.29086,-24.6896 46.81047,-80.4901 -33.22946,-57.8257 z" 457 + style="opacity:1;fill:url(#linearGradient4328);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> 458 + <use 459 + height="100%" 460 + width="100%" 461 + transform="rotate(60,407.11155,-715.78724)" 462 + id="use3439-6" 463 + inkscape:transform-center-y="151.59082" 464 + inkscape:transform-center-x="124.43045" 465 + xlink:href="#path3336-6" 466 + y="0" 467 + x="0" /> 468 + <use 469 + height="100%" 470 + width="100%" 471 + transform="rotate(-60,407.31177,-715.70016)" 472 + id="use3445-0" 473 + inkscape:transform-center-y="75.573958" 474 + inkscape:transform-center-x="-168.20651" 475 + xlink:href="#path3336-6" 476 + y="0" 477 + x="0" /> 478 + <use 479 + height="100%" 480 + width="100%" 481 + transform="rotate(180,407.41868,-715.7565)" 482 + id="use3449-5" 483 + inkscape:transform-center-y="-139.94592" 484 + inkscape:transform-center-x="59.669705" 485 + xlink:href="#path3336-6" 486 + y="0" 487 + x="0" /> 488 + <path 489 + style="color:#000000;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:url(#linearGradient4330);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate" 490 + d="m 309.54892,-710.38827 122.19683,211.67512 -56.15706,0.5268 -32.6236,-56.8692 -32.85645,56.5653 -27.90237,-0.011 -14.29086,-24.6896 46.81047,-80.4901 -33.22946,-57.8256 z" 491 + id="path4260-0" 492 + inkscape:connector-curvature="0" 493 + sodipodi:nodetypes="cccccccccc" /> 494 + <use 495 + height="100%" 496 + width="100%" 497 + transform="rotate(120,407.33916,-716.08356)" 498 + id="use4354-5" 499 + xlink:href="#path4260-0" 500 + y="0" 501 + x="0" 502 + style="display:inline" /> 503 + <use 504 + height="100%" 505 + width="100%" 506 + transform="rotate(-120,407.28823,-715.86995)" 507 + id="use4362-2" 508 + xlink:href="#path4260-0" 509 + y="0" 510 + x="0" 511 + style="display:inline" /> 512 + </g> 513 + </svg>
+34
pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/notesqml@unfree.qml
··· 1 + import io.calamares.core 2 + 3 + import QtQuick 4 + import QtQuick.Controls 5 + import QtQuick.Layouts 6 + import org.kde.kirigami as Kirigami 7 + 8 + Page { 9 + width: parent.width 10 + height: parent.height 11 + 12 + ColumnLayout { 13 + width: parent.width 14 + spacing: Kirigami.Units.smallSpacing 15 + 16 + Column { 17 + Layout.fillWidth: true 18 + 19 + Text { 20 + text: qsTr("NixOS is fully open source, but it also provides optional software packages that do not respect users' freedom to run, copy, distribute, study, change and improve the software, and are commonly not open source. By default such \"unfree\" packages are not allowed, but you can enable it here. If you check this box, you agree that unfree software may be installed which might have additional End User License Agreements (EULAs) that you need to agree to. If not enabled, some hardware (notably Nvidia GPUs and some WiFi chips) might not work or not work optimally.<br/>") 21 + width: parent.width 22 + wrapMode: Text.WordWrap 23 + } 24 + 25 + CheckBox { 26 + text: qsTr("Allow unfree software") 27 + 28 + onCheckedChanged: { 29 + Global.insert("nixos_allow_unfree", checked) 30 + } 31 + } 32 + } 33 + } 34 + }
+122
pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/show.qml
··· 1 + import QtQuick 2.0; 2 + import calamares.slideshow 1.0; 3 + 4 + Presentation 5 + { 6 + id: presentation 7 + 8 + function nextSlide() { 9 + presentation.goToNextSlide(); 10 + } 11 + 12 + Timer { 13 + id: advanceTimer 14 + interval: 20000 15 + running: presentation.activatedInCalamares 16 + repeat: true 17 + onTriggered: nextSlide() 18 + } 19 + 20 + Slide { 21 + Text { 22 + id: text1 23 + anchors.centerIn: parent 24 + text: "Reproducible" 25 + font.pixelSize: 30 26 + wrapMode: Text.WordWrap 27 + width: presentation.width 28 + horizontalAlignment: Text.Center 29 + color: "#6586C8" 30 + } 31 + Image { 32 + id: background1 33 + source: "gfx-landing-reproducible.png" 34 + width: 200; height: 200 35 + fillMode: Image.PreserveAspectFit 36 + anchors.bottom: text1.top 37 + anchors.horizontalCenter: parent.horizontalCenter 38 + } 39 + Text { 40 + anchors.horizontalCenter: background1.horizontalCenter 41 + anchors.top: text1.bottom 42 + text: "Nix builds packages in isolation from each other.<br/>"+ 43 + "This ensures that they are reproducible and don't<br/>"+ 44 + "have undeclared dependencies, so <b>if a package<br/>"+ 45 + "works on one machine, it will also work on another.</b>" 46 + wrapMode: Text.WordWrap 47 + width: presentation.width 48 + horizontalAlignment: Text.Center 49 + } 50 + } 51 + 52 + Slide { 53 + Text { 54 + id: text2 55 + anchors.centerIn: parent 56 + text: "Declarative" 57 + font.pixelSize: 30 58 + wrapMode: Text.WordWrap 59 + width: presentation.width 60 + horizontalAlignment: Text.Center 61 + color: "#6586C8" 62 + } 63 + Image { 64 + id: background2 65 + source: "gfx-landing-declarative.png" 66 + width: 200; height: 200 67 + fillMode: Image.PreserveAspectFit 68 + anchors.bottom: text2.top 69 + anchors.horizontalCenter: parent.horizontalCenter 70 + } 71 + Text { 72 + anchors.horizontalCenter: background2.horizontalCenter 73 + anchors.top: text2.bottom 74 + text: "Nix makes it <b>trivial to share development and build<br/>"+ 75 + "environments</b> for your projects, regardless of what<br/>"+ 76 + "programming languages and tools you’re using." 77 + wrapMode: Text.WordWrap 78 + width: presentation.width 79 + horizontalAlignment: Text.Center 80 + } 81 + } 82 + 83 + Slide { 84 + Text { 85 + id: text3 86 + anchors.centerIn: parent 87 + text: "Reliable" 88 + font.pixelSize: 30 89 + wrapMode: Text.WordWrap 90 + width: presentation.width 91 + horizontalAlignment: Text.Center 92 + color: "#6586C8" 93 + } 94 + Image { 95 + id: background3 96 + source: "gfx-landing-reliable.png" 97 + width: 200; height: 200 98 + fillMode: Image.PreserveAspectFit 99 + anchors.bottom: text3.top 100 + anchors.horizontalCenter: parent.horizontalCenter 101 + } 102 + Text { 103 + anchors.horizontalCenter: background3.horizontalCenter 104 + anchors.top: text3.bottom 105 + text: "Nix ensures that installing or upgrading one package<br/>"+ 106 + "<b>cannot break other packages.</b> It allows you to <b>roll<br/>"+ 107 + "back to previous versions,</b> and ensures that no<br/>"+ 108 + "package is in an inconsistent state during an<br/>"+ 109 + "upgrade." 110 + wrapMode: Text.WordWrap 111 + width: presentation.width 112 + horizontalAlignment: Text.Center 113 + } 114 + } 115 + 116 + function onActivate() { 117 + presentation.currentSlide = 0; 118 + } 119 + 120 + function onLeave() { 121 + } 122 + }
pkgs/by-name/ca/calamares-nixos-extensions/src/branding/nixos/white.png

This is a binary file and will not be displayed.

+4
pkgs/by-name/ca/calamares-nixos-extensions/src/config/modules/finished.conf
··· 1 + # https://codeberg.org/Calamares/calamares/src/branch/calamares/src/modules/finished/finished.conf 2 + restartNowMode: user-unchecked 3 + restartNowCommand: "systemctl -i reboot" 4 + notifyOnFinished: true
+7
pkgs/by-name/ca/calamares-nixos-extensions/src/config/modules/keyboard.conf
··· 1 + # https://codeberg.org/Calamares/calamares/src/branch/calamares/src/modules/keyboard/keyboard.conf 2 + xOrgConfFileName: "/etc/X11/xorg.conf.d/00-keyboard.conf" 3 + writeEtcDefaultKeyboard: false 4 + 5 + # Use special code path to configure GNOME keyboard settings 6 + configure: 7 + gnome: true
+11
pkgs/by-name/ca/calamares-nixos-extensions/src/config/modules/locale.conf
··· 1 + # https://codeberg.org/Calamares/calamares/src/branch/calamares/src/modules/locale/locale.conf 2 + useSystemTimezone: true 3 + 4 + # Isn't supported on NixOS 5 + adjustLiveTimezone: false 6 + 7 + localeGenPath: @glibcLocales@/share/i18n/SUPPORTED 8 + 9 + geoip: 10 + style: "json" 11 + url: "https://geoip.kde.org/v1/calamares"
+27
pkgs/by-name/ca/calamares-nixos-extensions/src/config/modules/mount.conf
··· 1 + # https://codeberg.org/Calamares/calamares/src/branch/calamares/src/modules/mount/mount.conf 2 + extraMounts: 3 + - device: proc 4 + fs: proc 5 + mountPoint: /proc 6 + - device: sys 7 + fs: sysfs 8 + mountPoint: /sys 9 + - device: /dev 10 + mountPoint: /dev 11 + options: [ bind ] 12 + - device: tmpfs 13 + fs: tmpfs 14 + mountPoint: /run 15 + - device: /run/udev 16 + mountPoint: /run/udev 17 + options: [ bind ] 18 + - device: efivarfs 19 + fs: efivarfs 20 + mountPoint: /sys/firmware/efi/efivars 21 + efi: true 22 + 23 + # Ensure the right fmask/dmask is set on the ESP, as it will be 24 + # picked up by nixos-generate-config later 25 + mountOptions: 26 + - filesystem: efi 27 + options: [ fmask=0077, dmask=0077 ]
+105
pkgs/by-name/ca/calamares-nixos-extensions/src/config/modules/packagechooser.conf
··· 1 + # https://codeberg.org/Calamares/calamares/src/branch/calamares/src/modules/packagechooser/packagechooser.conf 2 + mode: required 3 + 4 + # FIXME: what's the correct way of doing this now? 5 + method: legacy 6 + 7 + labels: 8 + step: "Desktop" 9 + 10 + default: gnome 11 + 12 + items: 13 + - id: gnome 14 + packages: [ gnome ] 15 + name: GNOME 16 + description: "<html>Every part of GNOME has been designed to make it simple and easy to use. It provides a focused working environment that helps you get things done. GNOME is a popular choice and well tested on NixOS.<br/> 17 + <br/> 18 + Learn more at <a href=\"https://www.gnome.org/\">gnome.org</a></html>" 19 + screenshot: "images/gnome.png" 20 + 21 + - id: plasma6 22 + packages: [ plasma6 ] 23 + name: Plasma 24 + description: "<html>Plasma is made to stay out of the way as it helps you get things done. But under its light and intuitive surface, it's a highly customizable. So you're free to choose ways of usage right as you need them and when you need them. Plasma is a popular choice and well tested on NixOS.<br/> 25 + <br/> 26 + Learn more at <a href=\"https://kde.org/plasma-desktop/\">kde.org/plasma-desktop</a></html>" 27 + screenshot: "images/plasma6.png" 28 + 29 + - id: xfce 30 + packages: [ xfce ] 31 + name: Xfce 32 + description: "<html>Xfce is a lightweight desktop environment. It aims to be fast and low on system resources, while still being visually appealing and user friendly.<br/> 33 + <br/> 34 + Learn more at <a href=\"https://www.xfce.org/\">xfce.org</a></html>" 35 + screenshot: "images/xfce.png" 36 + 37 + - id: pantheon 38 + packages: [ pantheon ] 39 + name: Pantheon 40 + description: "<html>Pantheon is the default desktop of Elementary OS. It provides a productive and intuitive user experience while also being visually appealing.<br/> 41 + <br/> 42 + Learn more at <a href=\"https://elementary.io/docs/learning-the-basics\">elementary.io/docs/learning-the-basics</a></html>" 43 + screenshot: "images/pantheon.png" 44 + 45 + - id: cinnamon 46 + packages: [ cinnamon ] 47 + name: Cinnamon 48 + description: "<html>Cinnamon is a desktop which provides advanced innovative features and a traditional user experience. The emphasis is put on making users feel at home and providing them with an easy to use and comfortable desktop experience.<br/> 49 + <br/> 50 + Learn more at <a href=\"https://projects.linuxmint.com/cinnamon/\">projects.linuxmint.com/cinnamon</a></html>" 51 + screenshot: "images/cinnamon.png" 52 + 53 + - id: mate 54 + packages: [ mate ] 55 + name: MATE 56 + description: "<html>The MATE Desktop Environment is the continuation of GNOME 2. It provides an intuitive and attractive desktop environment.<br/> 57 + <br/> 58 + Learn more at <a href=\"https://mate-desktop.org/\">mate-desktop.org</a></html>" 59 + screenshot: "images/mate.png" 60 + 61 + - id: enlightenment 62 + packages: [ enlightenment ] 63 + name: Enlightenment 64 + description: "<html>Enlightenment is a Window Manager, Compositor and Minimal Desktop. Enlightenment is classed as a desktop shell as it provides everything you need to operate your desktop or laptop, but it is not a full application suite.<br/> 65 + <br/> 66 + Learn more at <a href=\"https://www.enlightenment.org/\">enlightenment.org</a></html>" 67 + screenshot: "images/enlightenment.png" 68 + 69 + - id: lxqt 70 + packages: [ lxqt ] 71 + name: LXQt 72 + description: "<html>LXQt is a lightweight Qt desktop environment. It will not get in your way. It will not hang or slow down your system. It is focused on being a classic desktop with a modern look and feel.<br/> 73 + <br/> 74 + Learn more at <a href=\"https://lxqt-project.org/\">lxqt-project.org</a></html>" 75 + screenshot: "images/lxqt.png" 76 + 77 + # Lumina is not yet stable enough, once it is, simply uncommenting the lines below is all that's needed to enable it as an option 78 + #- id: lumina 79 + # packages: [ lumina ] 80 + # name: Lumina 81 + # description: "<html>Lumina is designed to have a small footprint, giving your system the best performance possible. It is built to flow seamlessly between computer tasks and offers several integrated utilities in one convenient package.<br/> 82 + # - Learn more at <a href=\"https://lumina-desktop.org/\">lumina-desktop.org</a></html>" 83 + # screenshot: "images/lumina.png" 84 + 85 + - id: budgie 86 + packages: [ budgie ] 87 + name: Budgie 88 + description: "<html>The Budgie Desktop is a feature-rich, modern desktop designed to keep out the way of the user.<br/> 89 + <br/> 90 + Learn more at <a href=\"https://docs.buddiesofbudgie.org/\">buddiesofbudgie.org</a></html>" 91 + screenshot: "images/budgie.png" 92 + 93 + - id: deepin 94 + packages: [ deepin ] 95 + name: Deepin 96 + description: "<html>The Deepin Desktop Environment is an elegant, easy to use and reliable desktop environment.<br/> 97 + <br/> 98 + Learn more at <a href=\"https://www.deepin.org/\">deepin.org</a></html>" 99 + screenshot: "images/deepin.png" 100 + 101 + - id: "" 102 + packages: [] 103 + name: "No desktop" 104 + screenshot: "images/nodesktop.png" 105 + description: "A minimal system without a graphical user interface will be installed. This is great for servers or custom setups with window managers. The configuration can be changed after installation."
+22
pkgs/by-name/ca/calamares-nixos-extensions/src/config/modules/partition.conf
··· 1 + # https://codeberg.org/Calamares/calamares/src/branch/calamares/src/modules/partition/partition.conf 2 + efi: 3 + mountPoint: "/boot" 4 + recommendedSize: 1GiB 5 + minimumSize: 32MiB 6 + label: "EFI" 7 + 8 + userSwapChoices: 9 + - none 10 + - small 11 + - suspend 12 + 13 + luksGeneration: luks2 14 + 15 + showNotEncryptedBootMessage: false 16 + 17 + partitionLayout: 18 + - name: "root" 19 + filesystem: "ext4" 20 + noEncrypt: false 21 + mountPoint: "/" 22 + size: 100%
+5
pkgs/by-name/ca/calamares-nixos-extensions/src/config/modules/unfree.conf
··· 1 + --- 2 + qmlSearch: branding 3 + 4 + qmlLabel: 5 + notes: "Unfree software"
+32
pkgs/by-name/ca/calamares-nixos-extensions/src/config/modules/users.conf
··· 1 + # https://codeberg.org/Calamares/calamares/src/branch/calamares/src/modules/users/users.conf 2 + defaultGroups: 3 + - users 4 + - networkmanager 5 + - wheel 6 + 7 + setRootPassword: true 8 + doReusePassword: false 9 + doAutologin: false 10 + 11 + # Recommended libpwquality settings from upstream 12 + passwordRequirements: 13 + minLength: 8 14 + maxLength: 64 15 + libpwquality: 16 + - minlen=8 17 + - maxrepeat=3 18 + - maxsequence=3 19 + - usersubstr=4 20 + - badwords=linux 21 + 22 + allowWeakPasswords: true 23 + allowWeakPasswordsDefault: false 24 + 25 + user: 26 + shell: /run/current-system/sw/bin/bash 27 + forbidden_names: [ root ] 28 + 29 + hostname: 30 + location: None 31 + writeHostsFile: false 32 + forbidden_names: [ localhost ]
+20
pkgs/by-name/ca/calamares-nixos-extensions/src/config/modules/welcome.conf
··· 1 + # https://codeberg.org/Calamares/calamares/src/branch/calamares/src/modules/welcome/welcome.conf 2 + showReleaseNotesUrl: true 3 + 4 + requirements: 5 + requiredStorage: 10 6 + requiredRam: 3.0 7 + 8 + internetCheckUrl: [ https://geoip.kde.org/v1/calamares, https://cache.nixos.org/ ] 9 + 10 + check: 11 + - storage 12 + - ram 13 + - power 14 + - internet 15 + - screen 16 + 17 + required: 18 + - storage 19 + - ram 20 + - internet
+208
pkgs/by-name/ca/calamares-nixos-extensions/src/config/settings.conf
··· 1 + # Configuration file for Calamares 2 + # 3 + # This is the top-level configuration file for Calamares. 4 + # It specifies what modules will be used, as well as some 5 + # overall characteristics -- is this a setup program, or 6 + # an installer. More specific configuration is devolved 7 + # to the branding file (for the UI) and the individual 8 + # module configuration files (for functionality). 9 + --- 10 + # Modules can be job modules (with different interfaces) and QtWidgets view 11 + # modules. They could all be placed in a number of different paths. 12 + # "modules-search" is a list of strings, each of these can either be a full 13 + # path to a directory or the keyword "local". 14 + # 15 + # "local" means: 16 + # - modules in $LIBDIR/calamares/modules, with 17 + # - settings in SHARE/calamares/modules or /etc/calamares/modules. 18 + # In debug-mode (e.g. calamares -d) "local" also adds some paths 19 + # that make sense from inside the build-directory, so that you 20 + # can build-and-run with the latest modules immediately. 21 + # 22 + # Strings other than "local" are taken as paths and interpreted 23 + # relative to wherever Calamares is started. It is therefore **strongly** 24 + # recommended to use only absolute paths here. This is mostly useful 25 + # if your distro has forks of standard Calamares modules, but also 26 + # uses some form of upstream packaging which might overwrite those 27 + # forked modules -- then you can keep modules somewhere outside of 28 + # the "regular" module tree. 29 + # 30 + # 31 + # YAML: list of strings. 32 + modules-search: [ local, @out@/lib/calamares/modules ] 33 + 34 + # Instances section. This section is optional, and it defines custom instances 35 + # for modules of any kind. An instance entry has these keys: 36 + # - *module* name, which matches the module name from the module descriptor 37 + # (usually the name of the directory under `src/modules/`, but third- 38 + # party modules may diverge. 39 + # - *id* (optional) an identifier to distinguish this instance from 40 + # all the others. If none is given, the name of the module is used. 41 + # Together, the module and id form an instance key (see below). 42 + # - *config* (optional) a filename for the configuration. If none is 43 + # given, *module*`.conf` is used (e.g. `welcome.conf` for the welcome 44 + # module) 45 + # - *weight* (optional) In the *exec* phase of the sequence, progress 46 + # is reported as jobs are completed. The jobs from a single module 47 + # together contribute the full weight of that module. The overall 48 + # progress (0 .. 100%) is divided up according to the weight of each 49 + # module. Give modules that take a lot of time to complete, a larger 50 + # weight to keep the overall progress moving along steadily. This 51 + # weight overrides a weight given in the module descriptor. If no weight 52 + # is given, uses the value from the module descriptor, or 1 if there 53 + # isn't one there either. 54 + # 55 + # The primary goal of this mechanism is to allow loading multiple instances 56 + # of the same module, with different configuration. If you don't need this, 57 + # the instances section can safely be left empty. 58 + # 59 + # Module name plus instance name makes an instance key, e.g. 60 + # "webview@owncloud", where "webview" is the module name (for the webview 61 + # viewmodule) and "owncloud" is the instance name. In the *sequence* 62 + # section below, use instance-keys to name instances (instead of just 63 + # a module name, for modules which have only a single instance). 64 + # 65 + # Every module implicitly has an instance with the instance name equal 66 + # to its module name, e.g. "welcome@welcome". In the *sequence* section, 67 + # mentioning a module without a full instance key (e.g. "welcome") 68 + # means that implicit module. 69 + # 70 + # An instance may specify its configuration file (e.g. `webview-home.conf`). 71 + # The implicit instances all have configuration files named `<module>.conf`. 72 + # This (implict) way matches the source examples, where the welcome 73 + # module contains an example `welcome.conf`. Specify a *config* for 74 + # any module (also implicit instances) to change which file is used. 75 + # 76 + # For more information on running module instances, run Calamares in debug 77 + # mode and check the Modules page in the Debug information interface. 78 + # 79 + # A module that is often used with instances is shellprocess, which will 80 + # run shell commands specified in the configuration file. By configuring 81 + # more than one instance of the module, multiple shell sessions can be run 82 + # during install. 83 + # 84 + # YAML: list of maps of string:string key-value pairs. 85 + instances: 86 + - id: unfree 87 + module: notesqml 88 + config: unfree.conf 89 + 90 + # Sequence section. This section describes the sequence of modules, both 91 + # viewmodules and jobmodules, as they should appear and/or run. 92 + # 93 + # A jobmodule instance key (or name) can only appear in an exec phase, whereas 94 + # a viewmodule instance key (or name) can appear in both exec and show phases. 95 + # There is no limit to the number of show or exec phases. However, the same 96 + # module instance key should not appear more than once per phase, and 97 + # deployers should take notice that the global storage structure is persistent 98 + # throughout the application lifetime, possibly influencing behavior across 99 + # phases. A show phase defines a sequence of viewmodules (and therefore 100 + # pages). These viewmodules can offer up jobs for the execution queue. 101 + # 102 + # An exec phase displays a progress page (with brandable slideshow). This 103 + # progress page iterates over the modules listed in the *immediately 104 + # preceding* show phase, and enqueues their jobs, as well as any other jobs 105 + # from jobmodules, in the order defined in the current exec phase. 106 + # 107 + # It then executes the job queue and clears it. If a viewmodule offers up a 108 + # job for execution, but the module name (or instance key) isn't listed in the 109 + # immediately following exec phase, this job will not be executed. 110 + # 111 + # YAML: list of lists of strings. 112 + sequence: 113 + - show: 114 + - welcome 115 + - locale 116 + - keyboard 117 + - users 118 + - packagechooser 119 + - notesqml@unfree 120 + - partition 121 + - summary 122 + - exec: 123 + - partition 124 + - mount 125 + - nixos 126 + - users 127 + - umount 128 + - show: 129 + - finished 130 + 131 + # A branding component is a directory, either in SHARE/calamares/branding or 132 + # in /etc/calamares/branding (the latter takes precedence). The directory must 133 + # contain a YAML file branding.desc which may reference additional resources 134 + # (such as images) as paths relative to the current directory. 135 + # 136 + # A branding component can also ship a QML slideshow for execution pages, 137 + # along with translation files. 138 + # 139 + # Only the name of the branding component (directory) should be specified 140 + # here, Calamares then takes care of finding it and loading the contents. 141 + # 142 + # YAML: string. 143 + branding: nixos 144 + 145 + # If this is set to true, Calamares will show an "Are you sure?" prompt right 146 + # before each execution phase, i.e. at points of no return. If this is set to 147 + # false, no prompt is shown. Default is false, but Calamares will complain if 148 + # this is not explicitly set. 149 + # 150 + # YAML: boolean. 151 + prompt-install: false 152 + 153 + # If this is set to true, Calamares will execute all target environment 154 + # commands in the current environment, without chroot. This setting should 155 + # only be used when setting up Calamares as a post-install configuration tool, 156 + # as opposed to a full operating system installer. 157 + # 158 + # Some official Calamares modules are not expected to function with this 159 + # setting. (e.g. partitioning seems like a bad idea, since that is expected to 160 + # have been done already) 161 + # 162 + # Default is false (for a normal installer), but Calamares will complain if 163 + # this is not explicitly set. 164 + # 165 + # YAML: boolean. 166 + dont-chroot: false 167 + 168 + # If this is set to true, Calamares refers to itself as a "setup program" 169 + # rather than an "installer". Defaults to the value of dont-chroot, but 170 + # Calamares will complain if this is not explicitly set. 171 + oem-setup: false 172 + 173 + # If this is set to true, the "Cancel" button will be disabled entirely. 174 + # The button is also hidden from view. 175 + # 176 + # This can be useful if when e.g. Calamares is used as a post-install 177 + # configuration tool and you require the user to go through all the 178 + # configuration steps. 179 + # 180 + # Default is false, but Calamares will complain if this is not explicitly set. 181 + # 182 + # YAML: boolean. 183 + disable-cancel: false 184 + 185 + # If this is set to true, the "Cancel" button will be disabled once 186 + # you start the 'Installation', meaning there won't be a way to cancel 187 + # the Installation until it has finished or installation has failed. 188 + # 189 + # Default is false, but Calamares will complain if this is not explicitly set. 190 + # 191 + # YAML: boolean. 192 + disable-cancel-during-exec: false 193 + 194 + # If this is set to true, the "Next" and "Back" button will be hidden once 195 + # you start the 'Installation'. 196 + # 197 + # Default is false, but Calamares will complain if this is not explicitly set. 198 + # 199 + # YAML: boolean. 200 + hide-back-and-next-during-exec: false 201 + 202 + # If this is set to true, then once the end of the sequence has 203 + # been reached, the quit (done) button is clicked automatically 204 + # and Calamares will close. Default is false: the user will see 205 + # that the end of installation has been reached, and that things are ok. 206 + # 207 + # 208 + quit-at-end: false
+835
pkgs/by-name/ca/calamares-nixos-extensions/src/modules/nixos/main.py
··· 1 + #!/usr/bin/env python3 2 + # -*- coding: utf-8 -*- 3 + import configparser 4 + import libcalamares 5 + import os 6 + import subprocess 7 + import re 8 + 9 + import gettext 10 + 11 + _ = gettext.translation( 12 + "calamares-python", 13 + localedir=libcalamares.utils.gettext_path(), 14 + languages=libcalamares.utils.gettext_languages(), 15 + fallback=True, 16 + ).gettext 17 + 18 + 19 + # The following strings contain pieces of a nix-configuration file. 20 + # They are adapted from the default config generated from the nixos-generate-config command. 21 + 22 + cfghead = """# Edit this configuration file to define what should be installed on 23 + # your system. Help is available in the configuration.nix(5) man page 24 + # and in the NixOS manual (accessible by running ‘nixos-help’). 25 + 26 + { config, pkgs, ... }: 27 + 28 + { 29 + imports = 30 + [ # Include the results of the hardware scan. 31 + ./hardware-configuration.nix 32 + ]; 33 + 34 + """ 35 + cfgbootefi = """ # Bootloader. 36 + boot.loader.systemd-boot.enable = true; 37 + boot.loader.efi.canTouchEfiVariables = true; 38 + 39 + """ 40 + 41 + cfgbootbios = """ # Bootloader. 42 + boot.loader.grub.enable = true; 43 + boot.loader.grub.device = "@@bootdev@@"; 44 + boot.loader.grub.useOSProber = true; 45 + 46 + """ 47 + 48 + cfgbootnone = """ # Disable bootloader. 49 + boot.loader.grub.enable = false; 50 + 51 + """ 52 + 53 + cfgbootgrubcrypt = """ # Setup keyfile 54 + boot.initrd.secrets = { 55 + "/boot/crypto_keyfile.bin" = null; 56 + }; 57 + 58 + boot.loader.grub.enableCryptodisk = true; 59 + 60 + """ 61 + 62 + cfgnetwork = """ networking.hostName = "@@hostname@@"; # Define your hostname. 63 + # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 64 + 65 + # Configure network proxy if necessary 66 + # networking.proxy.default = "http://user:password@proxy:port/"; 67 + # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; 68 + 69 + """ 70 + 71 + cfgnetworkmanager = """ # Enable networking 72 + networking.networkmanager.enable = true; 73 + 74 + """ 75 + 76 + cfgconnman = """ # Enable networking 77 + services.connman.enable = true; 78 + 79 + """ 80 + 81 + cfgnmapplet = """ # Enable network manager applet 82 + programs.nm-applet.enable = true; 83 + 84 + """ 85 + 86 + cfgtime = """ # Set your time zone. 87 + time.timeZone = "@@timezone@@"; 88 + 89 + """ 90 + 91 + cfglocale = """ # Select internationalisation properties. 92 + i18n.defaultLocale = "@@LANG@@"; 93 + 94 + """ 95 + 96 + cfglocaleextra = """ i18n.extraLocaleSettings = { 97 + LC_ADDRESS = "@@LC_ADDRESS@@"; 98 + LC_IDENTIFICATION = "@@LC_IDENTIFICATION@@"; 99 + LC_MEASUREMENT = "@@LC_MEASUREMENT@@"; 100 + LC_MONETARY = "@@LC_MONETARY@@"; 101 + LC_NAME = "@@LC_NAME@@"; 102 + LC_NUMERIC = "@@LC_NUMERIC@@"; 103 + LC_PAPER = "@@LC_PAPER@@"; 104 + LC_TELEPHONE = "@@LC_TELEPHONE@@"; 105 + LC_TIME = "@@LC_TIME@@"; 106 + }; 107 + 108 + """ 109 + 110 + cfggnome = """ # Enable the X11 windowing system. 111 + services.xserver.enable = true; 112 + 113 + # Enable the GNOME Desktop Environment. 114 + services.xserver.displayManager.gdm.enable = true; 115 + services.xserver.desktopManager.gnome.enable = true; 116 + 117 + """ 118 + 119 + cfgplasma6 = """ # Enable the X11 windowing system. 120 + # You can disable this if you're only using the Wayland session. 121 + services.xserver.enable = true; 122 + 123 + # Enable the KDE Plasma Desktop Environment. 124 + services.displayManager.sddm.enable = true; 125 + services.desktopManager.plasma6.enable = true; 126 + 127 + """ 128 + 129 + cfgxfce = """ # Enable the X11 windowing system. 130 + services.xserver.enable = true; 131 + 132 + # Enable the XFCE Desktop Environment. 133 + services.xserver.displayManager.lightdm.enable = true; 134 + services.xserver.desktopManager.xfce.enable = true; 135 + 136 + """ 137 + 138 + cfgpantheon = """ # Enable the X11 windowing system. 139 + services.xserver.enable = true; 140 + 141 + # Enable the Pantheon Desktop Environment. 142 + services.xserver.displayManager.lightdm.enable = true; 143 + services.xserver.desktopManager.pantheon.enable = true; 144 + 145 + """ 146 + 147 + cfgcinnamon = """ # Enable the X11 windowing system. 148 + services.xserver.enable = true; 149 + 150 + # Enable the Cinnamon Desktop Environment. 151 + services.xserver.displayManager.lightdm.enable = true; 152 + services.xserver.desktopManager.cinnamon.enable = true; 153 + 154 + """ 155 + 156 + cfgmate = """ # Enable the X11 windowing system. 157 + services.xserver.enable = true; 158 + 159 + # Enable the MATE Desktop Environment. 160 + services.xserver.displayManager.lightdm.enable = true; 161 + services.xserver.desktopManager.mate.enable = true; 162 + 163 + """ 164 + 165 + cfgenlightenment = """ # Enable the X11 windowing system. 166 + services.xserver.enable = true; 167 + 168 + # Enable the Enlightenment Desktop Environment. 169 + services.xserver.displayManager.lightdm.enable = true; 170 + services.xserver.desktopManager.enlightenment.enable = true; 171 + 172 + # Enable acpid 173 + services.acpid.enable = true; 174 + 175 + """ 176 + 177 + cfglxqt = """ # Enable the X11 windowing system. 178 + services.xserver.enable = true; 179 + 180 + # Enable the LXQT Desktop Environment. 181 + services.xserver.displayManager.lightdm.enable = true; 182 + services.xserver.desktopManager.lxqt.enable = true; 183 + 184 + """ 185 + 186 + cfglumina = """ # Enable the X11 windowing system. 187 + services.xserver.enable = true; 188 + 189 + # Enable the Lumina Desktop Environment. 190 + services.xserver.displayManager.lightdm.enable = true; 191 + services.xserver.desktopManager.lumina.enable = true; 192 + 193 + """ 194 + 195 + cfgbudgie = """ # Enable the X11 windowing system. 196 + services.xserver.enable = true; 197 + 198 + # Enable the Budgie Desktop environment. 199 + services.xserver.displayManager.lightdm.enable = true; 200 + services.xserver.desktopManager.budgie.enable = true; 201 + 202 + """ 203 + 204 + cfgdeepin = """ # Enable the X11 windowing system. 205 + services.xserver.enable = true; 206 + 207 + # Enable the Deepin Desktop Environment. 208 + services.xserver.displayManager.lightdm.enable = true; 209 + services.xserver.desktopManager.deepin.enable = true; 210 + 211 + """ 212 + 213 + cfgkeymap = """ # Configure keymap in X11 214 + services.xserver.xkb = { 215 + layout = "@@kblayout@@"; 216 + variant = "@@kbvariant@@"; 217 + }; 218 + 219 + """ 220 + cfgconsole = """ # Configure console keymap 221 + console.keyMap = "@@vconsole@@"; 222 + 223 + """ 224 + 225 + cfgmisc = """ # Enable CUPS to print documents. 226 + services.printing.enable = true; 227 + 228 + # Enable sound with pipewire. 229 + services.pulseaudio.enable = false; 230 + security.rtkit.enable = true; 231 + services.pipewire = { 232 + enable = true; 233 + alsa.enable = true; 234 + alsa.support32Bit = true; 235 + pulse.enable = true; 236 + # If you want to use JACK applications, uncomment this 237 + #jack.enable = true; 238 + 239 + # use the example session manager (no others are packaged yet so this is enabled by default, 240 + # no need to redefine it in your config for now) 241 + #media-session.enable = true; 242 + }; 243 + 244 + # Enable touchpad support (enabled default in most desktopManager). 245 + # services.xserver.libinput.enable = true; 246 + 247 + """ 248 + cfgusers = """ # Define a user account. Don't forget to set a password with ‘passwd’. 249 + users.users.@@username@@ = { 250 + isNormalUser = true; 251 + description = "@@fullname@@"; 252 + extraGroups = [ @@groups@@ ]; 253 + packages = with pkgs; [@@pkgs@@]; 254 + }; 255 + 256 + """ 257 + 258 + cfgfirefox = """ # Install firefox. 259 + programs.firefox.enable = true; 260 + 261 + """ 262 + 263 + cfgautologin = """ # Enable automatic login for the user. 264 + services.displayManager.autoLogin.enable = true; 265 + services.displayManager.autoLogin.user = "@@username@@"; 266 + 267 + """ 268 + 269 + cfgautologingdm = """ # Workaround for GNOME autologin: https://github.com/NixOS/nixpkgs/issues/103746#issuecomment-945091229 270 + systemd.services."getty@tty1".enable = false; 271 + systemd.services."autovt@tty1".enable = false; 272 + 273 + """ 274 + 275 + cfgautologintty = """ # Enable automatic login for the user. 276 + services.getty.autologinUser = "@@username@@"; 277 + 278 + """ 279 + 280 + cfgunfree = """ # Allow unfree packages 281 + nixpkgs.config.allowUnfree = true; 282 + 283 + """ 284 + 285 + cfgpkgs = """ # List packages installed in system profile. To search, run: 286 + # $ nix search wget 287 + environment.systemPackages = with pkgs; [ 288 + # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. 289 + # wget 290 + ]; 291 + 292 + """ 293 + 294 + cfgtail = """ # Some programs need SUID wrappers, can be configured further or are 295 + # started in user sessions. 296 + # programs.mtr.enable = true; 297 + # programs.gnupg.agent = { 298 + # enable = true; 299 + # enableSSHSupport = true; 300 + # }; 301 + 302 + # List services that you want to enable: 303 + 304 + # Enable the OpenSSH daemon. 305 + # services.openssh.enable = true; 306 + 307 + # Open ports in the firewall. 308 + # networking.firewall.allowedTCPPorts = [ ... ]; 309 + # networking.firewall.allowedUDPPorts = [ ... ]; 310 + # Or disable the firewall altogether. 311 + # networking.firewall.enable = false; 312 + 313 + # This value determines the NixOS release from which the default 314 + # settings for stateful data, like file locations and database versions 315 + # on your system were taken. It‘s perfectly fine and recommended to leave 316 + # this value at the release version of the first install of this system. 317 + # Before changing this value read the documentation for this option 318 + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 319 + system.stateVersion = "@@nixosversion@@"; # Did you read the comment? 320 + 321 + } 322 + """ 323 + 324 + cfglatestkernel = """ # Use latest kernel. 325 + boot.kernelPackages = pkgs.linuxPackages_latest; 326 + 327 + """ 328 + def env_is_set(name): 329 + envValue = os.environ.get(name) 330 + return not (envValue is None or envValue == "") 331 + 332 + def generateProxyStrings(): 333 + proxyEnv = [] 334 + if env_is_set('http_proxy'): 335 + proxyEnv.append('http_proxy={}'.format(os.environ.get('http_proxy'))) 336 + if env_is_set('https_proxy'): 337 + proxyEnv.append('https_proxy={}'.format(os.environ.get('https_proxy'))) 338 + if env_is_set('HTTP_PROXY'): 339 + proxyEnv.append('HTTP_PROXY={}'.format(os.environ.get('HTTP_PROXY'))) 340 + if env_is_set('HTTPS_PROXY'): 341 + proxyEnv.append('HTTPS_PROXY={}'.format(os.environ.get('HTTPS_PROXY'))) 342 + 343 + if len(proxyEnv) > 0: 344 + proxyEnv.insert(0, "env") 345 + 346 + return proxyEnv 347 + 348 + def pretty_name(): 349 + return _("Installing NixOS.") 350 + 351 + 352 + status = pretty_name() 353 + 354 + 355 + def pretty_status_message(): 356 + return status 357 + 358 + 359 + def catenate(d, key, *values): 360 + """ 361 + Sets @p d[key] to the string-concatenation of @p values 362 + if none of the values are None. 363 + This can be used to set keys conditionally based on 364 + the values being found. 365 + """ 366 + if [v for v in values if v is None]: 367 + return 368 + 369 + d[key] = "".join(values) 370 + 371 + 372 + def run(): 373 + """NixOS Configuration.""" 374 + 375 + global status 376 + status = _("Configuring NixOS") 377 + libcalamares.job.setprogress(0.1) 378 + 379 + ngc_cfg = configparser.ConfigParser() 380 + ngc_cfg["Defaults"] = { "Kernel": "lts" } 381 + ngc_cfg.read("/etc/nixos-generate-config.conf") 382 + 383 + # Create initial config file 384 + cfg = cfghead 385 + gs = libcalamares.globalstorage 386 + variables = dict() 387 + 388 + # Setup variables 389 + root_mount_point = gs.value("rootMountPoint") 390 + config = os.path.join(root_mount_point, "etc/nixos/configuration.nix") 391 + fw_type = gs.value("firmwareType") 392 + bootdev = ( 393 + "nodev" 394 + if gs.value("bootLoader") is None 395 + else gs.value("bootLoader")["installPath"] 396 + ) 397 + 398 + # Pick config parts and prepare substitution 399 + 400 + # Check bootloader 401 + if fw_type == "efi": 402 + cfg += cfgbootefi 403 + elif bootdev != "nodev": 404 + cfg += cfgbootbios 405 + catenate(variables, "bootdev", bootdev) 406 + else: 407 + cfg += cfgbootnone 408 + 409 + if ngc_cfg["Defaults"]["Kernel"] == "latest": 410 + cfg += cfglatestkernel 411 + 412 + # Setup encrypted swap devices. nixos-generate-config doesn't seem to notice them. 413 + for part in gs.value("partitions"): 414 + if ( 415 + part["claimed"] is True 416 + and (part["fsName"] == "luks" or part["fsName"] == "luks2") 417 + and part["device"] is not None 418 + and part["fs"] == "linuxswap" 419 + ): 420 + cfg += """ boot.initrd.luks.devices."{}".device = "/dev/disk/by-uuid/{}";\n""".format( 421 + part["luksMapperName"], part["uuid"] 422 + ) 423 + 424 + # Check partitions 425 + root_is_encrypted = False 426 + boot_is_encrypted = False 427 + boot_is_partition = False 428 + 429 + for part in gs.value("partitions"): 430 + if part["mountPoint"] == "/": 431 + root_is_encrypted = part["fsName"] in ["luks", "luks2"] 432 + elif part["mountPoint"] == "/boot": 433 + boot_is_partition = True 434 + boot_is_encrypted = part["fsName"] in ["luks", "luks2"] 435 + 436 + # Setup keys in /boot/crypto_keyfile if using BIOS and Grub cryptodisk 437 + if fw_type != "efi" and ( 438 + (boot_is_partition and boot_is_encrypted) 439 + or (root_is_encrypted and not boot_is_partition) 440 + ): 441 + cfg += cfgbootgrubcrypt 442 + status = _("Setting up LUKS") 443 + libcalamares.job.setprogress(0.15) 444 + try: 445 + libcalamares.utils.host_env_process_output( 446 + ["mkdir", "-p", root_mount_point + "/boot"], None 447 + ) 448 + libcalamares.utils.host_env_process_output( 449 + ["chmod", "0700", root_mount_point + "/boot"], None 450 + ) 451 + # Create /boot/crypto_keyfile.bin 452 + libcalamares.utils.host_env_process_output( 453 + [ 454 + "dd", 455 + "bs=512", 456 + "count=4", 457 + "if=/dev/random", 458 + "of=" + root_mount_point + "/boot/crypto_keyfile.bin", 459 + "iflag=fullblock", 460 + ], 461 + None, 462 + ) 463 + libcalamares.utils.host_env_process_output( 464 + ["chmod", "600", root_mount_point + "/boot/crypto_keyfile.bin"], None 465 + ) 466 + except subprocess.CalledProcessError: 467 + libcalamares.utils.error("Failed to create /boot/crypto_keyfile.bin") 468 + return ( 469 + _("Failed to create /boot/crypto_keyfile.bin"), 470 + _("Check if you have enough free space on your partition."), 471 + ) 472 + 473 + for part in gs.value("partitions"): 474 + if ( 475 + part["claimed"] is True 476 + and (part["fsName"] == "luks" or part["fsName"] == "luks2") 477 + and part["device"] is not None 478 + ): 479 + cfg += """ boot.initrd.luks.devices."{}".keyFile = "/boot/crypto_keyfile.bin";\n""".format( 480 + part["luksMapperName"] 481 + ) 482 + try: 483 + # Grub currently only supports pbkdf2 for luks2 484 + libcalamares.utils.host_env_process_output( 485 + [ 486 + "cryptsetup", 487 + "luksConvertKey", 488 + "--hash", 489 + "sha256", 490 + "--pbkdf", 491 + "pbkdf2", 492 + part["device"], 493 + ], 494 + None, 495 + part["luksPassphrase"], 496 + ) 497 + # Add luks drives to /boot/crypto_keyfile.bin 498 + libcalamares.utils.host_env_process_output( 499 + [ 500 + "cryptsetup", 501 + "luksAddKey", 502 + "--hash", 503 + "sha256", 504 + "--pbkdf", 505 + "pbkdf2", 506 + part["device"], 507 + root_mount_point + "/boot/crypto_keyfile.bin", 508 + ], 509 + None, 510 + part["luksPassphrase"], 511 + ) 512 + except subprocess.CalledProcessError: 513 + libcalamares.utils.error( 514 + "Failed to add {} to /boot/crypto_keyfile.bin".format( 515 + part["luksMapperName"] 516 + ) 517 + ) 518 + return ( 519 + _("cryptsetup failed"), 520 + _( 521 + "Failed to add {} to /boot/crypto_keyfile.bin".format( 522 + part["luksMapperName"] 523 + ) 524 + ), 525 + ) 526 + 527 + status = _("Configuring NixOS") 528 + libcalamares.job.setprogress(0.18) 529 + 530 + cfg += cfgnetwork 531 + if gs.value("packagechooser_packagechooser") == "enlightenment": 532 + cfg += cfgconnman 533 + else: 534 + cfg += cfgnetworkmanager 535 + 536 + if ( 537 + (gs.value("packagechooser_packagechooser") == "mate") 538 + | (gs.value("packagechooser_packagechooser") == "lxqt") 539 + | (gs.value("packagechooser_packagechooser") == "lumina") 540 + ): 541 + cfg += cfgnmapplet 542 + 543 + if gs.value("hostname") is None: 544 + catenate(variables, "hostname", "nixos") 545 + else: 546 + catenate(variables, "hostname", gs.value("hostname")) 547 + 548 + if gs.value("locationRegion") is not None and gs.value("locationZone") is not None: 549 + cfg += cfgtime 550 + catenate( 551 + variables, 552 + "timezone", 553 + gs.value("locationRegion"), 554 + "/", 555 + gs.value("locationZone"), 556 + ) 557 + 558 + if gs.value("localeConf") is not None: 559 + localeconf = gs.value("localeConf") 560 + locale = localeconf.pop("LANG").split("/")[0] 561 + cfg += cfglocale 562 + catenate(variables, "LANG", locale) 563 + if ( 564 + len(set(localeconf.values())) != 1 565 + or list(set(localeconf.values()))[0] != locale 566 + ): 567 + cfg += cfglocaleextra 568 + for conf in localeconf: 569 + catenate(variables, conf, localeconf.get(conf).split("/")[0]) 570 + 571 + # Choose desktop environment 572 + if gs.value("packagechooser_packagechooser") == "gnome": 573 + cfg += cfggnome 574 + elif gs.value("packagechooser_packagechooser") == "plasma6": 575 + cfg += cfgplasma6 576 + elif gs.value("packagechooser_packagechooser") == "xfce": 577 + cfg += cfgxfce 578 + elif gs.value("packagechooser_packagechooser") == "pantheon": 579 + cfg += cfgpantheon 580 + elif gs.value("packagechooser_packagechooser") == "cinnamon": 581 + cfg += cfgcinnamon 582 + elif gs.value("packagechooser_packagechooser") == "mate": 583 + cfg += cfgmate 584 + elif gs.value("packagechooser_packagechooser") == "enlightenment": 585 + cfg += cfgenlightenment 586 + elif gs.value("packagechooser_packagechooser") == "lxqt": 587 + cfg += cfglxqt 588 + elif gs.value("packagechooser_packagechooser") == "lumina": 589 + cfg += cfglumina 590 + elif gs.value("packagechooser_packagechooser") == "budgie": 591 + cfg += cfgbudgie 592 + elif gs.value("packagechooser_packagechooser") == "deepin": 593 + cfg += cfgdeepin 594 + 595 + if ( 596 + gs.value("keyboardLayout") is not None 597 + and gs.value("keyboardVariant") is not None 598 + ): 599 + cfg += cfgkeymap 600 + catenate(variables, "kblayout", gs.value("keyboardLayout")) 601 + catenate(variables, "kbvariant", gs.value("keyboardVariant")) 602 + 603 + if gs.value("keyboardVConsoleKeymap") is not None: 604 + try: 605 + subprocess.check_output( 606 + ["pkexec", "loadkeys", gs.value("keyboardVConsoleKeymap").strip()], 607 + stderr=subprocess.STDOUT, 608 + ) 609 + cfg += cfgconsole 610 + catenate( 611 + variables, "vconsole", gs.value("keyboardVConsoleKeymap").strip() 612 + ) 613 + except subprocess.CalledProcessError as e: 614 + libcalamares.utils.error("loadkeys: {}".format(e.output)) 615 + libcalamares.utils.error( 616 + "Setting vconsole keymap to {} will fail, using default".format( 617 + gs.value("keyboardVConsoleKeymap").strip() 618 + ) 619 + ) 620 + else: 621 + kbdmodelmap = open( 622 + "/run/current-system/sw/share/systemd/kbd-model-map", "r" 623 + ) 624 + kbd = kbdmodelmap.readlines() 625 + out = [] 626 + for line in kbd: 627 + if line.startswith("#"): 628 + continue 629 + out.append(line.split()) 630 + # Find rows with same layout 631 + find = [] 632 + for row in out: 633 + if gs.value("keyboardLayout") == row[1]: 634 + find.append(row) 635 + if find != []: 636 + vconsole = find[0][0] 637 + else: 638 + vconsole = "" 639 + if gs.value("keyboardVariant") is not None: 640 + variant = gs.value("keyboardVariant") 641 + else: 642 + variant = "-" 643 + # Find rows with same variant 644 + for row in find: 645 + if variant in row[3]: 646 + vconsole = row[0] 647 + break 648 + # If none found set to "us" 649 + if vconsole != "" and vconsole != "us" and vconsole is not None: 650 + try: 651 + subprocess.check_output( 652 + ["pkexec", "loadkeys", vconsole], stderr=subprocess.STDOUT 653 + ) 654 + cfg += cfgconsole 655 + catenate(variables, "vconsole", vconsole) 656 + except subprocess.CalledProcessError as e: 657 + libcalamares.utils.error("loadkeys: {}".format(e.output)) 658 + libcalamares.utils.error("vconsole value: {}".format(vconsole)) 659 + libcalamares.utils.error( 660 + "Setting vconsole keymap to {} will fail, using default".format( 661 + gs.value("keyboardVConsoleKeymap") 662 + ) 663 + ) 664 + 665 + if ( 666 + gs.value("packagechooser_packagechooser") is not None 667 + and gs.value("packagechooser_packagechooser") != "" 668 + ): 669 + cfg += cfgmisc 670 + 671 + if gs.value("username") is not None: 672 + fullname = gs.value("fullname") 673 + groups = ["networkmanager", "wheel"] 674 + 675 + cfg += cfgusers 676 + catenate(variables, "username", gs.value("username")) 677 + catenate(variables, "fullname", fullname) 678 + catenate(variables, "groups", (" ").join(['"' + s + '"' for s in groups])) 679 + if ( 680 + gs.value("autoLoginUser") is not None 681 + and gs.value("packagechooser_packagechooser") is not None 682 + and gs.value("packagechooser_packagechooser") != "" 683 + ): 684 + cfg += cfgautologin 685 + if gs.value("packagechooser_packagechooser") == "gnome": 686 + cfg += cfgautologingdm 687 + elif gs.value("autoLoginUser") is not None: 688 + cfg += cfgautologintty 689 + 690 + if gs.value("packagechooser_packagechooser") != "": 691 + cfg += cfgfirefox 692 + 693 + # Check if unfree packages are allowed 694 + free = True 695 + if gs.value("nixos_allow_unfree"): 696 + free = False 697 + cfg += cfgunfree 698 + 699 + cfg += cfgpkgs 700 + # Use firefox as default as a graphical web browser, and add kate to plasma desktop 701 + if gs.value("packagechooser_packagechooser") == "plasma6": 702 + catenate( 703 + variables, "pkgs", "\n kdePackages.kate\n # thunderbird\n " 704 + ) 705 + elif gs.value("packagechooser_packagechooser") != "": 706 + catenate(variables, "pkgs", "\n # thunderbird\n ") 707 + else: 708 + catenate(variables, "pkgs", "") 709 + 710 + cfg += cfgtail 711 + version = ".".join(subprocess.getoutput(["nixos-version"]).split(".")[:2])[:5] 712 + catenate(variables, "nixosversion", version) 713 + 714 + # Check that all variables are used 715 + for key in variables.keys(): 716 + pattern = "@@{key}@@".format(key=key) 717 + if pattern not in cfg: 718 + libcalamares.utils.warning("Variable '{key}' is not used.".format(key=key)) 719 + 720 + # Check that all patterns exist 721 + variable_pattern = re.compile(r"@@\w+@@") 722 + for match in variable_pattern.finditer(cfg): 723 + variable_name = cfg[match.start() + 2 : match.end() - 2] 724 + if variable_name not in variables: 725 + libcalamares.utils.warning( 726 + "Variable '{key}' is used but not defined.".format(key=variable_name) 727 + ) 728 + 729 + # Do the substitutions 730 + for key in variables.keys(): 731 + pattern = "@@{key}@@".format(key=key) 732 + cfg = cfg.replace(pattern, str(variables[key])) 733 + 734 + status = _("Generating NixOS configuration") 735 + libcalamares.job.setprogress(0.25) 736 + 737 + try: 738 + # Generate hardware.nix with mounted swap device 739 + subprocess.check_output( 740 + ["pkexec", "nixos-generate-config", "--root", root_mount_point], 741 + stderr=subprocess.STDOUT, 742 + ) 743 + except subprocess.CalledProcessError as e: 744 + if e.output is not None: 745 + libcalamares.utils.error(e.output.decode("utf8")) 746 + return (_("nixos-generate-config failed"), _(e.output.decode("utf8"))) 747 + 748 + # Check for unfree stuff in hardware-configuration.nix 749 + hf = open(root_mount_point + "/etc/nixos/hardware-configuration.nix", "r") 750 + htxt = hf.read() 751 + search = re.search(r"boot\.extraModulePackages = \[ (.*) \];", htxt) 752 + 753 + # Check if any extraModulePackages are defined, and remove if only free packages are allowed 754 + if search is not None and free: 755 + expkgs = search.group(1).split(" ") 756 + for pkg in expkgs: 757 + p = ".".join(pkg.split(".")[3:]) 758 + # Check package p is unfree 759 + isunfree = subprocess.check_output( 760 + [ 761 + "nix-instantiate", 762 + "--eval", 763 + "--strict", 764 + "-E", 765 + "with import <nixpkgs> {{}}; pkgs.linuxKernel.packageAliases.linux_default.{}.meta.unfree".format( 766 + p 767 + ), 768 + "--json", 769 + ], 770 + stderr=subprocess.STDOUT, 771 + ) 772 + if isunfree == b"true": 773 + libcalamares.utils.warning( 774 + "{} is marked as unfree, removing from hardware-configuration.nix".format( 775 + p 776 + ) 777 + ) 778 + expkgs.remove(pkg) 779 + hardwareout = re.sub( 780 + r"boot\.extraModulePackages = \[ (.*) \];", 781 + "boot.extraModulePackages = [ {}];".format( 782 + "".join(map(lambda x: x + " ", expkgs)) 783 + ), 784 + htxt, 785 + ) 786 + # Write the hardware-configuration.nix file 787 + libcalamares.utils.host_env_process_output( 788 + [ 789 + "cp", 790 + "/dev/stdin", 791 + root_mount_point + "/etc/nixos/hardware-configuration.nix", 792 + ], 793 + None, 794 + hardwareout, 795 + ) 796 + 797 + # Write the configuration.nix file 798 + libcalamares.utils.host_env_process_output(["cp", "/dev/stdin", config], None, cfg) 799 + 800 + status = _("Installing NixOS") 801 + libcalamares.job.setprogress(0.3) 802 + 803 + # build nixos-install command 804 + nixosInstallCmd = [ "pkexec" ] 805 + nixosInstallCmd.extend(generateProxyStrings()) 806 + nixosInstallCmd.extend( 807 + [ 808 + "nixos-install", 809 + "--no-root-passwd", 810 + "--root", 811 + root_mount_point 812 + ] 813 + ) 814 + 815 + # Install customizations 816 + try: 817 + output = "" 818 + proc = subprocess.Popen( 819 + nixosInstallCmd, 820 + stdout=subprocess.PIPE, 821 + stderr=subprocess.STDOUT 822 + ) 823 + while True: 824 + line = proc.stdout.readline().decode("utf-8") 825 + output += line 826 + libcalamares.utils.debug("nixos-install: {}".format(line.strip())) 827 + if not line: 828 + break 829 + exit = proc.wait() 830 + if exit != 0: 831 + return (_("nixos-install failed"), _(output)) 832 + except: 833 + return (_("nixos-install failed"), _("Installation failed to complete")) 834 + 835 + return None
+5
pkgs/by-name/ca/calamares-nixos-extensions/src/modules/nixos/module.desc
··· 1 + --- 2 + type: "job" 3 + name: "nixos" 4 + interface: "python" 5 + script: "main.py"
+30
pkgs/by-name/ca/calamares-nixos/package.nix
··· 1 + { 2 + lib, 3 + runCommand, 4 + makeWrapper, 5 + calamares, 6 + calamares-nixos-extensions, 7 + }: 8 + runCommand "calamares-wrapped" 9 + { 10 + inherit (calamares) version meta; 11 + 12 + nativeBuildInputs = [ makeWrapper ]; 13 + } 14 + '' 15 + mkdir -p $out/bin 16 + 17 + cd ${calamares} 18 + 19 + for i in *; do 20 + if [ "$i" == "bin" ]; then 21 + continue 22 + fi 23 + ln -s ${calamares}/$i $out/$i 24 + done 25 + 26 + makeWrapper ${lib.getExe calamares} $out/bin/calamares \ 27 + --prefix XDG_DATA_DIRS : ${calamares-nixos-extensions}/share \ 28 + --prefix XDG_CONFIG_DIRS : ${calamares-nixos-extensions}/etc \ 29 + --add-flag --xdg-config 30 + ''
+33
pkgs/by-name/ca/calamares/let-qml-write-to-global-storage.patch
··· 1 + diff --git a/src/libcalamares/GlobalStorage.h b/src/libcalamares/GlobalStorage.h 2 + index 37ea332d2..b9e629350 100644 3 + --- a/src/libcalamares/GlobalStorage.h 4 + +++ b/src/libcalamares/GlobalStorage.h 5 + @@ -56,13 +56,6 @@ public: 6 + */ 7 + explicit GlobalStorage( QObject* parent = nullptr ); 8 + 9 + - /** @brief Insert a key and value into the store 10 + - * 11 + - * The @p value is added to the store with key @p key. If @p key 12 + - * already exists in the store, its existing value is overwritten. 13 + - * The changed() signal is emitted regardless. 14 + - */ 15 + - void insert( const QString& key, const QVariant& value ); 16 + /** @brief Removes a key and its value 17 + * 18 + * The @p key is removed from the store. If the @p key does not 19 + @@ -123,6 +116,14 @@ public: 20 + QVariantMap data() const { return m; } 21 + 22 + public Q_SLOTS: 23 + + /** @brief Insert a key and value into the store 24 + + * 25 + + * The @p value is added to the store with key @p key. If @p key 26 + + * already exists in the store, its existing value is overwritten. 27 + + * The changed() signal is emitted regardless. 28 + + */ 29 + + void insert( const QString& key, const QVariant& value ); 30 + + 31 + /** @brief Does the store contain the given key? 32 + * 33 + * This can distinguish an explicitly-inserted QVariant() from
+135
pkgs/by-name/ca/calamares/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + 5 + writeShellScriptBin, 6 + xdg-utils, 7 + 8 + fetchFromGitea, 9 + 10 + cmake, 11 + ninja, 12 + kdePackages, 13 + qt6, 14 + 15 + libpwquality, 16 + libxcrypt, 17 + parted, 18 + yaml-cpp, 19 + 20 + tzdata, 21 + ckbcomp, 22 + util-linux, 23 + os-prober, 24 + xkeyboard_config, 25 + 26 + # passthru.tests 27 + calamares-nixos, 28 + }: 29 + 30 + let 31 + # drop privileges so we can launch browsers, etc; 32 + # force going through the portal so we get the right environment 33 + xdg-open-nixos = writeShellScriptBin "xdg-open" '' 34 + sudo --user $(id -nu $PKEXEC_UID) env NIXOS_XDG_OPEN_USE_PORTAL=1 ${xdg-utils}/bin/xdg-open "$@" 35 + ''; 36 + in 37 + stdenv.mkDerivation (finalAttrs: { 38 + pname = "calamares"; 39 + version = "3.4.0"; 40 + 41 + src = fetchFromGitea { 42 + domain = "codeberg.org"; 43 + owner = "Calamares"; 44 + repo = "calamares"; 45 + tag = "v${finalAttrs.version}"; 46 + hash = "sha256-Qk+GnonuEWK3hXjmwxf9awgxr6dGunShJgwmkT78qKM="; 47 + }; 48 + 49 + patches = [ 50 + # Don't allow LUKS in manual partitioning 51 + # FIXME: this really needs to be fixed on the module end 52 + ./dont-allow-manual-luks.patch 53 + 54 + # Don't create users - they're already created by the installer 55 + # FIXME: upstream this? 56 + ./dont-create-users.patch 57 + 58 + # Allow QML to write to GlobalStorage 59 + # FIXME: upstream this 60 + ./let-qml-write-to-global-storage.patch 61 + ]; 62 + 63 + nativeBuildInputs = [ 64 + cmake 65 + ninja 66 + kdePackages.extra-cmake-modules 67 + qt6.wrapQtAppsHook 68 + ]; 69 + 70 + buildInputs = [ 71 + kdePackages.kcoreaddons 72 + kdePackages.kcrash 73 + kdePackages.kpackage 74 + kdePackages.kparts 75 + kdePackages.kpmcore 76 + kdePackages.kservice 77 + kdePackages.libplasma 78 + libpwquality 79 + libxcrypt 80 + parted 81 + kdePackages.polkit-qt-1 82 + qt6.qtbase 83 + qt6.qttools 84 + yaml-cpp 85 + ]; 86 + 87 + postPatch = '' 88 + # this is called via pkexec, which does not resolve symlinks, so the policy 89 + # needs to point at the symlinked path 90 + substituteInPlace io.calamares.calamares.policy \ 91 + --replace-fail /usr/bin/calamares /run/current-system/sw/bin/calamares 92 + 93 + substituteInPlace src/modules/locale/SetTimezoneJob.cpp src/libcalamares/locale/TimeZone.cpp \ 94 + --replace-fail /usr/share/zoneinfo ${tzdata}/share/zoneinfo 95 + 96 + substituteInPlace src/modules/keyboard/keyboardwidget/keyboardglobal.cpp \ 97 + --replace-fail /usr/share/X11/xkb/rules/base.lst ${xkeyboard_config}/share/X11/xkb/rules/base.lst 98 + 99 + substituteInPlace CMakeLists.txt \ 100 + --replace-fail "\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}" "$out/share/polkit-1/actions" 101 + ''; 102 + 103 + separateDebugInfo = true; 104 + 105 + qtWrapperArgs = [ 106 + "--prefix PATH : ${ 107 + lib.makeBinPath [ 108 + ckbcomp 109 + os-prober 110 + util-linux 111 + xdg-open-nixos 112 + ] 113 + }" 114 + ]; 115 + 116 + passthru.tests = { 117 + inherit calamares-nixos; 118 + }; 119 + 120 + meta = with lib; { 121 + description = "Distribution-independent installer framework"; 122 + homepage = "https://calamares.io/"; 123 + license = with licenses; [ 124 + gpl3Plus 125 + bsd2 126 + cc0 127 + ]; 128 + maintainers = with maintainers; [ 129 + manveru 130 + vlinkz 131 + ]; 132 + platforms = platforms.linux; 133 + mainProgram = "calamares"; 134 + }; 135 + })
+3 -15
pkgs/tools/misc/calamares/0001-Modifies-the-users-module-to-only-set-passwords-of-u.patch pkgs/by-name/ca/calamares/dont-create-users.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Victor Fuentes <vmfuentes64@gmail.com> 3 - Date: Thu, 1 Aug 2024 15:53:16 -0400 4 - Subject: [PATCH] Modifies the users module to only set passwords of user and 5 - root 6 - 7 - as the users will have already been created in the configuration.nix 8 - file 9 - --- 10 - src/modules/users/Config.cpp | 15 --------------- 11 - 1 file changed, 15 deletions(-) 12 - 13 1 diff --git a/src/modules/users/Config.cpp b/src/modules/users/Config.cpp 14 - index cd56bc3e2..9b09b36cd 100644 2 + index be754774b..4b0513df0 100644 15 3 --- a/src/modules/users/Config.cpp 16 4 +++ b/src/modules/users/Config.cpp 17 - @@ -1028,12 +1028,6 @@ Config::createJobs() const 5 + @@ -1069,12 +1069,6 @@ Config::createJobs() const 18 6 19 7 Calamares::Job* j; 20 8 ··· 27 15 if ( getActiveDirectoryUsed() ) 28 16 { 29 17 j = new ActiveDirectoryJob( m_activeDirectoryAdminUsername, 30 - @@ -1043,20 +1037,11 @@ Config::createJobs() const 18 + @@ -1084,20 +1078,11 @@ Config::createJobs() const 31 19 jobs.append( Calamares::job_ptr( j ) ); 32 20 } 33 21
-60
pkgs/tools/misc/calamares/0002-Makes-calamares-search-run-current-system-sw-share-c.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Victor Fuentes <vmfuentes64@gmail.com> 3 - Date: Thu, 1 Aug 2024 15:57:55 -0400 4 - Subject: [PATCH] Makes calamares search 5 - /run/current-system/sw/share/calamares/ for extra configuration files as by 6 - default it only searches /usr/share/calamares/ and 7 - /nix/store/<hash>-calamares-<version>/share/calamares/ but 8 - calamares-nixos-extensions is not in either of these locations 9 - 10 - --- 11 - src/calamares/main.cpp | 1 + 12 - src/libcalamares/utils/Dirs.cpp | 8 ++++++++ 13 - src/libcalamares/utils/Dirs.h | 3 +++ 14 - 3 files changed, 12 insertions(+) 15 - 16 - diff --git a/src/calamares/main.cpp b/src/calamares/main.cpp 17 - index e0491e5f9..faf272016 100644 18 - --- a/src/calamares/main.cpp 19 - +++ b/src/calamares/main.cpp 20 - @@ -132,6 +132,7 @@ main( int argc, char* argv[] ) 21 - #endif 22 - 23 - std::unique_ptr< KDSingleApplication > possiblyUnique; 24 - + Calamares::setNixosDirs(); 25 - const bool is_debug = handle_args( a ); 26 - if ( !is_debug ) 27 - { 28 - diff --git a/src/libcalamares/utils/Dirs.cpp b/src/libcalamares/utils/Dirs.cpp 29 - index c42768a08..dfce7eb5d 100644 30 - --- a/src/libcalamares/utils/Dirs.cpp 31 - +++ b/src/libcalamares/utils/Dirs.cpp 32 - @@ -114,6 +114,14 @@ setXdgDirs() 33 - s_haveExtraDirs = !( s_extraConfigDirs.isEmpty() && s_extraDataDirs.isEmpty() ); 34 - } 35 - 36 - +void 37 - +setNixosDirs() 38 - +{ 39 - + s_extraConfigDirs << "/run/current-system/sw/share/calamares/"; 40 - + s_extraDataDirs << "/run/current-system/sw/share/calamares/"; 41 - + s_haveExtraDirs = !( s_extraConfigDirs.isEmpty() && s_extraDataDirs.isEmpty() ); 42 - +} 43 - + 44 - QStringList 45 - extraConfigDirs() 46 - { 47 - diff --git a/src/libcalamares/utils/Dirs.h b/src/libcalamares/utils/Dirs.h 48 - index d0edd7a4f..26bd16b4e 100644 49 - --- a/src/libcalamares/utils/Dirs.h 50 - +++ b/src/libcalamares/utils/Dirs.h 51 - @@ -50,6 +50,9 @@ DLLEXPORT bool isAppDataDirOverridden(); 52 - /** @brief Setup extra config and data dirs from the XDG variables. 53 - */ 54 - DLLEXPORT void setXdgDirs(); 55 - +/** @brief Setup extra config and data dirs fir NixOS. 56 - + */ 57 - +DLLEXPORT void setNixosDirs(); 58 - /** @brief Are any extra directories configured? */ 59 - DLLEXPORT bool haveExtraDirs(); 60 - /** @brief XDG_CONFIG_DIRS, each guaranteed to end with / */
-119
pkgs/tools/misc/calamares/0003-Uses-pkexec-within-modules-in-order-to-run-calamares.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Victor Fuentes <vmfuentes64@gmail.com> 3 - Date: Thu, 1 Aug 2024 15:59:54 -0400 4 - Subject: [PATCH] Uses pkexec within modules in order to run calamares without 5 - root permissions as a whole. 6 - 7 - Also fixes storage check in the welcome module 8 - --- 9 - src/libcalamares/utils/Runner.cpp | 8 +++--- 10 - src/modules/mount/main.py | 8 +++--- 11 - .../welcome/checker/GeneralRequirements.cpp | 27 ++++++++++++++++++- 12 - .../welcome/checker/GeneralRequirements.h | 1 + 13 - 4 files changed, 35 insertions(+), 9 deletions(-) 14 - 15 - diff --git a/src/libcalamares/utils/Runner.cpp b/src/libcalamares/utils/Runner.cpp 16 - index f7872a7d0..a246ca110 100644 17 - --- a/src/libcalamares/utils/Runner.cpp 18 - +++ b/src/libcalamares/utils/Runner.cpp 19 - @@ -145,13 +145,13 @@ Calamares::Utils::Runner::run() 20 - } 21 - if ( m_location == RunLocation::RunInTarget ) 22 - { 23 - - process.setProgram( "chroot" ); 24 - - process.setArguments( QStringList { workingDirectory.absolutePath() } << m_command ); 25 - + process.setProgram( "pkexec" ); 26 - + process.setArguments( QStringList { "chroot" } + QStringList { workingDirectory.absolutePath() } << m_command ); 27 - } 28 - else 29 - { 30 - - process.setProgram( "env" ); 31 - - process.setArguments( m_command ); 32 - + process.setProgram( "pkexec" ); 33 - + process.setArguments( QStringList { "env" } + m_command ); 34 - } 35 - 36 - if ( m_output ) 37 - diff --git a/src/modules/mount/main.py b/src/modules/mount/main.py 38 - index 4a16f8872..6d32916a5 100644 39 - --- a/src/modules/mount/main.py 40 - +++ b/src/modules/mount/main.py 41 - @@ -244,7 +244,7 @@ def mount_partition(root_mount_point, partition, partitions, mount_options, moun 42 - # Ensure that the created directory has the correct SELinux context on 43 - # SELinux-enabled systems. 44 - 45 - - os.makedirs(mount_point, exist_ok=True) 46 - + subprocess.check_call(["pkexec", "mkdir", "-p", mount_point]) 47 - 48 - try: 49 - subprocess.call(['chcon', '--reference=' + raw_mount_point, mount_point]) 50 - @@ -288,13 +288,13 @@ def mount_partition(root_mount_point, partition, partitions, mount_options, moun 51 - for s in btrfs_subvolumes: 52 - if not s["subvolume"]: 53 - continue 54 - - os.makedirs(root_mount_point + os.path.dirname(s["subvolume"]), exist_ok=True) 55 - - subprocess.check_call(["btrfs", "subvolume", "create", 56 - + subprocess.check_call(["pkexec", "mkdir", "-p", root_mount_point + os.path.dirname(s["subvolume"])]) 57 - + subprocess.check_call(["pkexec", "btrfs", "subvolume", "create", 58 - root_mount_point + s["subvolume"]]) 59 - if s["mountPoint"] == "/": 60 - # insert the root subvolume into global storage 61 - libcalamares.globalstorage.insert("btrfsRootSubvolume", s["subvolume"]) 62 - - subprocess.check_call(["umount", "-v", root_mount_point]) 63 - + subprocess.check_call(["pkexec", "umount", "-v", root_mount_point]) 64 - 65 - device = partition["device"] 66 - 67 - diff --git a/src/modules/welcome/checker/GeneralRequirements.cpp b/src/modules/welcome/checker/GeneralRequirements.cpp 68 - index a58f3df83..b66576b09 100644 69 - --- a/src/modules/welcome/checker/GeneralRequirements.cpp 70 - +++ b/src/modules/welcome/checker/GeneralRequirements.cpp 71 - @@ -431,10 +431,35 @@ GeneralRequirements::checkEnoughStorage( qint64 requiredSpace ) 72 - cWarning() << "GeneralRequirements is configured without libparted."; 73 - return false; 74 - #else 75 - - return check_big_enough( requiredSpace ); 76 - + return big_enough( requiredSpace ); 77 - #endif 78 - } 79 - 80 - +bool 81 - +GeneralRequirements::big_enough( qint64 requiredSpace ) 82 - +{ 83 - + FILE *fpipe; 84 - + char command[128]; 85 - + snprintf(command, sizeof(command), "lsblk --bytes -no SIZE,TYPE | grep disk | awk '$1 > %llu {print $1}'", requiredSpace); 86 - + char c = 0; 87 - + 88 - + if (0 == (fpipe = (FILE*)popen(command, "r"))) 89 - + { 90 - + cWarning() << "Failed to check storage size."; 91 - + return false; 92 - + } 93 - + 94 - + while (fread(&c, sizeof c, 1, fpipe)) 95 - + { 96 - + pclose(fpipe); 97 - + return true; 98 - + } 99 - + 100 - + pclose(fpipe); 101 - + 102 - + return false; 103 - +} 104 - + 105 - bool 106 - GeneralRequirements::checkEnoughRam( qint64 requiredRam ) 107 - { 108 - diff --git a/src/modules/welcome/checker/GeneralRequirements.h b/src/modules/welcome/checker/GeneralRequirements.h 109 - index b6646da11..ea27324fa 100644 110 - --- a/src/modules/welcome/checker/GeneralRequirements.h 111 - +++ b/src/modules/welcome/checker/GeneralRequirements.h 112 - @@ -36,6 +36,7 @@ private: 113 - bool checkHasPower(); 114 - bool checkHasInternet(); 115 - bool checkIsRoot(); 116 - + bool big_enough( qint64 requiredSpace ); 117 - 118 - qreal m_requiredStorageGiB; 119 - qreal m_requiredRamGiB;
-122
pkgs/tools/misc/calamares/0004-Adds-unfree-qml-to-packagechooserq.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Victor Fuentes <vmfuentes64@gmail.com> 3 - Date: Thu, 1 Aug 2024 16:00:43 -0400 4 - Subject: [PATCH] Adds unfree qml to packagechooserq 5 - 6 - --- 7 - .../packagechooserq/packagechooserq.qrc | 1 + 8 - .../packagechooserq@unfree.qml | 75 +++++++++++++++++++ 9 - src/modules/packagechooserq/unfree.conf | 11 +++ 10 - 3 files changed, 87 insertions(+) 11 - create mode 100644 src/modules/packagechooserq/packagechooserq@unfree.qml 12 - create mode 100644 src/modules/packagechooserq/unfree.conf 13 - 14 - diff --git a/src/modules/packagechooserq/packagechooserq.qrc b/src/modules/packagechooserq/packagechooserq.qrc 15 - index 1b892dce1..ee80a934b 100644 16 - --- a/src/modules/packagechooserq/packagechooserq.qrc 17 - +++ b/src/modules/packagechooserq/packagechooserq.qrc 18 - @@ -4,5 +4,6 @@ 19 - <file>images/libreoffice.jpg</file> 20 - <file>images/no-selection.png</file> 21 - <file>images/plasma.png</file> 22 - + <file>packagechooserq@unfree.qml</file> 23 - </qresource> 24 - </RCC> 25 - diff --git a/src/modules/packagechooserq/packagechooserq@unfree.qml b/src/modules/packagechooserq/packagechooserq@unfree.qml 26 - new file mode 100644 27 - index 000000000..5e36d77d9 28 - --- /dev/null 29 - +++ b/src/modules/packagechooserq/packagechooserq@unfree.qml 30 - @@ -0,0 +1,75 @@ 31 - +/* === This file is part of Calamares - <https://calamares.io> === 32 - + * 33 - + * SPDX-FileCopyrightText: 2021 Anke Boersma <demm@kaosx.us> 34 - + * SPDX-License-Identifier: GPL-3.0-or-later 35 - + * 36 - + * Calamares is Free Software: see the License-Identifier above. 37 - + * 38 - + */ 39 - + 40 - +import io.calamares.core 1.0 41 - +import io.calamares.ui 1.0 42 - + 43 - +import QtQuick 2.15 44 - +import QtQuick.Controls 2.15 45 - +import QtQuick.Layouts 1.3 46 - + 47 - +Item { 48 - + 49 - + SystemPalette { 50 - + id: palette 51 - + colorGroup: SystemPalette.Active 52 - + } 53 - + 54 - + width: parent.width 55 - + height: parent.height 56 - + 57 - + Rectangle { 58 - + anchors.fill: parent 59 - + color: palette.window 60 - + 61 - + ButtonGroup { 62 - + id: switchGroup 63 - + } 64 - + 65 - + Column { 66 - + id: column 67 - + anchors.centerIn: parent 68 - + spacing: 5 69 - + 70 - + Rectangle { 71 - + width: 700 72 - + height: 250 73 - + color: palette.base 74 - + radius: 10 75 - + border.width: 0 76 - + Text { 77 - + color: palette.text 78 - + width: 600 79 - + height: 200 80 - + anchors.centerIn: parent 81 - + text: qsTr("NixOS is fully open source, but it also provides optional software packages that do not respect users' freedom to run, copy, distribute, study, change and improve the software, and are commonly not open source. By default such \"unfree\" packages are not allowed, but you can enable it here. If you check this box, you agree that unfree software may be installed which might have additional End User License Agreements (EULAs) that you need to agree to. If not enabled, some hardware (notably Nvidia GPUs and some WiFi chips) might not work or not work optimally.<br/>") 82 - + font.pointSize: 12 83 - + wrapMode: Text.WordWrap 84 - + } 85 - + 86 - + CheckBox { 87 - + id: element2 88 - + anchors.horizontalCenter: parent.horizontalCenter 89 - + y: 190 90 - + text: qsTr("Allow unfree software") 91 - + checked: false 92 - + 93 - + onCheckedChanged: { 94 - + if ( checked ) { 95 - + config.packageChoice = "unfree" 96 - + } else { 97 - + config.packageChoice = "free" 98 - + } 99 - + } 100 - + } 101 - + } 102 - + } 103 - + } 104 - + 105 - +} 106 - diff --git a/src/modules/packagechooserq/unfree.conf b/src/modules/packagechooserq/unfree.conf 107 - new file mode 100644 108 - index 000000000..da79a8eac 109 - --- /dev/null 110 - +++ b/src/modules/packagechooserq/unfree.conf 111 - @@ -0,0 +1,11 @@ 112 - +# SPDX-FileCopyrightText: no 113 - +# SPDX-License-Identifier: CC0-1.0 114 - +# 115 - +--- 116 - +qmlLabel: 117 - + label: "Unfree Software" 118 - +method: legacy 119 - +mode: required 120 - +labels: 121 - + step: "Unfree Software" 122 - +packageChoice: free
-100
pkgs/tools/misc/calamares/0005-Modifies-finished-module-to-add-some-NixOS-resources.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Victor Fuentes <vmfuentes64@gmail.com> 3 - Date: Thu, 1 Aug 2024 16:01:53 -0400 4 - Subject: [PATCH] Modifies finished module to add some NixOS resources. 5 - 6 - Modifies packagechooser module to change the UI. 7 - --- 8 - src/modules/finished/FinishedPage.cpp | 12 +++++--- 9 - .../packagechooser/PackageChooserPage.cpp | 1 + 10 - src/modules/packagechooser/page_package.ui | 28 +++++++++---------- 11 - 3 files changed, 23 insertions(+), 18 deletions(-) 12 - 13 - diff --git a/src/modules/finished/FinishedPage.cpp b/src/modules/finished/FinishedPage.cpp 14 - index 51be52678..307607232 100644 15 - --- a/src/modules/finished/FinishedPage.cpp 16 - +++ b/src/modules/finished/FinishedPage.cpp 17 - @@ -74,8 +74,10 @@ FinishedPage::retranslate() 18 - { 19 - ui->mainText->setText( tr( "<h1>All done.</h1><br/>" 20 - "%1 has been set up on your computer.<br/>" 21 - - "You may now start using your new system.", 22 - - "@info" ) 23 - + "You may now start using your new system.<br/>" 24 - + "You can change every setting later except the bootloader.<br/>" 25 - + "Check the <a href=\"https://nixos.org/manual/nixos/stable/\">manual</a> for instructions on how to install software, upgrade the system or enable services.<br/>" 26 - + "You can find ways to get in touch with the <a href=\"https://nixos.org/community/\">community on the website!</a>", "@info" ) 27 - .arg( branding->versionedName() ) ); 28 - ui->restartCheckBox->setToolTip( tr( "<html><head/><body>" 29 - "<p>When this box is checked, your system will " 30 - @@ -89,8 +91,10 @@ FinishedPage::retranslate() 31 - ui->mainText->setText( tr( "<h1>All done.</h1><br/>" 32 - "%1 has been installed on your computer.<br/>" 33 - "You may now restart into your new system, or continue " 34 - - "using the %2 Live environment.", 35 - - "@info" ) 36 - + "using the %2 Live environment.<br/>" 37 - + "You can change every setting later except the bootloader.<br/>" 38 - + "Check the <a href=\"https://nixos.org/manual/nixos/stable/\">manual</a> for instructions on how to install software, upgrade the system or enable services.<br/>" 39 - + "You can find ways to get in touch with the <a href=\"https://nixos.org/community/\">community on the website!</a>", "@info" ) 40 - .arg( branding->versionedName(), branding->productName() ) ); 41 - ui->restartCheckBox->setToolTip( tr( "<html><head/><body>" 42 - "<p>When this box is checked, your system will " 43 - diff --git a/src/modules/packagechooser/PackageChooserPage.cpp b/src/modules/packagechooser/PackageChooserPage.cpp 44 - index 44a570d2f..4dc931bf3 100644 45 - --- a/src/modules/packagechooser/PackageChooserPage.cpp 46 - +++ b/src/modules/packagechooser/PackageChooserPage.cpp 47 - @@ -52,6 +52,7 @@ PackageChooserPage::currentChanged( const QModelIndex& index ) 48 - if ( !index.isValid() || !ui->products->selectionModel()->hasSelection() ) 49 - { 50 - ui->productName->setText( m_introduction.name.get() ); 51 - + ui->productName->setStyleSheet("font-weight: bold"); 52 - ui->productScreenshot->setPixmap( m_introduction.screenshot ); 53 - ui->productDescription->setText( m_introduction.description.get() ); 54 - } 55 - diff --git a/src/modules/packagechooser/page_package.ui b/src/modules/packagechooser/page_package.ui 56 - index 2ab5b7f13..bed462069 100644 57 - --- a/src/modules/packagechooser/page_package.ui 58 - +++ b/src/modules/packagechooser/page_package.ui 59 - @@ -37,20 +37,7 @@ SPDX-License-Identifier: GPL-3.0-or-later 60 - </widget> 61 - </item> 62 - <item> 63 - - <layout class="QVBoxLayout" name="verticalLayout" stretch="1,30,1"> 64 - - <item> 65 - - <widget class="QLabel" name="productName"> 66 - - <property name="sizePolicy"> 67 - - <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> 68 - - <horstretch>0</horstretch> 69 - - <verstretch>0</verstretch> 70 - - </sizepolicy> 71 - - </property> 72 - - <property name="text"> 73 - - <string>Product Name</string> 74 - - </property> 75 - - </widget> 76 - - </item> 77 - + <layout class="QVBoxLayout" name="verticalLayout" stretch="30,1,1"> 78 - <item> 79 - <widget class="FixedAspectRatioLabel" name="productScreenshot"> 80 - <property name="sizePolicy"> 81 - @@ -67,6 +54,19 @@ SPDX-License-Identifier: GPL-3.0-or-later 82 - </property> 83 - </widget> 84 - </item> 85 - + <item> 86 - + <widget class="QLabel" name="productName"> 87 - + <property name="sizePolicy"> 88 - + <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> 89 - + <horstretch>0</horstretch> 90 - + <verstretch>0</verstretch> 91 - + </sizepolicy> 92 - + </property> 93 - + <property name="text"> 94 - + <string>Product Name</string> 95 - + </property> 96 - + </widget> 97 - + </item> 98 - <item> 99 - <widget class="QLabel" name="productDescription"> 100 - <property name="sizePolicy">
pkgs/tools/misc/calamares/0006-Remove-options-for-unsupported-partition-types.patch pkgs/by-name/ca/calamares/dont-allow-manual-luks.patch
-35
pkgs/tools/misc/calamares/0007-Fix-setting-the-kayboard-layout-on-GNOME-wayland.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Victor Fuentes <vmfuentes64@gmail.com> 3 - Date: Thu, 31 Oct 2024 10:34:25 -0700 4 - Subject: [PATCH] Fix setting the kayboard layout on GNOME wayland. 5 - 6 - By default the module uses the setxkbmap, which will not change the 7 - keyboard 8 - --- 9 - src/modules/keyboard/Config.cpp | 6 ++++++ 10 - 1 file changed, 6 insertions(+) 11 - 12 - diff --git a/src/modules/keyboard/Config.cpp b/src/modules/keyboard/Config.cpp 13 - index 54ee7649c..60fe2d7d0 100644 14 - --- a/src/modules/keyboard/Config.cpp 15 - +++ b/src/modules/keyboard/Config.cpp 16 - @@ -306,6 +306,10 @@ Config::applyXkb() 17 - m_additionalLayoutInfo.groupSwitcher ) ); 18 - QProcess::execute( "setxkbmap", basicArguments ); 19 - 20 - + QString xkbmap = QString( "[('xkb','%1\%2'),('xkb','%3\%4')]").arg( 21 - + m_selectedLayout, ((!m_selectedVariant.isEmpty()) ? "+" + m_selectedVariant : ""), 22 - + m_additionalLayoutInfo.additionalLayout, ((!m_additionalLayoutInfo.additionalVariant.isEmpty()) ? "+" + m_additionalLayoutInfo.additionalVariant : "")); 23 - + QProcess::execute( "sh", { "-c", "if command -v gsettings; then gsettings set org.gnome.desktop.input-sources sources \"$0\"; fi", xkbmap }); 24 - cDebug() << "xkbmap selection changed to: " << m_selectedLayout << '-' << m_selectedVariant << "(added " 25 - << m_additionalLayoutInfo.additionalLayout << "-" << m_additionalLayoutInfo.additionalVariant 26 - << " since current layout is not ASCII-capable)"; 27 - @@ -314,6 +318,8 @@ Config::applyXkb() 28 - { 29 - basicArguments.append( xkbmap_layout_args( m_selectedLayout, m_selectedVariant ) ); 30 - QProcess::execute( "setxkbmap", basicArguments ); 31 - + QString xkbmap = QString( "[('xkb','%1\%2')]").arg( m_selectedLayout, ((!m_selectedVariant.isEmpty()) ? "+" + m_selectedVariant : "") ); 32 - + QProcess::execute( "sh", { "-c", "if command -v gsettings; then gsettings set org.gnome.desktop.input-sources sources \"$0\"; fi", xkbmap }); 33 - cDebug() << "xkbmap selection changed to: " << m_selectedLayout << '-' << m_selectedVariant; 34 - } 35 - m_applyTimer.stop();
-22
pkgs/tools/misc/calamares/0008-Change-default-location-where-calamares-searches-for.patch
··· 1 - From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 2 - From: Victor Fuentes <vmfuentes64@gmail.com> 3 - Date: Thu, 1 Aug 2024 16:03:53 -0400 4 - Subject: [PATCH] Change default location where calamares searches for locales 5 - 6 - --- 7 - src/modules/locale/Config.cpp | 2 +- 8 - 1 file changed, 1 insertion(+), 1 deletion(-) 9 - 10 - diff --git a/src/modules/locale/Config.cpp b/src/modules/locale/Config.cpp 11 - index 8fa17a768..79b5419b6 100644 12 - --- a/src/modules/locale/Config.cpp 13 - +++ b/src/modules/locale/Config.cpp 14 - @@ -48,7 +48,7 @@ loadLocales( const QString& localeGenPath ) 15 - // supported locales. We first try that one, and if it doesn't exist, we fall back 16 - // to parsing the lines from locale.gen 17 - localeGenLines.clear(); 18 - - QFile supported( "/usr/share/i18n/SUPPORTED" ); 19 - + QFile supported( "/run/current-system/sw/share/i18n/SUPPORTED" ); 20 - QByteArray ba; 21 - 22 - if ( supported.exists() && supported.open( QIODevice::ReadOnly | QIODevice::Text ) )
-144
pkgs/tools/misc/calamares/default.nix
··· 1 - { 2 - lib, 3 - fetchurl, 4 - boost, 5 - cmake, 6 - extra-cmake-modules, 7 - kparts, 8 - kpmcore, 9 - kirigami2, 10 - kservice, 11 - libatasmart, 12 - libxcb, 13 - yaml-cpp, 14 - libpwquality, 15 - parted, 16 - polkit-qt, 17 - python3, 18 - qtbase, 19 - qtquickcontrols, 20 - qtsvg, 21 - qttools, 22 - qtwebengine, 23 - util-linux, 24 - tzdata, 25 - ckbcomp, 26 - xkeyboard_config, 27 - mkDerivation, 28 - nixos-extensions ? false, 29 - # passthru.tests 30 - calamares-nixos, 31 - }: 32 - 33 - mkDerivation rec { 34 - pname = "calamares"; 35 - version = "3.3.13"; 36 - 37 - # release including submodule 38 - src = fetchurl { 39 - url = "https://github.com/calamares/calamares/releases/download/v${version}/calamares-${version}.tar.gz"; 40 - sha256 = "sha256-5Jz32JTgK6BImM0HcMtXi04k39CAirdmC/lbskVmSNQ="; 41 - }; 42 - 43 - # On major changes, or when otherwise required, you *must* : 44 - # 1. reformat the patches, 45 - # 2. `git am path/to/00*.patch` them into a calamares worktree, 46 - # 3. rebase to the more recent calamares version, 47 - # 4. and export the patches again via 48 - # `git -c format.signoff=false format-patch v${version} --no-numbered --zero-commit --no-signature`. 49 - patches = lib.optionals nixos-extensions [ 50 - ./0001-Modifies-the-users-module-to-only-set-passwords-of-u.patch 51 - ./0002-Makes-calamares-search-run-current-system-sw-share-c.patch 52 - ./0003-Uses-pkexec-within-modules-in-order-to-run-calamares.patch 53 - ./0004-Adds-unfree-qml-to-packagechooserq.patch 54 - ./0005-Modifies-finished-module-to-add-some-NixOS-resources.patch 55 - ./0006-Remove-options-for-unsupported-partition-types.patch 56 - ./0007-Fix-setting-the-kayboard-layout-on-GNOME-wayland.patch 57 - ./0008-Change-default-location-where-calamares-searches-for.patch 58 - ]; 59 - 60 - nativeBuildInputs = [ 61 - cmake 62 - extra-cmake-modules 63 - ]; 64 - buildInputs = [ 65 - boost 66 - kparts.dev 67 - kpmcore.out 68 - kservice.dev 69 - kirigami2 70 - libatasmart 71 - libxcb 72 - yaml-cpp 73 - libpwquality 74 - parted 75 - polkit-qt 76 - python3 77 - qtbase 78 - qtquickcontrols 79 - qtsvg 80 - qttools 81 - qtwebengine.dev 82 - util-linux 83 - ]; 84 - 85 - cmakeFlags = [ 86 - "-DPYTHON_LIBRARY=${python3}/lib/lib${python3.libPrefix}.so" 87 - "-DPYTHON_INCLUDE_DIR=${python3}/include/${python3.libPrefix}" 88 - "-DCMAKE_VERBOSE_MAKEFILE=True" 89 - "-DWITH_PYTHONQT:BOOL=ON" 90 - ]; 91 - 92 - POLKITQT-1_POLICY_FILES_INSTALL_DIR = "$(out)/share/polkit-1/actions"; 93 - 94 - postPatch = '' 95 - # Run calamares without root. Other patches make it functional as a normal user 96 - sed -e "s,pkexec calamares,calamares -D6," \ 97 - -i calamares.desktop 98 - 99 - sed -e "s,X-AppStream-Ignore=true,&\nStartupWMClass=calamares," \ 100 - -i calamares.desktop 101 - 102 - # Fix desktop reference with wayland 103 - mv calamares.desktop io.calamares.calamares.desktop 104 - 105 - sed -e "s,calamares.desktop,io.calamares.calamares.desktop," \ 106 - -i CMakeLists.txt 107 - 108 - sed -e "s,/usr/bin/calamares,$out/bin/calamares," \ 109 - -i com.github.calamares.calamares.policy 110 - 111 - sed -e 's,/usr/share/zoneinfo,${tzdata}/share/zoneinfo,' \ 112 - -i src/modules/locale/SetTimezoneJob.cpp \ 113 - -i src/libcalamares/locale/TimeZone.cpp 114 - 115 - sed -e 's,/usr/share/X11/xkb/rules/base.lst,${xkeyboard_config}/share/X11/xkb/rules/base.lst,' \ 116 - -i src/modules/keyboard/keyboardwidget/keyboardglobal.cpp 117 - 118 - sed -e 's,"ckbcomp","${ckbcomp}/bin/ckbcomp",' \ 119 - -i src/modules/keyboard/keyboardwidget/keyboardpreview.cpp 120 - 121 - sed "s,\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR},''${out}/share/polkit-1/actions," \ 122 - -i CMakeLists.txt 123 - ''; 124 - 125 - passthru.tests = { 126 - inherit calamares-nixos; 127 - }; 128 - 129 - meta = with lib; { 130 - description = "Distribution-independent installer framework"; 131 - homepage = "https://calamares.io/"; 132 - license = with licenses; [ 133 - gpl3Plus 134 - bsd2 135 - cc0 136 - ]; 137 - maintainers = with maintainers; [ 138 - manveru 139 - vlinkz 140 - ]; 141 - platforms = platforms.linux; 142 - mainProgram = "calamares"; 143 - }; 144 - }
-7
pkgs/top-level/all-packages.nix
··· 1904 1904 ''; 1905 1905 }); 1906 1906 1907 - calamares = libsForQt5.callPackage ../tools/misc/calamares { 1908 - boost = boost.override { 1909 - enablePython = true; 1910 - python = python3; 1911 - }; 1912 - }; 1913 - calamares-nixos = lowPrio (calamares.override { nixos-extensions = true; }); 1914 1907 candle = libsForQt5.callPackage ../applications/misc/candle { }; 1915 1908 1916 1909 capstone = callPackage ../development/libraries/capstone { };