From 47ae5b8f89382ab266a5e761c29be20972656a4a Mon Sep 17 00:00:00 2001 From: Nilstrieb Date: Thu, 25 May 2023 18:27:46 +0200 Subject: [PATCH] finish up flake --- flake.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 4f95f09..61012a5 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,7 @@ +# Adapted from https://github.com/Misterio77/nix-starter-configs + { - description = "Your new nix config"; + description = "NixOS configuration"; inputs = { # Nixpkgs @@ -21,8 +23,7 @@ # NixOS configuration entrypoint # Available through 'nixos-rebuild --flake .#your-hostname' nixosConfigurations = { - # FIXME replace with your hostname - your-hostname = nixpkgs.lib.nixosSystem { + nixos = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; }; # Pass flake inputs to our config # > Our main nixos configuration file < modules = [ ./nixos/configuration.nix ]; @@ -30,10 +31,10 @@ }; # Standalone home-manager configuration entrypoint - # Available through 'home-manager --flake .#your-username@your-hostname' + # Available through 'home-manager --flake .#nils@nixos' homeConfigurations = { # FIXME replace with your username@hostname - "your-username@your-hostname" = home-manager.lib.homeManagerConfiguration { + "nils@nixos" = home-manager.lib.homeManagerConfiguration { pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance extraSpecialArgs = { inherit inputs; }; # Pass flake inputs to our config # > Our main home-manager configuration file <