diff --git a/packages/installer/awesome.nix b/packages/installer/awesome.nix index fcbc724b..80bb6cb6 100644 --- a/packages/installer/awesome.nix +++ b/packages/installer/awesome.nix @@ -7,57 +7,18 @@ rc_lua = pkgs.runCommandNoCC "awesomerc.lua" {} '' substitute ${./awesomerc.lua} $out \ --subst-var-by FILE_PATH_WALLPAPER ${./nix-glow-black.png} \ - --subst-var-by TERMINAL_ICON_SVG ${terminalIcon} \ - --subst-var-by GLOBE_ICON_SVG ${globeIcon} \ - --subst-var-by PARTED_ICON_SVG ${partedIcon} \ - --subst-var-by NIX_FLAKE_SVG ${./nix-flake.svg} - ''; - - fillColor = "#d3d3d3"; - - terminalIcon = pkgs.writeText "terminal.svg" '' - - - - ''; - - globeIcon = pkgs.writeText "globe.svg" '' - - - - ''; - - partedIcon = pkgs.writeText "parted.svg" '' - - - ]] .. - - ''; - - powerOffIcon = pkgs.writeText "poweroff.svg" '' - - - - ''; - - rebootIcon = pkgs.writeText "reboot.svg" '' - - - - ''; - - manualIcon = pkgs.writeText "manual.svg" '' - - - + --subst-var-by TERMINAL_ICON_SVG ${./icons/terminal.svg} \ + --subst-var-by GLOBE_ICON_SVG ${./icons/globe.svg} \ + --subst-var-by PARTED_ICON_SVG ${./icons/parted.svg} \ + --subst-var-by NIX_FLAKE_SVG ${./icons/nix-flake.svg} ''; menu_entries = pkgs.writeText "menu_entries.lua" '' return { - { "NixOS Manual", "nixos-help", "${manualIcon}" }, - { "GParted", "${lib.getExe pkgs.gparted}", "${partedIcon}" }, - { "Reboot", "reboot", "${rebootIcon}" }, - { "Power Off", "poweroff", "${powerOffIcon}" }, + { "NixOS Manual", "nixos-help", "${./icons/manual.svg}" }, + { "GParted", "${lib.getExe pkgs.gparted}", "${./icons/parted.svg}" }, + { "Reboot", "reboot", "${./icons/reboot.svg}" }, + { "Power Off", "poweroff", "${./icons/power-off.svg}" }, } ''; diff --git a/packages/installer/icons/globe.svg b/packages/installer/icons/globe.svg new file mode 100644 index 00000000..ae19fa94 --- /dev/null +++ b/packages/installer/icons/globe.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/packages/installer/icons/manual.svg b/packages/installer/icons/manual.svg new file mode 100644 index 00000000..7622fa82 --- /dev/null +++ b/packages/installer/icons/manual.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/packages/installer/nix-flake.svg b/packages/installer/icons/nix-flake.svg similarity index 100% rename from packages/installer/nix-flake.svg rename to packages/installer/icons/nix-flake.svg diff --git a/packages/installer/icons/parted.svg b/packages/installer/icons/parted.svg new file mode 100644 index 00000000..d8158539 --- /dev/null +++ b/packages/installer/icons/parted.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/packages/installer/icons/power-off.svg b/packages/installer/icons/power-off.svg new file mode 100644 index 00000000..cecd29c1 --- /dev/null +++ b/packages/installer/icons/power-off.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/packages/installer/icons/reboot.svg b/packages/installer/icons/reboot.svg new file mode 100644 index 00000000..e2784f0f --- /dev/null +++ b/packages/installer/icons/reboot.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/packages/installer/icons/terminal.svg b/packages/installer/icons/terminal.svg new file mode 100644 index 00000000..78d56a79 --- /dev/null +++ b/packages/installer/icons/terminal.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file