aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/remote-dev/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'remote-dev/flake.nix')
-rw-r--r--remote-dev/flake.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/remote-dev/flake.nix b/remote-dev/flake.nix
new file mode 100644
index 0000000..6622a72
--- /dev/null
+++ b/remote-dev/flake.nix
@@ -0,0 +1,28 @@
+{
+ description = "Headless dev environment for remote Ubuntu VMs.";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+ home-manager = {
+ url = "github:nix-community/home-manager/master";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+ };
+
+ outputs = { self, nixpkgs, home-manager, ... }:
+ let
+ system = "x86_64-linux";
+ pkgs = import nixpkgs { inherit system; config.allowUnfree = false; };
+ in
+ {
+ homeConfigurations.vm = home-manager.lib.homeManagerConfiguration {
+ inherit pkgs;
+ modules = [ ./home.nix ];
+ # Path to the cloned dotfiles checkout — passed in so home.nix can
+ # symlink shared configs (nvim, zellij, zsh) from the same repo.
+ extraSpecialArgs = {
+ dotfilesRoot = ../.;
+ };
+ };
+ };
+}