Compare commits

...

3 commits

Author SHA1 Message Date
Evie Litherland-Smith 385d77975a Disable autoUpgrade for regular machines, keep for server only 2024-05-25 07:03:36 +01:00
Evie Litherland-Smith f35fe50280 Add switch directive to Makefile 2024-05-25 07:03:20 +01:00
Evie Litherland-Smith 19abc43402 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/44072e24566c5bcc0b7aa9178a0104f4cfffab19' (2024-05-12)
  → 'github:nixos/nixpkgs/46397778ef1f73414b03ed553a3368f0e7e33c2f' (2024-05-22)
2024-05-25 07:00:17 +01:00
4 changed files with 11 additions and 13 deletions

View file

@ -1,6 +1,9 @@
.PHONY: default build
.PHONY: default build switch
default: build
build:
nixos-rebuild build --flake . --show-trace
switch:
sudo nixos-rebuild switch --flake . --show-trace

View file

@ -1,4 +1,4 @@
{...}: {
{config, ...}: {
imports = [
../services/caddy.nix
../services/forgejo.nix
@ -16,6 +16,8 @@
};
users.mutableUsers = false;
system.autoUpgrade = {
enable = true;
flake = "git+${config.nix.registry.my-nixos.to.url}";
dates = "02:00";
allowReboot = true;
rebootWindow = {

View file

@ -30,14 +30,7 @@
'';
};
nixpkgs.config.allowUnfree = true;
system = {
autoUpgrade = {
enable = true;
flake = "git+${config.nix.registry.my-nixos.to.url}";
allowReboot = lib.mkDefault false;
};
stateVersion = "23.05";
};
system.stateVersion = "23.05";
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;

View file

@ -36,11 +36,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1715542476,
"narHash": "sha256-FF593AtlzQqa8JpzrXyRws4CeKbc5W86o8tHt4nRfIg=",
"lastModified": 1716361217,
"narHash": "sha256-mzZDr00WUiUXVm1ujBVv6A0qRd8okaITyUp4ezYRgc4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "44072e24566c5bcc0b7aa9178a0104f4cfffab19",
"rev": "46397778ef1f73414b03ed553a3368f0e7e33c2f",
"type": "github"
},
"original": {