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: diff --git a/flake.nix b/flake.nix index 8fb737d..807d4f6 100644 --- a/flake.nix +++ b/flake.nix @@ -179,6 +179,16 @@ ./home-manager/traverseda/home.nix ]; }; + "spiri@generic" = home-manager.lib.homeManagerConfiguration { + pkgs = nixpkgs.legacyPackages.aarch64-linux; # Home-manager requires 'pkgs' instance + 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 98aa09a..592eadf 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 = {