diff options
| author | Joe Mou <dev@mou.fo> | 2025-06-12 05:00:54 -0400 |
|---|---|---|
| committer | Joe Mou <dev@mou.fo> | 2025-06-16 14:02:30 -0400 |
| commit | 93f592754ed8c4f5623365eedeadf3573fc4fed2 (patch) | |
| tree | cf53f7ed70ba414a178df8d698801ecc22e2d6e0 /hostnix | |
| parent | 711073ef80e6bd1dd49eb51bfeabec90303071b1 (diff) | |
Switch to flakes
Diffstat (limited to 'hostnix')
| -rw-r--r-- | hostnix/elmo/Makefile | 8 | ||||
| -rw-r--r-- | hostnix/elmo/flake.lock | 27 | ||||
| -rw-r--r-- | hostnix/elmo/flake.nix | 12 |
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 ]; + }; + }; +} |
