From 6682c689fc393c3352a49e3a6cee27157c700bdb Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 27 Jun 2024 17:36:48 -0400 Subject: [PATCH] activate-home --- flake.lock | 7 ++++--- flake.nix | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index e562edc..305edbc 100644 --- a/flake.lock +++ b/flake.lock @@ -709,15 +709,16 @@ }, "nixos-flake": { "locked": { - "lastModified": 1719437091, - "narHash": "sha256-UIZasVC36DS5dli1VimK0VgL6JKuxDG9cMxKq1I6OQ0=", + "lastModified": 1719524174, + "narHash": "sha256-iYZ+E6npBSyRitmAA2SuHMLlUSX7Z2bJXZk9ETHOei0=", "owner": "srid", "repo": "nixos-flake", - "rev": "8cefa1e7af06d366f5d3fd7c97e9edbf4d38c476", + "rev": "957fb726959b1149f60a4976af8d49cd121c565b", "type": "github" }, "original": { "owner": "srid", + "ref": "activate-home", "repo": "nixos-flake", "type": "github" } diff --git a/flake.nix b/flake.nix index 29c0613..2219449 100644 --- a/flake.nix +++ b/flake.nix @@ -10,7 +10,7 @@ home-manager.url = "github:nix-community/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; nixos-hardware.url = "github:NixOS/nixos-hardware"; - nixos-flake.url = "github:srid/nixos-flake"; + nixos-flake.url = "github:srid/nixos-flake/activate-home"; disko.url = "github:nix-community/disko"; disko.inputs.nixpkgs.follows = "nixpkgs"; ragenix.url = "github:yaxitech/ragenix"; @@ -59,6 +59,20 @@ }; perSystem = { self', inputs', pkgs, system, config, ... }: { + legacyPackages.homeConfigurations."parallels" = + self.nixos-flake.lib.mkHomeConfiguration + pkgs + ({ pkgs, ... }: { + home.username = "parallels"; + home.homeDirectory = "/home/parallels"; + programs = { + starship.enable = true; + bash.enable = true; + }; + home.stateVersion = "24.05"; + # nixos-flake.sshTarget = "parallels@ubuntu"; + }); + # Flake inputs we want to update periodically # Run: `nix run .#update`. nixos-flake = {