Skip to content

Commit

Permalink
cleaning up config file
Browse files Browse the repository at this point in the history
  • Loading branch information
andyrusiecki committed Jan 21, 2024
1 parent 4c66adb commit f795b53
Show file tree
Hide file tree
Showing 10 changed files with 152 additions and 203 deletions.
49 changes: 34 additions & 15 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,33 @@ ARG FEDORA_VERSION="39"

FROM quay.io/fedora-ostree-desktops/silverblue:${FEDORA_VERSION} as silverblue-base

RUN mkdir /tmp/build
COPY scripts/ /tmp/build/
COPY etc/ /etc/

RUN /tmp/build/remove-packages.sh base && \
/tmp/build/add-packages.sh base && \
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
systemctl enable rpm-ostreed-automatic.timer && \
COPY scripts/install-fonts.sh /tmp/
RUN mkdir -p /usr/share/andyrusiecki
COPY scripts/post-install.sh /usr/share/andyrusiecki

RUN rpm-ostree install \
https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${FEDORA_VERSION}.noarch.rpm \
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${FEDORA_VERSION}.noarch.rpm

RUN rpm-ostree override remove \
firefox \
firefox-langpacks

RUN rpm-ostree install \
adw-gtk3-theme \
distrobox \
fish \
gnome-tweaks \
starship \
steam-devices \
tailscale

RUN systemctl enable rpm-ostreed-automatic.timer && \
systemctl enable tailscaled

RUN /tmp/build/install-google-fonts.sh base && \
/tmp/build/install-nerd-fonts.sh base
RUN /tmp/install-google-fonts.sh base && \
/tmp/install-nerd-fonts.sh base

RUN rpm-ostree cleanup -m && \
rm -rf /tmp/* && \
Expand All @@ -22,17 +37,21 @@ ostree container commit

FROM silverblue-base as silverblue-framework

RUN mkdir /tmp/build
COPY scripts/ /tmp/build/
COPY framework/etc/ /etc/

RUN /tmp/build/remove-packages.sh framework && \
/tmp/build/add-packages.sh framework && \
systemctl enable fprintd && \
RUN rpm-ostree override remove \
power-profiles-daemon

RUN rpm-ostree install \
fprintd \
tlp \
tlp-rdw \
powertop

RUN systemctl enable fprintd && \
systemctl enable tlp

RUN rpm-ostree cleanup -m && \
rm -rf /tmp/* && \
ostree container commit

FROM registry.fedoraproject.org/fedora-toolbox:${FEDORA_VERSION} as dev-toolbox
Expand Down
6 changes: 0 additions & 6 deletions scripts/add-packages.sh

This file was deleted.

37 changes: 0 additions & 37 deletions scripts/base-gnome-settings.ini

This file was deleted.

87 changes: 0 additions & 87 deletions scripts/config.json

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/framework-gnome-settings.ini

This file was deleted.

36 changes: 36 additions & 0 deletions scripts/install-fonts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh

google_fonts=()
nerd_fonts=(
FireCode
FireMono
JetBrainsMono
Meslo
Noto
RobotoMono
SourceCodePro
Ubuntu
UbuntuMono
)


mkdir -p /usr/share/fonts/google
mkdir -p /usr/share/fonts/nerd

google_tmp=$(mktemp -d)
for font in ${google_fonts[@]}
do
curl -L https://fonts.google.com/download?family=${font// /%20}.zip --output $google_tmp/$font.zip
unzip $google_tmp/$font.zip -d /usr/share/fonts/google/$font/
done

rm -rf $google_tmp

nerd_tmp=$(mktemp -d)
for font in ${nerd_fonts[@]}
do
curl -L https://github.com/ryanoasis/nerd-fonts/releases/latest/download/$font.zip --output $nerd_tmp/$font.zip
unzip $nerd_tmp/$font.zip -d /usr/share/fonts/nerd/$font/
done

rm -rf $nerd_tmp
17 changes: 0 additions & 17 deletions scripts/install-google-fonts.sh

This file was deleted.

17 changes: 0 additions & 17 deletions scripts/install-nerd-fonts.sh

This file was deleted.

Loading

0 comments on commit f795b53

Please sign in to comment.