mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-24 20:10:43 -06:00
Compare commits
10 commits
e7a74ed9fd
...
1c5e3bf419
Author | SHA1 | Date | |
---|---|---|---|
1c5e3bf419 | |||
6706c562aa | |||
82fa56ebcf | |||
daa7ea3314 | |||
cfa3b363a0 | |||
5156e5a61f | |||
9952a05d7d | |||
afd15774c8 | |||
f96226a9c3 | |||
b7c5798f84 |
4 changed files with 38 additions and 14 deletions
8
.github/actions/clean-disk/action.yml
vendored
8
.github/actions/clean-disk/action.yml
vendored
|
@ -34,17 +34,15 @@ runs:
|
|||
|
||||
echo "Removing unwanted software... "
|
||||
|
||||
sudo rm -rf /opt &
|
||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" &
|
||||
|
||||
if [[ "${{ inputs.purge-packages }}" == 'true' ]]; then
|
||||
sudo apt-get purge \
|
||||
--allow-remove-essential \
|
||||
-qq \
|
||||
$(non_manifest_packages) > /dev/null &
|
||||
wait
|
||||
$(non_manifest_packages) # > /dev/null
|
||||
fi
|
||||
|
||||
sudo rm -rf /opt &
|
||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" &
|
||||
|
||||
sudo rm -rf /var/lib/docker &
|
||||
sudo rm -rf /usr/{local,share} &
|
||||
|
|
37
.github/workflows/nightly.yml
vendored
37
.github/workflows/nightly.yml
vendored
|
@ -64,20 +64,13 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- run: git checkout -B flake-lock
|
||||
|
||||
# - name: Setup Git Bot
|
||||
# run: |
|
||||
# git --version
|
||||
# git config user.name 'github-actions[bot]'
|
||||
# git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
|
||||
- uses: DeterminateSystems/nix-installer-action@v12
|
||||
with:
|
||||
extra-conf: |
|
||||
accept-flake-config = true
|
||||
|
||||
# - uses: DeterminateSystems/magic-nix-cache-action@v7
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
||||
|
||||
- uses: ./.github/actions/clean-disk
|
||||
with:
|
||||
|
@ -93,4 +86,30 @@ jobs:
|
|||
--verbose \
|
||||
--debug \
|
||||
-- \
|
||||
--print-build-logs
|
||||
--print-build-logs \
|
||||
--out-link current
|
||||
|
||||
- run: git checkout flake-lock
|
||||
|
||||
- name: Build Updated
|
||||
run: |
|
||||
system_attr=$(nix run . -- output --host "othalan" --flake .)
|
||||
nix run . \
|
||||
-- \
|
||||
build $system_attr \
|
||||
--flake . \
|
||||
--verbose \
|
||||
--debug \
|
||||
-- \
|
||||
--print-build-logs \
|
||||
--out-link updated
|
||||
|
||||
- run: nix run "nixpkgs#nvd" diff ./current ./updated
|
||||
- run: df -h
|
||||
|
||||
# is this necessary?
|
||||
- run: cat $GITHUB_STEP_SUMMARY > summary.md
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: summary
|
||||
path: summary.md
|
||||
|
|
|
@ -40,6 +40,12 @@
|
|||
programs.nix-index.enableBashIntegration = false;
|
||||
programs.nix-index.enableFishIntegration = false;
|
||||
|
||||
system.activationScripts.diff = ''
|
||||
if [[ -e /run/current-system ]]; then
|
||||
${pkgs.nix}/bin/nix store diff-closures /run/current-system "$systemConfig"
|
||||
fi
|
||||
'';
|
||||
|
||||
nix.settings = {
|
||||
trusted-users = [ "@wheel" ];
|
||||
accept-flake-config = true;
|
||||
|
|
1
todo.md
1
todo.md
|
@ -5,6 +5,7 @@
|
|||
## software
|
||||
|
||||
- [ ] lid closed does not engage hyprlock?
|
||||
> check the logind conf in Nixos
|
||||
- [ ] include langservers for enabled languages?
|
||||
|
||||
## hardware
|
||||
|
|
Loading…
Reference in a new issue