Compare commits
No commits in common. "1580586883bde145d9b7c8ab761f1af06c7e2a7a" and "b72d698071c9a1d77bd6de97f3bb0154598f684d" have entirely different histories.
1580586883
...
b72d698071
|
@ -1,32 +1,15 @@
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Source: https://github.com/isabelroses/dotfiles/tree/main/.github/workflows
|
# format:
|
||||||
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:
|
|
||||||
# runs-on: nix
|
# runs-on: nix
|
||||||
# steps:
|
# steps:
|
||||||
# - run: nix-env -iA nixpkgs.nodejs_20
|
|
||||||
# - uses: actions/checkout@v4
|
# - uses: actions/checkout@v4
|
||||||
# - run: nix --experimental-features 'nix-command flakes' flake update
|
# - run: nix --experimental-features 'nix-command flakes' fmt
|
||||||
# - run: nixos-rebuild --experimental-features 'nix-command flakes' build --flake .#Haven
|
build:
|
||||||
# - run: nixos-rebuild --experimental-features 'nix-command flakes' build --flake .#Khanda
|
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
4
.gitmodules
vendored
|
@ -1,4 +0,0 @@
|
||||||
[submodule "nix-secrets"]
|
|
||||||
path = nix-secrets
|
|
||||||
url = ssh://code.8bitbuddhism.com/aires/nix-secrets.git
|
|
||||||
branch = main
|
|
|
@ -256,11 +256,11 @@
|
||||||
"rev": "4db84b723bb2eb21a2c58de565ed89ddb34e6166",
|
"rev": "4db84b723bb2eb21a2c58de565ed89ddb34e6166",
|
||||||
"revCount": 41,
|
"revCount": 41,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///home/aires/Development/nix-configuration/nix-secrets"
|
"url": "ssh://forgejo@code.8bitbuddhism.com/aires/nix-secrets"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///home/aires/Development/nix-configuration/nix-secrets"
|
"url": "ssh://forgejo@code.8bitbuddhism.com/aires/nix-secrets"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixos-hardware": {
|
"nixos-hardware": {
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
# "Secrets management"
|
# "Secrets management"
|
||||||
nix-secrets = {
|
nix-secrets = {
|
||||||
url = "git+file:///home/aires/Development/nix-configuration/nix-secrets";
|
url = "git+ssh://forgejo@code.8bitbuddhism.com/aires/nix-secrets";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ in
|
||||||
script = ''
|
script = ''
|
||||||
set -eu
|
set -eu
|
||||||
cd ${config.users.users.aires.home}/Development/nix-configuration
|
cd ${config.users.users.aires.home}/Development/nix-configuration
|
||||||
git pull --recurse-submodules
|
git pull
|
||||||
nix flake update
|
nix flake update
|
||||||
git add flake.lock
|
git add flake.lock
|
||||||
git commit -m "Update flake.lock"
|
git commit -m "Update flake.lock"
|
||||||
|
|
|
@ -26,28 +26,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Configure automatic updates. Replaces system.autoUpgrade.
|
# Configure automatic updates
|
||||||
systemd.services."nixos-update" = {
|
system.autoUpgrade = {
|
||||||
serviceConfig = {
|
enable = true;
|
||||||
Type = "oneshot";
|
flake = "git+https://${config.secrets.services.forgejo.url}/aires/nix-configuration";
|
||||||
User = "root";
|
dates = "daily";
|
||||||
};
|
randomizedDelaySec = "30m";
|
||||||
script = ''
|
allowReboot = false;
|
||||||
set -eu
|
operation = "switch";
|
||||||
cd ${config.users.users.aires.home}/Development/nix-configuration
|
persistent = true;
|
||||||
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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 4db84b723bb2eb21a2c58de565ed89ddb34e6166
|
|
Loading…
Reference in a new issue