From b05223bd9f0a2a6260fb1606a7ea5053481f6dd0 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 30 Jul 2024 20:02:24 -0400 Subject: [PATCH] hosts: automatic updates with semantic versioning (#70) * hosts/common: set default FLAKE * fallarbor,rustboro: use latest flake published on flakehub --- hosts/common/nix.nix | 3 ++- hosts/fallarbor/default.nix | 6 +++++- hosts/rustboro/default.nix | 6 +++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hosts/common/nix.nix b/hosts/common/nix.nix index 6ce92f04..7e663046 100644 --- a/hosts/common/nix.nix +++ b/hosts/common/nix.nix @@ -1,9 +1,10 @@ { config, + lib, pkgs, ... }: { - environment.variables.FLAKE = "github:alyraffauf/nixcfg"; + environment.variables.FLAKE = lib.mkDefault "github:alyraffauf/nixcfg"; nix.settings = { substituters = [ diff --git a/hosts/fallarbor/default.nix b/hosts/fallarbor/default.nix index fc239604..6b12ea6c 100644 --- a/hosts/fallarbor/default.nix +++ b/hosts/fallarbor/default.nix @@ -18,7 +18,11 @@ systemd-boot.enable = true; }; - environment.variables.GDK_SCALE = "1.5"; + environment.variables = { + FLAKE = "https://flakehub.com/f/alyraffauf/nixcfg/*.tar.gz"; + GDK_SCALE = "1.5"; + }; + networking.hostName = "fallarbor"; system.stateVersion = "24.05"; diff --git a/hosts/rustboro/default.nix b/hosts/rustboro/default.nix index 62b55c13..ac53eb62 100644 --- a/hosts/rustboro/default.nix +++ b/hosts/rustboro/default.nix @@ -18,7 +18,11 @@ systemd-boot.enable = true; }; - environment.variables.GDK_SCALE = "1.25"; + environment.variables = { + FLAKE = "https://flakehub.com/f/alyraffauf/nixcfg/*.tar.gz"; + GDK_SCALE = "1.25"; + }; + networking.hostName = "rustboro"; system.stateVersion = "24.05"; zramSwap.memoryPercent = 100;