From 3ec815d3e6d5c290848b3cdfce5effa6e9c9e507 Mon Sep 17 00:00:00 2001 From: traverseda Date: Fri, 16 Aug 2024 14:30:50 +0000 Subject: [PATCH 1/3] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bcc703c..3345d4a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ - https://github.com/Misterio77/nix-starter-configs ## Notes @@ -8,6 +7,12 @@ https://github.com/Misterio77/nix-starter-configs nixos-rebuild build-vm --flake ./#athame ``` +```bash +sh <(curl -L https://nixos.org/nix/install) --daemon +home-manager switch --flake git+https://codeberg.org/traverseda/nixos-config.git?ref=main#traverseda@generic --extra-experimental-features nix-command --extra-experimental-features flakes +``` + + ## Building a LiveCD To build a livecd using this flake, you can use the following command: From 9fe5f6e656e1c38ef7dc391b29891e126c4fd564 Mon Sep 17 00:00:00 2001 From: traverseda Date: Fri, 16 Aug 2024 14:40:53 +0000 Subject: [PATCH 2/3] Update flake.nix --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flake.nix b/flake.nix index 8fb737d..b11bbc0 100644 --- a/flake.nix +++ b/flake.nix @@ -179,6 +179,13 @@ ./home-manager/traverseda/home.nix ]; }; + "traverseda@aarch64" = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.aarch64-linux; # Home-manager requires 'pkgs' instance + extraSpecialArgs = {inherit inputs outputs;}; + modules = [ + ./home-manager/traverseda/home.nix + ]; + }; }; }; } From 8ff07c6d47ab1f072ba2cb411977befa25c3ac46 Mon Sep 17 00:00:00 2001 From: Alex Davies Date: Fri, 16 Aug 2024 15:28:03 +0000 Subject: [PATCH 3/3] Added support for foreign deployments --- flake.nix | 7 +++++-- home-manager/traverseda/home.nix | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index b11bbc0..807d4f6 100644 --- a/flake.nix +++ b/flake.nix @@ -179,9 +179,12 @@ ./home-manager/traverseda/home.nix ]; }; - "traverseda@aarch64" = home-manager.lib.homeManagerConfiguration { + "spiri@generic" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.aarch64-linux; # Home-manager requires 'pkgs' instance - extraSpecialArgs = {inherit inputs outputs;}; + extraSpecialArgs = {inherit inputs outputs; + homeUser = "spiri"; + homeDir = "/home/spiri"; + }; modules = [ ./home-manager/traverseda/home.nix ]; diff --git a/home-manager/traverseda/home.nix b/home-manager/traverseda/home.nix index a150b90..2d3273b 100644 --- a/home-manager/traverseda/home.nix +++ b/home-manager/traverseda/home.nix @@ -6,6 +6,7 @@ # lib, config, pkgs, + specialArgs, ... }: { # You can import other home-manager modules here @@ -42,8 +43,8 @@ }; home = { - username = "traverseda"; - homeDirectory = "/home/traverseda"; + username = specialArgs.homeUser or "traverseda"; + homeDirectory = specialArgs.homeDir or "/home/traverseda"; }; programs.git = {