summaryrefslogtreecommitdiff
path: root/hostnix
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix')
-rw-r--r--hostnix/elmo/Makefile8
-rw-r--r--hostnix/elmo/flake.lock27
-rw-r--r--hostnix/elmo/flake.nix12
3 files changed, 44 insertions, 3 deletions
diff --git a/hostnix/elmo/Makefile b/hostnix/elmo/Makefile
index 3d33a3d..825a23e 100644
--- a/hostnix/elmo/Makefile
+++ b/hostnix/elmo/Makefile
@@ -4,7 +4,9 @@ push:
switch: push
ssh elmo sudo nixos-rebuild switch
-upgrade: push
- ssh elmo sudo nixos-rebuild switch --upgrade
+update:
+ nix flake update
-.PHONY: push switch upgrade
+upgrade: update switch
+
+.PHONY: push switch update upgrade
diff --git a/hostnix/elmo/flake.lock b/hostnix/elmo/flake.lock
new file mode 100644
index 0000000..f09befe
--- /dev/null
+++ b/hostnix/elmo/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1744309437,
+ "narHash": "sha256-QZnNHM823am8apCqKSPdtnzPGTy2ZB4zIXOVoBp5+W0=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "f9ebe33a928b5d529c895202263a5ce46bdf12f7",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-24.11",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/hostnix/elmo/flake.nix b/hostnix/elmo/flake.nix
new file mode 100644
index 0000000..9629f55
--- /dev/null
+++ b/hostnix/elmo/flake.nix
@@ -0,0 +1,12 @@
+{
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
+ };
+
+ outputs = { self, nixpkgs }: {
+ nixosConfigurations.elmo = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ modules = [ ./configuration.nix ];
+ };
+ };
+}