finish up flake

This commit is contained in:
Nilstrieb 2023-05-25 18:27:46 +02:00
parent e5d3c61a98
commit 47ae5b8f89

View file

@ -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 <