1
0
Fork 0

Compare commits

..

No commits in common. "1580586883bde145d9b7c8ab761f1af06c7e2a7a" and "b72d698071c9a1d77bd6de97f3bb0154598f684d" have entirely different histories.

7 changed files with 23 additions and 58 deletions

View file

@ -1,32 +1,15 @@
on: [push]
jobs:
# Source: https://github.com/isabelroses/dotfiles/tree/main/.github/workflows
update-lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
with:
logger: pretty
# - name: Update Lockfile
# uses: DeterminateSystems/update-flake-lock@main
# id: update
# with:
# pr-title: "chore(deps): flake inputs"
# commit-msg: "chore(deps): flake inputs"
# token: ${{ secrets.GITHUB_TOKEN }}
# build:
# format:
# runs-on: nix
# steps:
# - run: nix-env -iA nixpkgs.nodejs_20
# - uses: actions/checkout@v4
# - run: nix --experimental-features 'nix-command flakes' flake update
# - run: nixos-rebuild --experimental-features 'nix-command flakes' build --flake .#Haven
# - run: nixos-rebuild --experimental-features 'nix-command flakes' build --flake .#Khanda
# - run: nix --experimental-features 'nix-command flakes' fmt
build:
runs-on: nix
steps:
- run: nix-env -iA nixpkgs.nodejs_20
- uses: actions/checkout@v4
- run: nix --experimental-features 'nix-command flakes' flake update
- run: nixos-rebuild --experimental-features 'nix-command flakes' build --flake .#Haven
- run: nixos-rebuild --experimental-features 'nix-command flakes' build --flake .#Khanda

4
.gitmodules vendored
View file

@ -1,4 +0,0 @@
[submodule "nix-secrets"]
path = nix-secrets
url = ssh://code.8bitbuddhism.com/aires/nix-secrets.git
branch = main

View file

@ -256,11 +256,11 @@
"rev": "4db84b723bb2eb21a2c58de565ed89ddb34e6166",
"revCount": 41,
"type": "git",
"url": "file:///home/aires/Development/nix-configuration/nix-secrets"
"url": "ssh://forgejo@code.8bitbuddhism.com/aires/nix-secrets"
},
"original": {
"type": "git",
"url": "file:///home/aires/Development/nix-configuration/nix-secrets"
"url": "ssh://forgejo@code.8bitbuddhism.com/aires/nix-secrets"
}
},
"nixos-hardware": {

View file

@ -36,7 +36,7 @@
# "Secrets management"
nix-secrets = {
url = "git+file:///home/aires/Development/nix-configuration/nix-secrets";
url = "git+ssh://forgejo@code.8bitbuddhism.com/aires/nix-secrets";
flake = false;
};

View file

@ -123,7 +123,7 @@ in
script = ''
set -eu
cd ${config.users.users.aires.home}/Development/nix-configuration
git pull --recurse-submodules
git pull
nix flake update
git add flake.lock
git commit -m "Update flake.lock"

View file

@ -26,28 +26,15 @@
};
};
# Configure automatic updates. Replaces system.autoUpgrade.
systemd.services."nixos-update" = {
serviceConfig = {
Type = "oneshot";
User = "root";
};
script = ''
set -eu
cd ${config.users.users.aires.home}/Development/nix-configuration
sudo -u aires git pull --recurse-submodules
nh os switch
'';
};
systemd.timers."nixos-update-timer" = {
wants = [ "network-online.target" ];
after = [ "network-online.target" ];
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "daily";
Persistent = "true";
Unit = "nixos-update.service";
};
# Configure automatic updates
system.autoUpgrade = {
enable = true;
flake = "git+https://${config.secrets.services.forgejo.url}/aires/nix-configuration";
dates = "daily";
randomizedDelaySec = "30m";
allowReboot = false;
operation = "switch";
persistent = true;
};
services = {

@ -1 +0,0 @@
Subproject commit 4db84b723bb2eb21a2c58de565ed89ddb34e6166